/* =====================================================================
   XSTOK PAIR CRATES
   Design tokens mirror the public xstok.fun stylesheet (Oct 2026):
   colours, Inter / JetBrains Mono / Instrument Serif, 10-12px radii,
   purple buttons with an inset highlight and a soft purple drop.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* official palette */
  --bg: #FFFFFF;
  --paper: #F7F5FB;
  --rule: #E6E1EF;
  --ink: #0F0F10;
  --muted: #6C6878;
  --night: #121018;
  --night-2: #1A1724;
  --night-ink: #F4F2FA;
  --night-dim: #A29CB2;
  --pur: #A100FF;
  --pur-hi: #B44DFF;
  --pur-lo: #8A00DB;
  --lav: #C9A6FF;
  --lav-wash: #F3EAFF;
  --mark: #1A0B33;
  --grid: rgba(161, 0, 255, .075);
  --grid-night: rgba(201, 166, 255, .07);

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --wrap: 1200px;
  --header-h: 68px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.3, 1.7, .5, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -28px rgba(26, 11, 51, .35);

  color-scheme: light;
}

/* Tier material palettes (generated with the crate artwork; also used to tint UI) */
/* TIER-PALETTES:START */
.crate[data-tier="copper"],[data-tier-scope="copper"]{--mt-hi:#FFE0CA; --mt-mid:#D4895A; --mt-lo:#8A4524; --mt-deep:#4E2410; --sh-top:#3E3330; --sh-hi:#2C2422; --sh-lo:#151112; --pn-hi:#3F322D; --pn-lo:#1E1715; --eng:#E0A27A; --acc:#A100FF;}
.crate[data-tier="bronze"],[data-tier-scope="bronze"]{--mt-hi:#F7E4BC; --mt-mid:#B98C55; --mt-lo:#6E4D26; --mt-deep:#3E2A12; --sh-top:#3D3628; --sh-hi:#2B261B; --sh-lo:#14110C; --pn-hi:#40372A; --pn-lo:#1E1A12; --eng:#D2AA74; --acc:#A100FF;}
.crate[data-tier="silver"],[data-tier-scope="silver"]{--mt-hi:#FFFFFF; --mt-mid:#C6CAD3; --mt-lo:#7C828E; --mt-deep:#474C57; --sh-top:#3F424B; --sh-hi:#2B2E35; --sh-lo:#121318; --pn-hi:#EEF0F4; --pn-lo:#A6ACB7; --eng:#4B505B; --acc:#A100FF;}
.crate[data-tier="gold"],[data-tier-scope="gold"]{--mt-hi:#FFF4C8; --mt-mid:#E0B24A; --mt-lo:#966A18; --mt-deep:#553A08; --sh-top:#2A251D; --sh-hi:#1B1813; --sh-lo:#0A0907; --pn-hi:#2B261D; --pn-lo:#100E0A; --eng:#E8C066; --acc:#A100FF;}
.crate[data-tier="platinum"],[data-tier-scope="platinum"]{--mt-hi:#FFFFFF; --mt-mid:#E3E1EC; --mt-lo:#9C98AE; --mt-deep:#5C586E; --sh-top:#2D2840; --sh-hi:#1F1B2B; --sh-lo:#0D0B13; --pn-hi:#F7F5FC; --pn-lo:#C4BED8; --eng:#5A5470; --acc:#A100FF;}
/* TIER-PALETTES:END */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lg-a { fill: var(--logo-a, var(--mark)); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--pur);
  outline-offset: 3px;
}
.night :focus-visible, .final :focus-visible { outline-color: var(--lav); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.ico { width: 18px; height: 18px; flex: none; }
.ico.flip { transform: scaleX(-1); }

/* ---------- type ---------- */
.label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pur);
}
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lav-wash);
  color: var(--pur-lo);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
h2 em, .final-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--pur);
  font-size: 1.06em;
}
h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.section-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
}
.fine { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-pur {
  background: var(--pur);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -10px rgba(161, 0, 255, .8);
}
.btn-pur:hover { background: var(--pur-lo); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 28px -10px rgba(161, 0, 255, .85); transform: translateY(-1px); }
.btn-pur[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--lav-wash); }
.btn-ghost-dark { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px rgba(244, 242, 250, .45); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(244, 242, 250, .8); }
.btn-sm { min-height: 40px; padding: 10px 15px; font-size: 14.5px; border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: 16px 24px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  flex: none;
}
.brand-mark { width: 26px; height: 26px; }
.brand-word b { color: var(--pur); font-weight: 700; }
.brand-tag {
  margin-left: 4px; padding: 4px 9px;
  border-left: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav-list a:hover { color: var(--pur); background: var(--lav-wash); }
.nav-list a[aria-current="true"] { color: var(--pur); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); content: "";
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-kicker { margin-bottom: 18px; }
.hero-title { display: block; }
.hero-line {
  display: block;
  font-size: clamp(54px, 7.1vw, 100px);
  white-space: nowrap;
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.058em;
  padding-bottom: .04em;
}
.hero-accent {
  background: linear-gradient(180deg, var(--pur-hi) 0%, var(--pur) 55%, var(--pur-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 22px;
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
}
.hero-sub::after {
  content: ""; height: 2px; width: 72px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pur), transparent);
}
.hero-lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 10px; }
.hero-lead-strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero-facts li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--rule);
}
.hero-facts strong { color: var(--pur-lo); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--pur); box-shadow: 0 0 0 3px var(--lav-wash); }

.hero-visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 540px;
}
.hub { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hub-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed rgba(161, 0, 255, .22);
}
.hub-ring-1 { width: 96%; aspect-ratio: 1; max-width: 560px; }
.hub-ring-2 { width: 70%; aspect-ratio: 1; max-width: 400px; border-style: solid; border-color: rgba(161, 0, 255, .1); background: radial-gradient(circle, rgba(243, 234, 255, .9), rgba(243, 234, 255, 0) 70%); }
.hero-crate { position: relative; margin: 0; width: min(100%, 540px); z-index: 1; }
.crate-float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.pair-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pc {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rule), 0 10px 24px -14px rgba(26, 11, 51, .45);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
}
.pc-ico { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.pc-ico::after { content: ""; width: 8px; height: 8px; background: #fff; }
.pc-ico-circle::after { border-radius: 50%; background: var(--lav); }
.pc-ico-square::after { border-radius: 2px; }
.pc-ico-hex::after { width: 10px; height: 10px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--lav); }
.pc-ico-tri::after { width: 10px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pc-ico-diamond::after { transform: rotate(45deg); background: var(--lav); }
.pc-1 { top: 4%; left: 3%; }
.pc-2 { top: 0; left: 38%; }
.pc-3 { top: 5%; right: 0; }
.pc-4 { bottom: 3%; left: 9%; }
.pc-5 { bottom: 0; right: 15%; }
.hero-visual-note {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
  text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  margin: 8px 0 0;
}
.ticker-track {
  display: flex; width: max-content;
  background: var(--pur); color: #fff;
  border-block: 2px dashed rgba(15, 15, 16, .85);
  transform: rotate(-1.1deg);
  animation: tick 38s linear infinite;
}
.ticker-track span {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 12px 0 12px 22px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.ticker-track span::after { content: ""; width: 7px; height: 7px; background: #fff; }
@keyframes tick { to { transform: rotate(-1.1deg) translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 880px; }
.section-head h2 { margin-bottom: 18px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .label { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }

.night {
  position: relative;
  background-color: var(--night);
  background-image:
    linear-gradient(var(--grid-night) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-night) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--night-ink);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -50px rgba(26, 11, 51, .7);
}

.disclosure {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
  margin: 0 auto 18px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--lav-wash);
  box-shadow: inset 0 0 0 1.5px var(--pur);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  text-align: center;
  color: var(--mark);
}
.disclosure strong { color: var(--pur-lo); font-weight: 700; }
.disclosure span::before { content: "·"; margin-right: 14px; color: var(--pur); }
.disclosure-strong { background: var(--ink); color: #fff; box-shadow: none; }
.disclosure-strong strong { color: var(--lav); }
.disclosure-strong span::before { color: var(--lav); }

/* ---------- crate (inline SVG component) ---------- */
.crate { width: 100%; height: auto; overflow: visible; }
.crate stop { transition: stop-color .8s var(--ease-out); }
.crate [style*="fill:var"] { transition: fill .8s var(--ease-out); }
.crate [style*="stroke:var"] { transition: stroke .8s var(--ease-out); }
.crate .lv2, .crate .lv3, .crate .lv4, .crate .lv5, .crate .upto2 { transition: opacity .6s var(--ease-out); }
.crate[data-level="1"] :is(.lv2, .lv3, .lv4, .lv5),
.crate[data-level="2"] :is(.lv3, .lv4, .lv5),
.crate[data-level="3"] :is(.lv4, .lv5),
.crate[data-level="4"] .lv5,
.crate:is([data-level="3"], [data-level="4"], [data-level="5"]) .upto2 { opacity: 0; }

.crate .cr-lid, .crate .cr-latch, .crate .cr-seal { transform-box: fill-box; }
.crate .cr-lid { transform-origin: 50% 100%; transition: transform .9s var(--ease-out) 0s; }
.crate .cr-latch { transform-origin: 50% 100%; transition: transform .35s var(--ease-out) .55s; }
.crate .cr-seal { transform-origin: 50% 50%; transition: transform .45s var(--ease-out) .7s, opacity .3s .75s; }
.crate .cr-light { opacity: 0; transition: opacity .5s; }
.crate.is-open .cr-seal { opacity: 0; transform: translateY(16px) rotate(-14deg) scale(.5); transition-delay: 0s, 0s; }
.crate.is-open .cr-latch { transform: scaleY(-.45); transition-delay: .2s; }
.crate.is-open .cr-lid { transform: translateY(-118px) rotate(-3.5deg); transition-delay: .45s; }
.crate.is-open .cr-light { opacity: 1; transition: opacity .9s .55s; }
.crate .cr-sheen-bar { transform: skewX(-18deg); }
.crate.is-sheen .cr-sheen-bar { animation: sheen 7.5s 1.5s var(--ease-out) infinite; }
@keyframes sheen {
  0% { transform: skewX(-18deg) translateX(0); }
  22%, 100% { transform: skewX(-18deg) translateX(820px); }
}
[data-crate-mount] img { width: 100%; }

/* ---------- 03 open your crate ---------- */
.open { padding-top: clamp(64px, 8vw, 104px); }
.stage { padding: clamp(16px, 3vw, 28px); overflow: hidden; }
.stage-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-dim);
}
.stage-bar b { color: var(--lav); font-weight: 700; }
.stage[data-state="open"] .stage-bar b { color: #fff; }

.tier-picker {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 22px auto 0; padding: 5px; border: 0;
  width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, .05);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.tier-picker label { position: relative; cursor: pointer; }
.tier-picker input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier-picker span {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--night-dim);
  transition: background-color .2s, color .2s;
}
.tier-picker input:checked + span { background: #fff; color: var(--ink); }
.tier-picker input:hover + span { color: #fff; }
.tier-picker input:checked:hover + span { color: var(--ink); }
.tier-picker input:focus-visible + span { outline: 3px solid var(--lav); outline-offset: 2px; }

.stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.stage-main { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage-crate {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding-top: clamp(84px, 9.5vw, 132px);
}
.stage-crate::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 40%;
  background: radial-gradient(ellipse at center, rgba(161, 0, 255, .25), transparent 70%);
  filter: blur(8px);
  opacity: .5;
  transition: opacity .8s;
}
.stage[data-state="open"] .stage-crate::before { opacity: 1; }
.stage-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 10px 0 8px; }

.reveal { padding-top: 22px; }
.reveal-title {
  margin-bottom: 18px; text-align: center;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--night-dim);
}
.stage[data-state="open"] .reveal-title { color: var(--lav); }
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reveal-grid .slot:last-child { grid-column: 1 / -1; }
.slot {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 8px, transparent 8px 16px);
  min-height: 196px;
  display: grid;
}
.rcard {
  display: grid;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #221D31 0%, #15121D 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 2px 0 var(--mt-mid, var(--lav)), 0 20px 40px -24px rgba(0, 0, 0, .8);
  will-change: transform, opacity;
}
.rcard > * { grid-area: 1 / 1; }
.rcard-back {
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(161, 0, 255, .22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--night-dim);
  --logo-a: #fff;
}
.rcard-back svg { width: 44px; height: 44px; }
.rcard-front {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 18px 16px;
}
.js .rcard[data-face="back"] .rcard-front { visibility: hidden; }
.rcard[data-face="front"] .rcard-back, html:not(.js) .rcard-back { visibility: hidden; }
html:not(.js) .tier-picker, html:not(.js) .stage-actions, html:not(.js) .inspector-nav, html:not(.js) .tc-select, html:not(.js) .ctl-ticks { display: none; }
.rcard-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--night-dim);
}
.rcard-top .ico {
  width: 38px; height: 38px; padding: 9px; border-radius: 11px;
  color: var(--mt-hi, #fff);
  background: linear-gradient(135deg, var(--mt-lo, #333), var(--mt-deep, #111));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.rcard-badge-img { width: 44px; height: 44px; }
.rcard h4 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.rcard p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--night-dim); }
.rcard-tag {
  margin-top: auto; align-self: flex-start;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(201, 166, 255, .1);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lav);
}
.stage-foot { margin: 20px 0 4px; text-align: center; font-size: 13.5px; color: var(--night-dim); }

/* ---------- 04 how it works ---------- */
.how { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
}
.eq-term {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-card);
}
.eq-term strong { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.eq-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pur); }
.eq-d { font-size: 14.5px; color: var(--muted); }
.eq-op {
  display: grid; place-items: center;
  font-size: 34px; font-weight: 900; color: var(--pur);
}
.eq-result { background: var(--ink); color: #fff; box-shadow: 0 24px 48px -28px rgba(26, 11, 51, .8); }
.eq-result .eq-k { color: var(--lav); }
.eq-result .eq-d { color: var(--night-dim); }

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.step::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--pur), var(--lav));
}
.step-n { display: block; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pur); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

.how-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.callout {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--lav-wash);
  box-shadow: inset 0 0 0 1px rgba(161, 0, 255, .18);
}
.callout h3 { margin-bottom: 10px; }
.callout p { margin: 0; color: #3E3A48; font-size: 15.5px; }

.board { padding: 22px 24px; border-radius: var(--r-lg); }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board-head h3 { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.board-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-dim); }
.board-live i { width: 7px; height: 7px; border-radius: 2px; background: var(--pur); box-shadow: 0 0 0 3px rgba(161, 0, 255, .25); }
.board-rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0;
  border-top: 1px dashed rgba(255, 255, 255, .1);
  font-size: 14px;
}
.board-rows dt { color: var(--night-dim); }
.board-rows dd { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-align: right; }
.board-rows dd.is-set { color: var(--lav); }

/* ---------- 05 tiers ---------- */
.inspector {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 35% 45%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--paper), var(--lav-wash));
  box-shadow: inset 0 0 0 1px var(--rule);
}
.inspector-stage { position: relative; perspective: 1000px; padding: 12px 0; }
.inspector-tilt {
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.inspector-hint {
  position: absolute; left: 0; bottom: -4px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.inspector-num { margin: 0 0 4px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.inspector-num span { color: var(--pur); font-weight: 700; }
.inspector-name {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px); font-weight: 900; letter-spacing: -.06em; line-height: .95;
  background: linear-gradient(180deg, var(--mt-lo) -30%, var(--mt-deep) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inspector-desc { margin: 14px 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.inspector-sum { color: var(--muted); margin-bottom: 16px; }
.inspector-mats { display: grid; gap: 6px; margin-bottom: 20px; }
.inspector-mats li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
}
.inspector-mats li::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none;
  background: linear-gradient(135deg, var(--mt-hi), var(--mt-mid) 45%, var(--mt-lo));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.meter { display: flex; gap: 5px; }
.meter i {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(15, 15, 16, .1);
  transition: background .5s var(--ease-out);
}
.meter i.on { background: linear-gradient(90deg, var(--mt-mid), var(--mt-hi)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset; }
.inspector-nav { display: flex; gap: 8px; margin-top: 22px; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-md);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink);
  cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--lav-wash); }

.shelf {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  margin-top: 16px;
}
.tier-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 14px 14px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: transform .35s var(--ease-out), box-shadow .3s;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--lav), 0 18px 36px -24px rgba(26, 11, 51, .45); }
.tier-card.is-active { box-shadow: inset 0 0 0 2px var(--pur), 0 18px 36px -24px rgba(161, 0, 255, .55); }
.tier-card img { margin: -4px 0 6px; transition: transform .5s var(--ease-out); }
.tier-card:hover img { transform: scale(1.04) rotate(-1deg); }
.tc-num { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--pur); }
.tc-name { font-size: 22px; font-weight: 900; letter-spacing: -.04em; margin: 2px 0 4px; }
.tc-desc { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tc-select {
  margin-top: auto; align-self: flex-start;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.tc-select::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tc-select[aria-pressed="true"] { color: var(--pur); }
.tc-select:focus-visible { outline: none; }
.tc-select:focus-visible::after { outline: 3px solid var(--pur); outline-offset: 2px; }

/* ---------- 06 progression ---------- */
.progression { background: var(--paper); }
.prog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(20px, 4vw, 44px);
  align-items: center;
}
.prog-controls { display: grid; gap: 28px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ctl-head label { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--night-dim); }
.ctl-head output { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #fff; }

.range {
  --pct: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; margin: 0;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pur) var(--pct), rgba(255, 255, 255, .12) var(--pct));
}
.range::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--pur); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px; border-radius: 9px;
  background: #fff; border: 0;
  box-shadow: 0 0 0 5px rgba(161, 0, 255, .35), 0 6px 14px rgba(0, 0, 0, .4);
  transition: box-shadow .2s;
}
.range::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 9px; border: 0;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(161, 0, 255, .35), 0 6px 14px rgba(0, 0, 0, .4);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--lav); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--lav); }
.ctl-ticks { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 6px; }
.ctl-ticks button {
  border: 0; background: none; padding: 8px 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--night-dim); text-align: center;
  transition: color .2s;
}
.ctl-ticks button:first-child { text-align: left; }
.ctl-ticks button:last-child { text-align: right; }
.ctl-ticks button.is-on { color: #fff; font-weight: 700; }
.prog-note { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); font-size: 13.5px; color: var(--night-dim); }

.prog-result { display: grid; justify-items: center; text-align: center; }
.prog-crate { width: min(100%, 470px); }
.prog-readout { margin-top: 10px; }
.prog-k { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--night-dim); }
.prog-tier {
  margin: 4px 0 6px;
  font-size: clamp(32px, 4vw, 46px); font-weight: 900; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, var(--mt-hi), var(--mt-mid) 60%, var(--mt-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prog-desc { margin: 0 0 16px; color: var(--night-ink); }
.meter-lg { width: min(100%, 360px); }
.meter-lg i { height: 8px; background: rgba(255, 255, 255, .1); }
.prog-scale {
  display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 360px); margin-top: 8px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(162, 156, 178, .7);
}
.prog-scale li.is-on { color: #fff; font-weight: 700; }

/* ---------- 07 rewards ---------- */
.rewards-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; margin-top: -18px; margin-bottom: 40px; }
.rewards-intro .section-lead { color: var(--ink); font-weight: 500; }
.rewards-intro p:last-child { color: var(--muted); font-size: 17px; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.example {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.example h3 { font-size: 18px; }
.example p { margin: 0; font-size: 15px; color: var(--muted); }
.ex-tag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pur); }
.ex-flow { display: flex; align-items: center; margin: 8px 0 6px; }
.ex-node {
  padding: 9px 14px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 8px 18px -12px rgba(26, 11, 51, .4);
  font-size: 14px; font-weight: 800; letter-spacing: -.01em;
}
.ex-node-pair { background: var(--ink); color: #fff; box-shadow: none; }
.ex-link { flex: 1; min-width: 24px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--pur) 0 5px, transparent 5px 9px); }

.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.req, .nots { padding: 26px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule); }
.req h3, .nots h3 { margin-bottom: 16px; }
.req-list { display: grid; gap: 10px; }
.req-list li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; }
.req-list span { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--pur); }
.nots { background: var(--ink); color: #fff; box-shadow: none; }
.nots-list { display: grid; gap: 10px; }
.nots-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #E7E3F0; }
.nots-list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--lav); }
.approved {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline;
  margin-top: 14px; padding: 18px 22px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--rule);
}
.approved-k { margin: 0; font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.approved-empty { margin: 0; font-size: 15px; }
.approved-empty strong { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pur-lo); }
.approved-list { display: grid; gap: 8px; }
.approved-list li { font-size: 15px; }

/* ---------- 08 perks ---------- */
.perks { background: linear-gradient(180deg, #fff, var(--paper)); }
.perk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perk {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .3s;
}
.perk:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--lav), 0 22px 40px -26px rgba(161, 0, 255, .5); }
.perk-ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; background: var(--lav-wash); color: var(--pur);
  margin-bottom: 6px;
}
.perk-ico .ico { width: 24px; height: 24px; }
.perk-status {
  position: absolute; top: 22px; right: 20px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule);
}
.perk-status.is-live { background: var(--lav-wash); color: var(--pur-lo); box-shadow: inset 0 0 0 1px var(--lav); }
.perk p { margin: 0; font-size: 14.5px; color: var(--muted); }
.perk-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; margin: 24px 0 28px; font-size: 14.5px; color: var(--muted); }
.perk-notes p { margin: 0; }
.perk-notes strong { color: var(--ink); }
.badges { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 24px; align-items: center; padding: clamp(22px, 3vw, 34px); }
.badges-head h3 { color: #fff; margin-bottom: 8px; font-size: 22px; }
.badges-head p { margin: 0; color: var(--night-dim); font-size: 14.5px; }
.badge-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.badge-row li { display: grid; justify-items: center; gap: 8px; }
.badge-row img { width: min(100%, 104px); transition: transform .4s var(--ease-out); }
.badge-row li:hover img { transform: translateY(-4px) rotate(-4deg); }
.badge-row span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--night-dim); }

/* ---------- 09 launches ---------- */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.featured-card { padding: 22px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.featured-card h3 { margin-bottom: 6px; }
.featured-card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.market { padding: 8px clamp(14px, 3vw, 28px) 24px; }
.market-head, .market-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr .9fr; gap: 12px; align-items: center;
}
.market-head {
  padding: 16px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--night-dim);
}
.market-row { padding: 14px 0; border-bottom: 1px dashed rgba(255, 255, 255, .09); font-size: 15px; }
.market-row a { color: #fff; font-weight: 700; text-decoration: none; }
.market-row a:hover { color: var(--lav); }
.market-row .sym { display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--night-dim); letter-spacing: .06em; }
.market-row .st { justify-self: start; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(201, 166, 255, .12); color: var(--lav); }
.market-row .lbl { display: none; }
.market-empty {
  display: grid; justify-items: center; gap: 18px;
  padding: clamp(36px, 6vw, 64px) 12px clamp(20px, 3vw, 32px);
  text-align: center;
}
.market-empty p { margin: 0; max-width: 46ch; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -.02em; color: #fff; }

/* ---------- 10 about ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p:not(.label):not(.section-lead) { color: var(--muted); font-size: 16.5px; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts {
  border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-card);
  padding: 6px 22px;
}
.facts > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 14px; padding: 14px 0; border-top: 1px dashed var(--rule); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { font-weight: 600; font-size: 15px; }
.facts a { color: var(--pur-lo); text-underline-offset: 3px; }
.separate { margin-top: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.separate h3 { margin-bottom: 8px; font-size: 17px; }
.separate p { margin: 0; font-size: 14.5px; color: #D9D4E6; }

/* ---------- 11 faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h3 {
  margin-bottom: 6px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pur);
}
details { border-bottom: 1px solid var(--rule); }
summary {
  position: relative;
  display: block;
  padding: 18px 44px 18px 0;
  font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after, summary::before {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--pur);
  transition: transform .3s var(--ease-out);
}
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(0deg); }
summary:hover { color: var(--pur-lo); }
summary:focus-visible { outline-offset: 0; border-radius: 6px; }
.faq-a { padding: 0 44px 20px 0; color: #4A4656; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--pur-lo); }

/* ---------- 12 final ---------- */
.final {
  position: relative;
  padding: clamp(84px, 12vw, 150px) 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% 110%, rgba(161, 0, 255, .35), transparent 60%),
    linear-gradient(var(--grid-night) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-night) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.final-title { display: grid; }
.final-title span {
  font-size: clamp(46px, 8vw, 104px); font-weight: 900; letter-spacing: -.058em; line-height: .95;
}
.final-accent {
  background: linear-gradient(180deg, #D3A6FF, var(--pur-hi) 50%, var(--pur));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.final-note { margin: 26px 0 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--night-dim); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--rule); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 56px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; max-width: 44ch; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-nav ul { display: grid; gap: 8px; align-content: start; }
.footer-nav a { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink); }
.footer-nav a:hover { color: var(--pur); }
.footer-legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-legal strong { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -30px rgba(26, 11, 51, .45);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; }
  .nav-list a { padding: 14px 6px; font-size: 17px; border-radius: 0; border-bottom: 1px dashed var(--rule); }
  .nav-list li:last-child a { border-bottom: 0; }
  .header-actions { margin-left: auto; }
  .stage-body { grid-template-columns: 1fr; }
  .reveal { margin-top: 18px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .reveal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reveal-grid .slot:last-child { grid-column: auto; }
  .slot { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-line { font-size: clamp(54px, 10.5vw, 100px); }
  .hero-visual { min-height: 0; margin-top: 8px; padding: 28px 0 56px; }
  .equation { grid-template-columns: 1fr; }
  .eq-op { font-size: 26px; padding: 0; line-height: 1; }
  .how-bottom, .rewards-grid, .rewards-intro, .about-grid, .faq-wrap, .badges { grid-template-columns: 1fr; }
  .rewards-intro { margin-top: -8px; }
  .faq .section-head { position: static; }
  .inspector { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog { grid-template-columns: 1fr; }
  .prog-result { order: -1; }
  .examples { grid-template-columns: 1fr; }
  .perk-notes { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .brand-tag { display: none; }
  .brand { font-size: 17px; }
  .hero { padding-top: 24px; }
  .hero-grid { gap: 0; }
  /* mobile order: headline, crate, explanation, actions */
  .hero-copy { display: contents; }
  .hero-title { order: 1; }
  .hero-sub { order: 2; margin: 14px 0 0; font-size: 11px; letter-spacing: .16em; }
  .hero-sub::after { display: none; }
  .hero-visual { order: 3; }
  .hero-lead { order: 4; font-size: 16.5px; }
  .hero-ctas { order: 5; margin-top: 18px; }
  .hero-facts { order: 6; }
  .hero-line { font-size: clamp(50px, 15.5vw, 76px); }
  .hero-visual { padding: 6px 0 0; display: block; }
  .hub-ring-1 { width: 108%; }
  .hero-crate { margin: 0 auto; width: min(100%, 440px); }
  .pair-chips {
    position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    margin: 10px 0 0; pointer-events: auto;
  }
  .pc { position: static; padding: 6px 10px 6px 7px; font-size: 12.5px; }
  .pc-ico { width: 16px; height: 16px; }
  .pc-ico::after { width: 6px; height: 6px; }
  .hero-visual-note { position: static; margin: 10px 0 18px; font-size: 10px; }
  .hero-ctas .btn { flex: 1 1 100%; }

  .stage { border-radius: var(--r-lg); }
  .tier-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 2px; padding: 4px; }
  .tier-picker span { padding: 9px 2px; font-size: 12.5px; text-align: center; }
  .stage-bar { font-size: 10.5px; }
  .reveal-grid { grid-template-columns: 1fr; gap: 10px; }
  .slot { min-height: 0; }
  .hero-line { white-space: normal; }
  .rcard-front { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; padding: 16px; }
  .rcard-front .rcard-top { grid-row: span 3; flex-direction: column; justify-content: flex-start; gap: 8px; }
  .rcard-front .rcard-top span { font-size: 10px; }
  .rcard-tag { margin-top: 6px; }
  .rcard-back { min-height: 112px; grid-auto-flow: column; gap: 14px; align-items: center; }
  .rcard-back svg { width: 32px; height: 32px; }
  .stage-actions .btn { flex: 1 1 100%; }

  .steps { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf .tier-card:last-child { grid-column: 1 / -1; }
  .shelf .tier-card:last-child img { width: 70%; margin-inline: auto; }
  .tier-card { padding: 12px 12px 14px; }
  .tc-name { font-size: 19px; }
  .inspector-hint { display: none; }
  .inspector-name { font-size: 52px; }
  .perk-grid { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .badge-row span { font-size: 9px; letter-spacing: .08em; }
  .market-head { display: none; }
  .market-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .market-row .lbl { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-dim); }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  summary { font-size: 16px; padding-right: 36px; }
  .faq-a { padding-right: 0; }
  .final-ctas .btn { flex: 1 1 100%; }
  .disclosure { font-size: 11px; letter-spacing: .1em; }
  .disclosure span::before { display: none; }
  .disclosure strong, .disclosure span { flex: 1 1 100%; }
  .approved { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .header-actions .btn-sm { padding: 9px 11px; font-size: 13.5px; }
  .brand-word { font-size: 16px; }
  .brand { gap: 7px; }
  .brand-mark { width: 22px; height: 22px; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .crate-float, .ticker-track { animation: none !important; }
  .ticker-track { transform: rotate(-1.1deg); }
  .js .rv { opacity: 1; transform: none; }
  .crate.is-open .cr-lid { transform: translateY(-118px); }
}
