:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f4f5;
  --fg-2: #a1a1aa;
  --fg-3: #6b6b74;
  --amber: #e5a33a;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 20px; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.5vw, 92px); }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.sub { color: var(--fg-2); font-size: 17px; max-width: 620px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 11, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--fg-2); }
.top nav a:hover { color: var(--fg); }
.nav-cta { color: var(--fg) !important; border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 8px; }
.nav-cta:hover { border-color: rgba(255,255,255,0.3); }
@media (max-width: 820px) { .top nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 9vh, 104px) 0 0; text-align: center; position: relative; z-index: 2; pointer-events: none; }
.hero a { pointer-events: auto; }
.hero-copy { max-width: 820px; }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-2); max-width: 620px; margin: 0 auto 24px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 14.5px; border: 1px solid var(--line-2); color: var(--fg); transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: rgba(255,255,255,0.3); }
.btn.primary { background: var(--fg); color: #0a0a0b; border-color: var(--fg); }
.btn.primary:hover { background: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost span { color: var(--fg-3); transition: transform .15s; }
.btn.ghost:hover span { transform: translateX(2px); }
.band .cta { justify-content: flex-start; margin-top: 28px; }

/* Exploded badge */
.explode { height: 340vh; position: relative; margin-top: -26vh; }
.explode-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.glow { position: absolute; left: 50%; top: 42%; width: min(900px, 90vw); height: 520px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(229,163,58,0.14), rgba(229,163,58,0.04) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
#badge { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nogl { position: absolute; top: 20px; left: var(--gutter); font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.stepper-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px var(--gutter) 24px; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 55%, rgba(10,10,11,0) 100%); }
.parts { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.parts li { padding: 14px 14px 0 0; border-top: 1px solid transparent; margin-top: -1px; opacity: 0.45; transition: opacity .35s, border-color .35s; min-height: 92px; }
.parts li.on { opacity: 1; border-top-color: var(--fg); }
.part-name { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-bottom: 4px; }
.part-why { display: block; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.parts li:not(.on) .part-why { visibility: hidden; }
.scroll-hint { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin: 14px 0 0; }
@media (max-width: 860px) {
  .parts { grid-template-columns: 1fr; border-top: 0; }
  .parts li { display: none; min-height: 0; padding: 0; border-top: 0; }
  .parts li.on { display: block; }
  .parts li:not(.on) .part-why { visibility: visible; }
  .stepper-wrap { bottom: 20px; }
  .part-why { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .explode { height: auto; }
  .explode-sticky { position: static; height: 90vh; }
  .parts li { opacity: 1; }
  .parts li .part-why { visibility: visible; }
}

/* Ticker */
.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg-3); padding: 9px 0; letter-spacing: 0.1em; }
.ticker-track { display: inline-block; animation: slide 120s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bands and cards */
main { display: block; }
.band { padding: clamp(72px, 10vh, 120px) var(--gutter); }
.band + .band { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 14px; margin-top: 36px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; transition: border-color .2s; }
.card:hover { border-color: var(--line-2); }
.card p { color: var(--fg-2); font-size: 15px; }
.card p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.card p a:hover { text-decoration-color: var(--fg); }
.card-k { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.015em; color: var(--fg) !important; margin-bottom: 10px; }
.claim { font-family: var(--mono); font-size: 12px; color: var(--fg-3) !important; border-top: 1px solid var(--line); padding-top: 12px; margin: 14px 0 0; }
.claim em { font-style: normal; color: var(--amber); }

.slots { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.slots span { flex: 1 1 auto; text-align: center; padding: 12px 14px; font-family: var(--mono); font-size: 13px; color: var(--fg-2); border-right: 1px solid var(--line); }
.slots span:last-child { border-right: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--fg-3); padding-top: 4px; }
.steps b { font-weight: 500; color: var(--fg); }

.screen { padding: 18px; font-family: var(--mono); background: #e6e2d8; color: #17191b; border-color: #e6e2d8; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; max-width: 360px; justify-self: end; }
.screen-top { display: flex; justify-content: space-between; font-size: 12px; border-bottom: 2px solid #17191b; padding-bottom: 8px; }
.screen-words { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; }
.screen-bottom { font-size: 12px; color: #4a4f54; }
@media (max-width: 860px) { .screen { justify-self: start; } }

.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tier { padding: 20px 18px 18px; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; background: var(--bg-2); }
.tier:last-child { border-right: 0; }
.tier-k { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.tier-n { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.tier-d { font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }
.tier.on { background: linear-gradient(180deg, rgba(229,163,58,0.12), rgba(229,163,58,0.03)); }
.tier.on .tier-k { color: var(--amber); }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } .tier { border-right: 0; border-bottom: 1px solid var(--line); } .tier:last-child { border-bottom: 0; } }

.station-card { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
.station-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); margin-bottom: 14px; }
.station-card pre { margin: 0; white-space: pre-wrap; word-break: break-all; line-height: 1.8; letter-spacing: 0.08em; color: var(--amber); opacity: 0.9; }

footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--fg-2); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.foot .brand { margin-bottom: 10px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { text-decoration: none; color: var(--fg-2); }
.foot-links a:hover { color: var(--fg); }
.fine { font-size: 13px; color: var(--fg-3); max-width: 720px; margin-top: 20px; }
