/* ==========================================================================
   BrotherStudio — World Order landing
   ========================================================================== */

/* Fonts (self-hosted, OFL — see assets/fonts/LICENSE-*.txt) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens */
:root {
  color-scheme: dark;

  --bg: #050816;
  --bg-2: #081022;
  --surface: rgba(13, 21, 41, .72);
  --surface-2: rgba(19, 30, 56, .72);
  --surface-solid: #0b1328;
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .24);

  --text: #f1f5f9;
  --text-2: #c2cedd;
  --text-3: #8d9db3;

  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --accent-2: #3b82f6;
  --ally: #60a5fa;
  --enemy: #fb7185;
  --gold: #fbbf24;
  --gold-soft: #fde68a;
  --live: #34d399;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-label: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 4rem + 4vw, 128px);
  --header-h: 72px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(59, 130, 246, .14), transparent 70%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(34, 211, 238, .07), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.65 var(--font-ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(34, 211, 238, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.125em; height: 1.125em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; color: #020617; font-weight: 600;
  transform: translateY(-200%); transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

.shell { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

.label { color: var(--text-3); font: 600 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-soft); font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.kicker-gold { color: var(--gold); }
.accent-text { display: block; background: linear-gradient(92deg, #a5f3fc 0%, #38bdf8 45%, #818cf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-link { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(103, 232, 249, .4); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); animation: ping 2.2s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  font: 600 var(--fs-sm)/1 var(--font-ui); white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 14px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: var(--fs-base); border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, #06b6d4, #2563eb); color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border-color: var(--line-2); background: rgba(15, 23, 42, .5); color: var(--text); }
.btn-ghost:hover { border-color: rgba(103, 232, 249, .45); background: rgba(15, 23, 42, .85); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1205; box-shadow: 0 10px 30px -8px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { box-shadow: 0 16px 40px -8px rgba(245, 158, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.site-header.is-scrolled, .menu-open .site-header { background: rgba(5, 8, 22, .86); border-color: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-shell { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font: 700 15px/1.15 var(--font-display); letter-spacing: -.01em; }
.brand-text small { color: var(--text-3); font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.desktop-nav { display: flex; gap: 4px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; transition: color .16s ease, background-color .16s ease; }
.desktop-nav a:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
.desktop-nav a[aria-current="true"] { color: var(--text); }
.desktop-nav a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-button { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(15, 23, 42, .6); cursor: pointer; }
.menu-button .icon { width: 20px; height: 20px; grid-area: 1 / 1; }
.menu-button .icon-close, .menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: grid; gap: 2px; margin: 0 var(--gutter) 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: rgba(148, 163, 184, .08); color: var(--text); }
.mobile-menu .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 0; }
.hero-glow { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 5vw, 72px); align-items: end; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(103, 232, 249, .22); border-radius: 999px; background: rgba(8, 145, 178, .08); color: var(--accent-soft); font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-top: 24px; font-size: var(--fs-h1); line-height: .98; letter-spacing: -.045em; }
.hero h1 .accent-text { margin-top: .08em; }
.lead { max-width: 640px; margin-top: 24px; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.launch-card { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(19, 30, 56, .82), rgba(9, 15, 31, .82)); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.launch-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.launch-date { color: var(--accent-soft); font: 600 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .04em; }
.launch-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid rgba(251, 191, 36, .25); border-radius: 12px; background: rgba(120, 53, 15, .16); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; transition: border-color .18s ease, background-color .18s ease; }
.launch-card-foot > .icon:first-child { width: 22px; height: 22px; color: var(--gold); }
.launch-card-foot strong { color: var(--gold-soft); }
.launch-card-foot .icon-arrow { margin-left: auto; color: var(--gold); transition: transform .18s var(--ease); }
.launch-card-foot:hover { border-color: rgba(251, 191, 36, .5); background: rgba(120, 53, 15, .26); }
.launch-card-foot:hover .icon-arrow { transform: translateX(3px); }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.time-unit { padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 8, 22, .55); text-align: center; }
.time-unit strong { display: block; font: 700 1.75rem/1 var(--font-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.time-unit span { display: block; margin-top: 6px; color: var(--text-3); font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.countdown-lg .time-unit { padding: 18px 6px 14px; }
.countdown-lg .time-unit strong { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }

/* Launch state: elements tagged data-when swap once the countdown ends */
[data-when="live"] { display: none; }
.is-launched [data-when="pre"] { display: none; }
.is-launched [data-when="live"] { display: revert; }
.no-js [data-countdown] { display: none; }

/* Game window (concept map) */
.game-window { margin: clamp(48px, 7vw, 88px) 0 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: #06101f; box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .04), 0 40px 120px -40px rgba(34, 211, 238, .25); }
.hud-top { display: flex; align-items: center; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(9, 15, 31, .92); }
.hud-brand { font: 700 13px/1 var(--font-display); letter-spacing: .14em; }
.hud-stats { display: flex; gap: 22px; margin: 0 auto 0 12px; }
.hud-stats div { display: grid; gap: 2px; }
.hud-stats dt { color: var(--text-3); font: 600 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hud-stats dd { margin: 0; font: 700 14px/1.1 var(--font-mono); }
.hud-stats small { margin-left: 2px; color: var(--accent-soft); font-size: 11px; font-weight: 600; }
.hud-tag { padding: 5px 9px; border: 1px solid rgba(251, 191, 36, .3); border-radius: 6px; color: var(--gold); font: 700 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

.map-stage { position: relative; background: radial-gradient(ellipse at 40% 40%, rgba(34, 211, 238, .08), transparent 60%), #06101f; }
.map-stage img { width: 100%; height: auto; }
.province-card { position: absolute; right: 18px; bottom: 18px; width: 236px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(5, 8, 22, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.province-card .label { font-size: 10px; }
.province-card strong { display: block; margin: 4px 0 10px; font: 700 15px/1.2 var(--font-display); }
.meter { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 10px; margin-top: 6px; color: var(--text-2); font-size: 12px; }
.meter i { position: relative; height: 6px; border-radius: 3px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.meter-enemy i::after { background: linear-gradient(90deg, #be123c, var(--enemy)); }
.w-45 { --v: 45%; } .w-60 { --v: 60%; } .w-70 { --v: 70%; }

.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(9, 15, 31, .92); color: var(--text-2); font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 10px; border-radius: 3px; }
.sw-player { background: rgba(34, 211, 238, .55); }
.sw-ally { background: rgba(59, 130, 246, .6); }
.sw-enemy { background: rgba(244, 63, 94, .55); }
.sw-front { height: 0; border-top: 2px dashed #fda4af; border-radius: 0; }
.legend-note { margin-left: auto; color: var(--text-3); font-size: 12px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts div { padding: 18px 22px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--text-3); font: 600 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font: 600 1.125rem/1.3 var(--font-display); }

/* Section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "kicker kicker" "title copy"; align-items: end; gap: 16px 64px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .kicker { grid-area: kicker; }
.section-head h2 { grid-area: title; font-size: var(--fs-h2); }
.section-head > p:last-child { grid-area: copy; color: var(--text-2); font-size: 1.0625rem; }
.section-head-stack { display: block; }
.section-head-stack h2 { margin-top: 16px; }
.section-head-stack > p:last-child { margin-top: 20px; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), rgba(8, 13, 28, .8)); transition: border-color .2s ease, transform .2s var(--ease); }
.feature:hover { border-color: rgba(103, 232, 249, .3); transform: translateY(-3px); }
.feature-map { grid-column: span 2; }
.feature-war { grid-column: span 2; }
.feature-body { padding: 26px 28px 30px; }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid rgba(103, 232, 249, .22); border-radius: 12px; background: rgba(8, 145, 178, .1); color: var(--accent-soft); }
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 { margin-top: 18px; font-size: var(--fs-h3); letter-spacing: -.02em; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: .9375rem; }
.feature-visual { position: relative; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); background: #06101f; }

.visual-map img { position: absolute; left: 50%; top: 50%; width: 1500px; max-width: none; transform: translate(-46%, -46%); }
.visual-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 16, 31, .9)); }
.feature-map .feature-visual { height: 240px; }

.visual-industry { display: grid; align-content: end; gap: 12px; padding: 24px 28px 20px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(96, 165, 250, .85), rgba(59, 130, 246, .2)); }
.bars span.mil { background: linear-gradient(180deg, rgba(103, 232, 249, .95), rgba(34, 211, 238, .2)); }
.bars span:nth-child(1) { --h: 45%; } .bars span:nth-child(2) { --h: 60%; } .bars span:nth-child(3) { --h: 52%; }
.bars span:nth-child(4) { --h: 72%; } .bars span:nth-child(5) { --h: 88%; } .bars span:nth-child(6) { --h: 80%; }
.bars-legend { display: flex; gap: 18px; color: var(--text-3); font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.bars-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: #60a5fa; }
.bars-legend .mil::before { background: var(--accent); }

.visual-tech { display: grid; align-content: center; gap: 28px; padding: 28px; }
.tree { display: flex; align-items: center; }
.tree-b { margin-left: 18%; }
.tree .node { width: 30px; height: 30px; flex: none; border: 2px solid var(--line-2); border-radius: 9px; background: #0b1328; }
.tree .node.done { border-color: var(--accent); background: rgba(34, 211, 238, .25); }
.tree .node.active { border-color: var(--accent-soft); background: rgba(34, 211, 238, .08); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 24px rgba(34, 211, 238, .35); animation: glow 2.4s ease-in-out infinite; }
.tree .node.locked { border-style: dashed; }
.tree .link { flex: 1; height: 2px; background: var(--line-2); }
.tree .link.done { background: var(--accent); }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .06), 0 0 30px rgba(34, 211, 238, .5); } }

.visual-war { display: grid; place-items: center; background: radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, .12), transparent 60%), radial-gradient(ellipse at 75% 50%, rgba(244, 63, 94, .12), transparent 60%), #06101f; }
.front-demo { display: grid; grid-template-columns: auto 60px auto; align-items: center; gap: 12px; }
.side { display: grid; gap: 10px; }
.counter { position: relative; display: grid; place-items: center end; width: 64px; height: 34px; padding-right: 10px; border: 2px solid var(--accent-soft); border-radius: 5px; background: #050816; color: var(--accent-soft); font: 700 13px/1 var(--font-mono); }
.counter::before, .counter::after { content: ""; position: absolute; left: 8px; top: 50%; width: 26px; height: 2px; background: currentColor; }
.counter::before { transform: translateY(-50%) rotate(28deg); }
.counter::after { transform: translateY(-50%) rotate(-28deg); }
.side-enemy .counter { border-color: var(--enemy); color: var(--enemy); }
.front-line { width: 4px; height: 140px; justify-self: center; background: repeating-linear-gradient(180deg, #fda4af 0 10px, transparent 10px 18px); background-size: 4px 36px; border-radius: 2px; animation: march 1.4s linear infinite; }
@keyframes march { to { background-position: 0 36px; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillars .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.pillars strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.pillars span { display: block; margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }

/* Founders */
.founders { overflow: hidden; background: radial-gradient(48rem 30rem at 20% 50%, rgba(245, 158, 11, .1), transparent 70%), linear-gradient(180deg, transparent, rgba(28, 18, 6, .35) 50%, transparent); }
.founders::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: min(1200px, 100vw); transform: translateX(-50%); border-block: 1px solid rgba(251, 191, 36, .1); pointer-events: none; }
.founders-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.founders-art { display: grid; place-items: center; }
.founders-medal { width: min(100%, 380px); height: auto; filter: drop-shadow(0 30px 60px rgba(245, 158, 11, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.founders-copy h2 { margin-top: 16px; font-size: var(--fs-h2); }
.founders-copy > p:not(.kicker) { margin-top: 20px; color: var(--text-2); font-size: 1.0625rem; }
.rewards { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.rewards li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid rgba(251, 191, 36, .2); border-radius: 14px; background: rgba(28, 18, 6, .5); }
.reward-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(251, 191, 36, .12); color: var(--gold); }
.reward-icon .icon { width: 20px; height: 20px; }
.rewards strong { display: block; color: var(--gold-soft); font-family: var(--font-display); font-size: 1.0625rem; }
.rewards span { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--fs-sm); }
.countdown-panel { margin-top: 28px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(5, 8, 22, .6); }
.countdown-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.countdown-panel .launch-date { color: var(--gold-soft); }
.countdown-panel .time-unit { border-color: rgba(251, 191, 36, .16); }

/* Roadmap */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, var(--accent) 0 14%, var(--line-2) 14%); }
.step { position: relative; padding-top: 40px; }
.step-marker { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--bg); }
.step.is-current .step-marker { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(34, 211, 238, .15); }
.step-launch .step-marker { border-color: var(--gold); }
.step-when { display: inline-block; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); font: 600 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.step.is-current .step-when { border-color: rgba(34, 211, 238, .4); color: var(--accent-soft); }
.step-launch .step-when { border-color: rgba(251, 191, 36, .4); color: var(--gold); }
.step h3 { margin-top: 14px; font-size: 1.25rem; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--text-2); font-size: .9375rem; }

/* Studio */
.studio { background: linear-gradient(180deg, transparent, rgba(8, 16, 34, .6) 30%, rgba(8, 16, 34, .6) 70%, transparent); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.studio-copy h2 { margin-top: 16px; font-size: var(--fs-h2); }
.studio-copy p:not(.kicker) { margin-top: 20px; color: var(--text-2); font-size: 1.0625rem; }
.tech-list { display: grid; gap: 12px; }
.tech-list article { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tech-list h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.tech-list p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.stack li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); font: 600 12px/1.2 var(--font-mono); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .18s ease; }
.faq details[open] { border-color: rgba(103, 232, 249, .28); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 600 1.0625rem/1.35 var(--font-display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent-soft); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

/* Community CTA */
.community { padding-top: 0; }
.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 64px); overflow: hidden; border: 1px solid rgba(103, 232, 249, .2); border-radius: 28px; background: radial-gradient(40rem 24rem at 0% 0%, rgba(34, 211, 238, .16), transparent 70%), radial-gradient(40rem 24rem at 100% 100%, rgba(59, 130, 246, .18), transparent 70%), var(--surface-solid); }
.cta-copy h2 { margin-top: 16px; font-size: var(--fs-h2); }
.cta-copy p:not(.kicker) { margin-top: 16px; color: var(--text-2); font-size: 1.0625rem; }
.cta-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cta-links a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(5, 8, 22, .55); transition: border-color .18s ease, background-color .18s ease; }
.cta-links a:hover { border-color: rgba(103, 232, 249, .45); background: rgba(5, 8, 22, .8); }
.cta-links strong { display: block; font-family: var(--font-display); }
.cta-links small { display: block; color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; }
.cta-links .icon-arrow { margin-left: auto; color: var(--text-3); }

/* Footer */
.site-footer { padding: 40px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand div { display: grid; line-height: 1.3; }
.footer-brand strong { font-family: var(--font-display); }
.footer-brand span { color: var(--text-3); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { padding: 6px 0; color: var(--text-2); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--accent-soft); }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* Reveal (only when JS is running, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .launch-card { max-width: 520px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feature-map, .feature-war { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .province-card { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .desktop-nav, .nav-actions .btn { display: none; }
  .menu-button { display: grid; }
  .nav-actions { margin-left: auto; }
  .section-head { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "copy"; }
  .hud-stats { gap: 16px; }
  .hud-stats .hud-hide-sm { display: none; }
  .legend-note { margin-left: 0; flex-basis: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .founders-grid, .studio-grid, .faq-grid, .cta-band { grid-template-columns: 1fr; }
  .founders-medal { width: min(70%, 260px); }
}

@media (max-width: 600px) {
  .hero-actions .btn, .actions .btn { width: 100%; }
  .hud-top { gap: 12px; padding: 10px 14px; }
  .hud-brand, .hud-tag { display: none; }
  .hud-stats { margin: 0; width: 100%; justify-content: space-between; }
  .hud-stats dt { font-size: 9px; }
  .hud-stats dd { font-size: 13px; }
  .map-stage { overflow: hidden; }
  .map-stage img { width: 170%; max-width: none; margin-left: -18%; }
  .bento { grid-template-columns: 1fr; }
  .feature-body { padding: 22px 20px 24px; }
  .timeline { grid-template-columns: 1fr; row-gap: 28px; }
  .timeline::before { display: block; top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent) 0 12%, var(--line-2) 12%); }
  .step { padding: 0 0 0 40px; }
  .countdown { gap: 6px; }
  .time-unit strong { font-size: 1.5rem; }
  .countdown-lg .time-unit strong { font-size: 1.9rem; }
  .time-unit span { font-size: 10px; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .footer-note { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
