
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --bg: #0a0a0a;
  --surface: #0f0f0f;
  --surface2:#131313;
  --text: #ffffff;
  --muted:#cfcfcf;
  --border:#ffffff;          
  --hover:#ffffff;         
  --radius: 16px;
  --shadow: 0 12px 42px rgba(0,0,0,.6);
}

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 500 18px/1.6 "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


#loader{
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .3s ease, visibility .3s ease;
}
#loader.hide{ opacity: 0; visibility: hidden; }
.ring{
  width: 96px; height: 96px;
  border-radius: 999px;
  border: 5px solid rgba(255,255,255,.18);
  border-top-color: #ffffff;
  animation: spin .7s linear infinite;
  box-shadow: 0 0 24px rgba(255,255,255,.12);
}
@keyframes spin { to { transform: rotate(360deg); } }


.header{
  display: flex;
  justify-content: center;
  padding: clamp(56px, 12vh, 140px) 0 16px;
  position: relative; z-index: 1;
}
.brand-hero{
  width: clamp(170px, 22vw, 280px);
  height: auto;
  object-fit: contain;
}


.stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  position: relative; z-index: 1;
}
.row{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  width: min(1100px, 95vw);
}


.card{
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 18px 24px;
  border-radius: var(--radius);

  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;

  box-shadow: var(--shadow);

  transition:
    transform .25s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease;
  font-size: 18px;
}
.card:hover{
  transform: translateY(-3px);
  border-color: var(--hover);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.35),
    0 0 26px rgba(255,255,255,.22),
    var(--shadow);
}
.card:focus-visible{
  outline: none;
  border-color: var(--hover);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.35),
    0 0 26px rgba(255,255,255,.22),
    var(--shadow);
}
.icon{
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.card-main{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title{
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
}
.card-sub{
  font-size: 14px;
  color: var(--muted);
}


.pill{
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.dropdown{ position: relative; width: 100%; }
.dropdown .dropdown-trigger{
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}


.dropdown-menu{
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10,10,10,.98);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,.8);
  z-index: 3;
}
.dropdown.open .dropdown-menu{
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu .menu-item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
  text-decoration: none !important;  
}
.dropdown-menu a:hover,
.dropdown-menu .menu-item:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}


.dropdown-menu .label{
  display: flex;
  justify-content: space-between;
  width: 100%;
}


.helper{
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 700px;
}


#toast{
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(10,10,10,.98);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
}
#toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }


.sky-canvas{ position: fixed; inset: 0; z-index: 0; pointer-events: none; }


@media (max-width: 900px){
  .row{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .row{ grid-template-columns: 1fr; }
}
