/* ============================================================
   Legion Hosting — hosting.legionnetwork.org
   Matches the legionnetwork.org homepage brand system:
   dark, engineered, cyan→blue gradients, Space Grotesk + Inter.
   ============================================================ */

:root {
  --bg: #07090d;
  --bg-raise: #0c1016;
  --panel: #10151d;
  --panel-2: #141a24;
  --line: rgba(148, 179, 222, 0.13);
  --line-strong: rgba(148, 179, 222, 0.24);
  --text: #eef3fa;
  --text-dim: #9fb0c6;
  --text-faint: #66788f;
  --cyan: #22d3f7;
  --blue: #2f6bff;
  --green: #3ddc84;
  --grad: linear-gradient(135deg, var(--cyan), var(--blue));
  --glow-cyan: rgba(34, 211, 247, 0.35);
  --glow-blue: rgba(47, 107, 255, 0.35);
  --radius: 18px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(34, 211, 247, 0.28); }

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Ambient page glow */
.page-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47, 107, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(34, 211, 247, 0.08), transparent 60%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-solid {
  background: var(--grad); color: #051018;
  box-shadow: 0 6px 24px -6px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,.25); }

.btn-outline {
  border-color: var(--line-strong); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(34,211,247,0.06); transform: translateY(-2px); }

.btn-ghost { color: var(--text-dim); padding: 11px 14px; }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 34px; padding: 0 28px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 10px rgba(34,211,247,.4)); }
.brand-mark img { width: 32px; height: auto; max-height: 32px; object-fit: contain; }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 5px; font-weight: 500; }

.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  padding: 8px 14px; border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 28px 24px;
  background: rgba(7, 9, 13, 0.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { padding: 12px 4px; font-weight: 500; color: var(--text-dim); border-bottom: 1px solid rgba(148,179,222,0.06); }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin-top: 14px; justify-content: center; color: #051018; border: none; }
.nav.open .nav-mobile { display: flex; }

/* ---------- Section scaffolding ---------- */
section { position: relative; z-index: 1; }

.section-head {
  max-width: 780px; margin: 0 auto; text-align: center; padding: 0 24px;
}
.kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}
.section-head h2, .split-copy h2, .join-card h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--text-dim); font-size: 17.5px; margin-top: 20px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.65,.25,1), transform .7s cubic-bezier(.2,.65,.25,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
  overflow: hidden;
}

.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.scene-layer { position: absolute; inset: -6%; will-change: transform; }

.layer-mesh {
  background:
    radial-gradient(560px 420px at 22% 28%, rgba(34,211,247,0.10), transparent 62%),
    radial-gradient(680px 480px at 78% 24%, rgba(47,107,255,0.14), transparent 62%),
    radial-gradient(520px 420px at 55% 88%, rgba(47,107,255,0.08), transparent 60%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(58px); opacity: .5; }
.orb-a { width: 380px; height: 380px; left: 6%; top: 16%; background: rgba(34,211,247,0.22); animation: orb-drift 13s ease-in-out infinite; }
.orb-b { width: 460px; height: 460px; right: 2%; top: 34%; background: rgba(47,107,255,0.26); animation: orb-drift 17s ease-in-out infinite reverse; }
.orb-c { width: 260px; height: 260px; left: 42%; bottom: 4%; background: rgba(47,107,255,0.16); animation: orb-drift 11s ease-in-out infinite; }
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -26px) scale(1.07); }
}

/* floating status cards in the hero */
.layer-cards { inset: 0; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(16, 21, 29, 0.82); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
  animation: card-bob 6s ease-in-out infinite;
}
.fc-a { right: 7%; top: 24%; animation-delay: -1.2s; }
.fc-b { left: 6%; top: 56%; animation-delay: -3s; }
.fc-c { right: 12%; bottom: 18%; animation-delay: -4.4s; }
@keyframes card-bob {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-14px) rotate(.5deg); }
}
.fc-swatch {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
}
.fc-swatch svg { width: 20px; height: 20px; }
.sw-cyan { background: rgba(34,211,247,0.14); color: var(--cyan); }
.sw-gold { background: rgba(255,193,77,0.14); color: #ffc14d; }
.fc-lines { display: flex; flex-direction: column; line-height: 1.35; }
.fc-lines b { font-size: 13.5px; font-weight: 600; }
.fc-lines i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.fc-price {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--cyan); margin-left: 6px;
}
.fc-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(61,220,132,.5); animation: ping 2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: inline-block; box-shadow: 0 0 0 0 var(--glow-cyan); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }

/* hero content */
.hero-content { position: relative; max-width: 880px; text-align: center; will-change: transform; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px;
  background: rgba(16,21,29,.55); backdrop-filter: blur(8px);
  margin-bottom: 30px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(42px, 7vw, 84px); line-height: 1.02;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .line:last-child {
  background: linear-gradient(120deg, #eef3fa 30%, #8fb7ff 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px; margin: 26px auto 0;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(28px, 5vw, 64px);
  margin-top: 58px; flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats dt {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats dt small { font-size: 22px; }
.hero-stats dd { font-size: 13px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.hero-next {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(16,21,29,.5); backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease;
}
.hero-next:hover { border-color: rgba(34,211,247,.45); background: rgba(16,21,29,.8); }
.next-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.next-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); }
.hero-next svg { width: 16px; height: 16px; color: var(--cyan); transition: transform .2s ease; }
.hero-next:hover svg { transform: translateY(3px); }

/* ============================================================
   CATEGORY CARDS (index)
   ============================================================ */
.categories { padding: 120px 24px 100px; }
.category-cards {
  max-width: 1160px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.category-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), rgba(16,21,29,.4));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; min-height: 330px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  will-change: transform;
  overflow: hidden;
}
.category-card:hover {
  border-color: rgba(34,211,247,.45);
  box-shadow: 0 24px 50px -24px rgba(0,10,30,.9), 0 0 40px -18px var(--glow-cyan);
}
.category-card.cat-featured {
  background:
    radial-gradient(320px 200px at 85% -20%, rgba(34,211,247,.14), transparent 65%),
    linear-gradient(180deg, var(--panel-2), rgba(16,21,29,.5));
  border-color: rgba(34,211,247,.34);
}
.cat-flag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); color: #051018; border-radius: 999px; padding: 4px 11px;
}
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(148,179,222,.09); color: var(--cyan); margin-bottom: 20px;
}
.cat-icon svg { width: 26px; height: 26px; }
.category-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.category-card > p { color: var(--text-dim); font-size: 14.5px; margin-top: 9px; }
.cat-list { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-list li { display: flex; gap: 10px; align-items: center; color: var(--text-dim); font-size: 13.5px; }
.cat-list i {
  font-style: normal; width: 18px; height: 18px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: rgba(61,220,132,.14); color: var(--green);
}
.cat-price { margin-top: 20px; font-size: 13px; color: var(--text-faint); }
.cat-price b { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-right: 4px; }
.cat-link {
  margin-top: 14px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--cyan);
  display: inline-flex; gap: 7px; align-items: center;
}
.cat-link i { font-style: normal; transition: transform .2s ease; }
.category-card:hover .cat-link i { transform: translateX(4px); }

/* ============================================================
   REGIONS (index)
   ============================================================ */
.regions { padding: 100px 24px; }
.region-cards {
  max-width: 1000px; margin: 60px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.region-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 70%);
  padding: 30px 28px; text-align: center;
  transition: border-color .25s ease, transform .25s ease;
}
.region-card:hover { border-color: rgba(34,211,247,.4); transform: translateY(-4px); }
.region-flag { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.region-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.region-city { font-size: 12.5px; color: var(--cyan); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.region-card p { color: var(--text-dim); font-size: 14px; margin-top: 10px; }
.region-ping {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  background: rgba(0,0,0,.22);
}
.region-ping .pulse-dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,132,.5); }

/* ============================================================
   SPLIT SECTION (features + rack, index)
   ============================================================ */
.split { padding: 110px 24px; }
.split-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center;
}
.split-copy .kicker { margin-bottom: 16px; }
.split-copy .lede { margin-top: 18px; }
.host-list { list-style: none; margin: 28px 0 34px; display: flex; flex-direction: column; gap: 12px; }
.host-list li { display: flex; gap: 12px; align-items: center; color: var(--text-dim); font-size: 15.5px; }
.host-list i {
  font-style: normal; width: 24px; height: 24px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: rgba(61,220,132,.14); color: var(--green);
}

.split-visual { display: flex; justify-content: center; }
.rack {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 26px 24px 20px;
  box-shadow: 0 40px 80px -34px rgba(0,10,30,.9), 0 0 60px -30px var(--glow-blue);
  display: flex; flex-direction: column; gap: 15px;
  will-change: transform;
}
.rack-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  background: rgba(0,0,0,.22);
}
.rk-led { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rk-led.on { background: var(--green); box-shadow: 0 0 8px rgba(61,220,132,.8); animation: led-blink 3.2s ease-in-out infinite; }
.rack-row:nth-child(2) .rk-led { animation-delay: -.9s; }
.rack-row:nth-child(3) .rk-led { animation-delay: -1.7s; }
.rack-row:nth-child(4) .rk-led { animation-delay: -2.4s; }
@keyframes led-blink { 0%,92%,100% { opacity: 1; } 96% { opacity: .35; } }
.rk-bars { flex: 1; height: 7px; border-radius: 4px; background: rgba(148,179,222,.12); overflow: hidden; }
.rk-bars b { display: block; height: 100%; width: var(--w, 50%); border-radius: 4px; background: var(--grad); animation: bar-breathe 5s ease-in-out infinite; transform-origin: left; }
@keyframes bar-breathe { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.88); } }
.rk-label { font-family: var(--font-display); font-size: 12px; color: var(--text-faint); }
.rack-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); padding: 4px 2px 0; }

/* feature trio */
.features { padding: 20px 24px 110px; }
.feature-grid {
  max-width: 1060px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 70%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: rgba(34,211,247,.4); transform: translateY(-4px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(34,211,247,.1); color: var(--cyan); margin-bottom: 18px;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.feature p { color: var(--text-dim); font-size: 14.5px; margin-top: 9px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 40px 24px 110px; }
.faq-list { max-width: 760px; margin: 54px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 80%);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(34,211,247,.35); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(34,211,247,.1); transition: transform .25s ease;
  font-size: 15px;
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ============================================================
   JOIN / final CTA
   ============================================================ */
.join { padding: 60px 24px 130px; }
.join-card {
  max-width: 980px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 26px;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 72px);
  background:
    radial-gradient(500px 260px at 50% -20%, rgba(34,211,247,.14), transparent 65%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 50px 100px -50px rgba(0,10,30,.95);
  position: relative; overflow: hidden;
}
.join-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(34,211,247,.5), transparent 30%, transparent 70%, rgba(47,107,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.join-card p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 20px auto 0; }
.join-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.25); position: relative; z-index: 1; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 64px 28px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col b { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { color: var(--text-faint); font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-base {
  max-width: 1160px; margin: 0 auto; padding: 20px 28px 28px;
  border-top: 1px solid rgba(148,179,222,.07);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--text-faint);
}
.footer-base a:hover { color: var(--cyan); }

/* ============================================================
   PLANS PAGE — configurator
   ============================================================ */
.plans-hero {
  padding: calc(var(--nav-h) + 70px) 24px 20px;
  text-align: center;
}
.plans-hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05;
}
.plans-hero .lede { max-width: 620px; margin-left: auto; margin-right: auto; }

.configurator { max-width: 1160px; margin: 0 auto; padding: 40px 24px 110px; }

.config-step { margin-top: 44px; }
.step-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(34,211,247,.12); color: var(--cyan);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.step-label h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.step-label span { color: var(--text-faint); font-size: 13.5px; margin-left: auto; }

/* step 1 — category tabs */
.category-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), rgba(16,21,29,.4));
  padding: 18px 20px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.category-tab:hover { border-color: rgba(34,211,247,.4); transform: translateY(-2px); }
.category-tab.active {
  border-color: rgba(34,211,247,.55);
  background:
    radial-gradient(240px 120px at 20% -30%, rgba(34,211,247,.16), transparent 70%),
    linear-gradient(180deg, var(--panel-2), rgba(16,21,29,.5));
  box-shadow: 0 0 40px -18px var(--glow-cyan);
}
.ct-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(148,179,222,.09); color: var(--cyan);
}
.ct-icon svg { width: 22px; height: 22px; }
.category-tab.active .ct-icon { background: rgba(34,211,247,.16); }
.ct-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ct-text b { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
.ct-text i { font-style: normal; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* step — game selector */
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.game-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02);
  padding: 16px 16px 14px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.game-tile:hover { border-color: rgba(34,211,247,.4); transform: translateY(-2px); }
.game-tile.active {
  border-color: rgba(34,211,247,.55);
  background: rgba(34,211,247,.06);
  box-shadow: 0 0 30px -14px var(--glow-cyan);
}
.game-tile b { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.game-tile i { font-style: normal; font-size: 11.5px; color: var(--text-faint); }
.game-soon {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-display); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #ffc14d; background: rgba(255,193,77,.12);
  border-radius: 999px; padding: 3px 8px;
}
.game-live {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-display); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); background: rgba(61,220,132,.12);
  border-radius: 999px; padding: 3px 8px;
}

/* step — region selector */
.region-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.region-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.02);
  padding: 16px 20px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.region-tab:hover { border-color: rgba(34,211,247,.4); transform: translateY(-2px); }
.region-tab.active {
  border-color: rgba(34,211,247,.55);
  background: rgba(34,211,247,.06);
  box-shadow: 0 0 30px -14px var(--glow-cyan);
}
.rt-flag { font-size: 26px; line-height: 1; flex: none; }
.rt-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.rt-text b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.rt-text i { font-style: normal; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-check {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.region-tab.active .rt-check { background: var(--grad); border-color: transparent; color: #051018; }

/* step — tier cards */
.tier-note {
  display: none; margin-bottom: 18px;
  border: 1px solid rgba(255,193,77,.3); border-radius: 12px;
  background: rgba(255,193,77,.07); color: #ffd88a;
  padding: 13px 18px; font-size: 14px;
}
.tier-note.visible { display: block; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(16,21,29,.4));
  padding: 28px 26px 26px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tier-card:hover {
  border-color: rgba(34,211,247,.45); transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0,10,30,.9), 0 0 40px -18px var(--glow-cyan);
}
.tier-card.popular {
  border-color: rgba(34,211,247,.4);
  background:
    radial-gradient(280px 160px at 50% -20%, rgba(34,211,247,.13), transparent 70%),
    linear-gradient(180deg, var(--panel-2), rgba(16,21,29,.5));
}
.tier-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); color: #051018; border-radius: 999px; padding: 4px 12px;
  white-space: nowrap;
}
.tier-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-dim); }
.tier-headline { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.tier-price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.tier-price b {
  font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tier-price span { color: var(--text-faint); font-size: 13.5px; }
.tier-specs { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier-specs li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 14px; }
.tier-specs i {
  font-style: normal; margin-top: 3px; width: 17px; height: 17px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: rgba(61,220,132,.14); color: var(--green);
}
.tier-region { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.tier-cta { justify-content: center; width: 100%; }
.tier-cta.btn-waitlist {
  background: rgba(255,193,77,.1); color: #ffd88a; border-color: rgba(255,193,77,.3);
}
.tier-cta.btn-waitlist:hover { background: rgba(255,193,77,.16); border-color: rgba(255,193,77,.5); transform: translateY(-2px); box-shadow: none; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-shell {
  position: relative; z-index: 1;
  width: min(70rem, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 27rem);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem) 0;
}
.auth-brand { display: inline-flex; align-items: center; margin-bottom: clamp(2rem, 8vw, 4.5rem); }
.auth-brand img { height: 3.4rem; width: auto; }
.auth-kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.auth-copy h1 {
  max-width: 42rem; margin: 14px 0 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6.6vw, 4.6rem); line-height: 1.0;
}
.auth-copy > p { max-width: 34rem; margin: 18px 0 0; color: var(--text-dim); font-size: 16.5px; }
.selected-plan {
  width: min(100%, 27rem); margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(34,211,247,.3); border-radius: 14px;
  background: rgba(16,21,29,.75); padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.selected-plan span {
  display: block; color: var(--text-faint);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.selected-plan strong { display: block; margin-top: 6px; color: var(--text); font-family: var(--font-display); font-size: 19px; font-weight: 600; }

.auth-panel {
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: rgba(12,16,22,.82);
  box-shadow: 0 30px 80px -30px rgba(0,8,24,.9), 0 0 60px -30px var(--glow-blue);
  padding: clamp(1.4rem, 4vw, 2rem);
  backdrop-filter: blur(10px);
}
.auth-panel h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.auth-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.35rem; }
.auth-field { display: grid; gap: 0.4rem; }
.auth-field.is-wide { grid-column: 1 / -1; }
.auth-field label { color: var(--text-dim); font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.auth-field input {
  width: 100%; min-height: 2.9rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(0,0,0,.28); color: var(--text);
  padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus { border-color: rgba(34,211,247,.7); box-shadow: 0 0 0 3px rgba(34,211,247,.15); }
.auth-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-error {
  display: none; margin-top: 1rem;
  border: 1px solid rgba(248,113,113,.35); border-radius: 10px;
  background: rgba(127,29,29,.26); color: #fecaca;
  padding: 0.75rem 0.9rem; font-size: 0.92rem; line-height: 1.45;
}
.auth-error.is-visible { display: block; }
.auth-actions { display: grid; gap: 0.8rem; margin-top: 1.1rem; }
.auth-actions button, .auth-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.auth-actions button {
  border: 0; color: #051018; background: var(--grad); cursor: pointer;
  box-shadow: 0 6px 24px -6px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.auth-actions button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,.25); }
.auth-actions button:disabled { cursor: wait; opacity: 0.72; transform: none; }
.auth-actions a {
  color: var(--text-dim); border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  transition: border-color .18s ease, color .18s ease;
}
.auth-actions a:hover { border-color: var(--cyan); color: var(--text); }
.auth-note { margin-top: 1rem; text-align: center; font-size: 13px; color: var(--text-faint); }
.auth-note a { color: var(--cyan); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .split-inner { gap: 48px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .category-cards { grid-template-columns: 1fr; max-width: 560px; }
  .region-cards { grid-template-columns: 1fr; max-width: 480px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 560px; }
  .split-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fc-a { right: 3%; top: 17%; }
  .fc-c { display: none; }
  .category-tabs, .region-tabs { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; align-items: start; }
  .auth-brand { margin-bottom: 2rem; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-stats { gap: 26px; }
  .float-card { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-cta, .join-actions { flex-direction: column; align-items: stretch; }
  .hero-next { display: none; }
  .tier-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .auth-field-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .scene-layer, .hero-content { transform: none !important; }
}
