/* Axium landing — layout inspired by railway.com; colors and marks from axium-user-exp. */

/* ---------- Tokens ---------- */
:root {
  --bg: #F4F6FB;
  --bg-2: #EBEFF7;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --line: rgba(11, 14, 20, 0.09);
  --line-2: rgba(11, 14, 20, 0.16);
  --ink: #0B0E14;
  --ink-2: #3A4250;
  --muted: #6B7280;
  --brand: #1652F0;
  --brand-2: #3E74FF;
  --on-brand: #FFFFFF;
  --yes: #22A35A;
  --no: #E23939;
  --yes-soft: rgba(34, 163, 90, 0.12);
  --no-soft: rgba(226, 57, 57, 0.11);
  --btn-dark: #0B0E14;
  --btn-dark-ink: #FFFFFF;
  /* sky (day) */
  --sky-1: #8FB3FF; --sky-2: #C7D9FF; --sky-3: #EEF3FF;
  --hero-ink: #0B0E14; --hero-ink-2: #2B3346;
  --win: #FFFFFF; --win-2: #F6F8FC;
  --shadow: 0 30px 80px -30px rgba(22, 40, 90, 0.35);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0B0D16; --bg-2: #10131F; --surface: #141826; --surface-2: #1A1F30;
    --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
    --ink: #F2F4F8; --ink-2: #B9C0CF; --muted: #7F889A;
    --brand: #3E74FF; --brand-2: #6C93F8; --yes: #24C88A; --no: #F0585A;
    --yes-soft: rgba(36, 200, 138, 0.13); --no-soft: rgba(240, 88, 90, 0.13);
    --btn-dark: #10131F; --btn-dark-ink: #F2F4F8;
    --sky-1: #191C3A; --sky-2: #2A2858; --sky-3: #3B3468;
    --hero-ink: #F4F2FF; --hero-ink-2: #C9C6E6;
    --win: #0E111B; --win-2: #141826;
    --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0B0D16; --bg-2: #10131F; --surface: #141826; --surface-2: #1A1F30;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --ink: #F2F4F8; --ink-2: #B9C0CF; --muted: #7F889A;
  --brand: #3E74FF; --brand-2: #6C93F8; --yes: #24C88A; --no: #F0585A;
  --yes-soft: rgba(36, 200, 138, 0.13); --no-soft: rgba(240, 88, 90, 0.13);
  --btn-dark: #10131F; --btn-dark-ink: #F2F4F8;
  --sky-1: #191C3A; --sky-2: #2A2858; --sky-3: #3B3468;
  --hero-ink: #F4F2FF; --hero-ink-2: #C9C6E6;
  --win: #0E111B; --win-2: #141826;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 60; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.mark-dark { display: none; }
:root[data-theme='dark'] .mark-light { display: none; }
:root[data-theme='dark'] .mark-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mark-light { display: none; } :root:not([data-theme='light']) .mark-dark { display: block; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 20px/1 var(--sans); letter-spacing: -0.03em; }
.brand-sm { font-size: 16px; gap: 7px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a, .nav-text { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-text:hover { color: var(--ink); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--ink); cursor: pointer; margin-left: 6px; }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .i-moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme='dark'] .icon-btn .i-sun { display: none; }
:root[data-theme='dark'] .icon-btn .i-moon { display: block; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .i-close { display: none; }
.mobile-nav[open] .i-menu { display: none; }
.mobile-nav[open] .i-close { display: block; }
.mobile-nav-panel { display: none; position: fixed; z-index: 39; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; max-height: calc(100dvh - 64px - env(safe-area-inset-top)); overflow: auto; padding: 4px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-nav[open] .mobile-nav-panel { display: block; }
.mobile-nav-panel > a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.mobile-nav-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) {
  .nav-links, .nav-text { display: none; }
  .mobile-nav { display: block; }
  .nav .icon-btn { width: 44px; height: 44px; }
}
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: color-mix(in srgb, white 22%, var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { transform: translateY(-1px); background: var(--brand-2); }
.btn-dark { background: var(--btn-dark); color: var(--btn-dark-ink); border-color: var(--line-2); }
.btn-dark:hover { transform: translateY(-1px); }
.btn[aria-disabled='true'] { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 0 12px; border-radius: 22px; border: 1px solid var(--line-2); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 72px 16px 0; }
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%); }
/* Hero background: the app's splash scene (axium-user-exp components/screens/splash), laid out
   wide — candle rails, trend lines, rings, floor rings and tilted prediction cards. Colours are
   that screen's splash tokens. */
.orbit { position: absolute; inset: 0; --k: clamp(0.45px, 0.06vw, 0.85px);
  --sp-bg: #FAFBFF; --sp-bg-deep: #E4EBF9; --sp-haze: #AFC7FA; --sp-glow: #4C82F5; --sp-glow-alt: #A99BFA; --sp-surface: #FFFFFF; --sp-border: rgba(120, 150, 200, 0.3); --sp-edge: #5B8CF7; --sp-line: #9FBAF0; --sp-accent: #7FB6E8;
  background: radial-gradient(60% 45% at 50% 100%, color-mix(in srgb, var(--sp-haze) 55%, transparent), transparent), linear-gradient(180deg, var(--sp-bg-deep), var(--sp-bg) 42%, var(--sp-bg-deep)); }
:root[data-theme='dark'] .orbit { --sp-bg: #030A18; --sp-bg-deep: #01050E; --sp-haze: #0E3A8F; --sp-glow: #2F6BFF; --sp-glow-alt: #6D5DE6; --sp-surface: #0C1526; --sp-border: rgba(120, 150, 200, 0.25); --sp-edge: #2F6BFF; --sp-line: #1B3E8C; --sp-accent: #1C7FC4; }
.orbit > * { position: absolute; }
/* Staged entrance, same beats as the splash: charts, cards, rings, floor */
@keyframes o-in { from { opacity: 0; } }
@keyframes o-zoom { from { opacity: 0; transform: scale(0.94); } }
@keyframes o-rise { from { opacity: 0; transform: translateY(28px); } }
.o-rail { top: 3%; height: auto; overflow: visible; color: var(--sp-glow); animation: o-in 0.6s 0.15s both; }
.o-rail-l { left: 0; width: calc(400 * var(--k)); }
.o-rail-r { right: 0; width: calc(240 * var(--k)); color: var(--sp-glow-alt); }
.o-candle { fill: var(--sp-line); opacity: 0.6; transform-box: fill-box; transform-origin: center; animation: o-candle 3.6s ease-in-out var(--d, 0s) infinite alternate; }
.o-candle.alt { fill: var(--sp-accent); }
.o-rail-r .o-candle.alt { fill: var(--sp-glow-alt); }
.o-candle .wick { opacity: 0.55; }
@keyframes o-candle { from { transform: translateY(5px) scaleY(0.9); } to { transform: translateY(-5px) scaleY(1.08); } }
.o-trend { fill: none; stroke-width: 3; }
.o-trend.glow { stroke-width: 9; opacity: 0.18; }
/* A pulse of light running down each trend line toward the centre */
.o-pulse { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 91; animation: o-pulse 3.4s linear infinite; }
@keyframes o-pulse { from { stroke-dashoffset: 109; } to { stroke-dashoffset: 9; } }
.o-node { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: o-node 2.6s ease-in-out var(--d, 0s) infinite; }
@keyframes o-node { 50% { transform: scale(1.22); } }
.o-core { left: 50%; top: 31%; width: clamp(420px, 46vw, 660px); height: auto; translate: -50% -50%; animation: o-zoom 0.7s 0.7s both; }
.o-core .ring { fill: none; stroke: var(--sp-glow); stroke-width: 1; }
.o-core .ring.alt { stroke: var(--sp-glow-alt); }
.o-spin { animation: o-spin var(--t, 30s) linear infinite; }
.o-spin.back { animation-direction: reverse; }
@keyframes o-spin { to { transform: rotate(360deg); } }
.o-dots { fill: var(--sp-glow); opacity: 0.75; }
.o-floor { left: 50%; top: 49%; width: min(1240px, 104%); height: 24%; translate: -50% 0; fill: none; stroke: var(--sp-edge); overflow: visible; animation: o-in 0.7s 0.9s both; }
.o-floor ellipse { vector-effect: non-scaling-stroke; stroke-width: 2; opacity: 0.55; }
.o-floor ellipse:first-child { stroke-width: 3; opacity: 0.35; }
.o-floor .glow { stroke: var(--sp-glow); stroke-width: 1.5; opacity: 0.35; }
.o-dust { left: var(--x); top: var(--y); width: var(--z); height: var(--z); border-radius: 50%; background: var(--sp-glow); opacity: var(--o); animation: o-dust 6s ease-in-out var(--d, 0s) infinite; }
@keyframes o-dust { 50% { translate: 0 -16px; opacity: calc(var(--o) * 0.3); } }
.ocard { top: 34%; width: clamp(176px, 15.5vw, 222px); padding: 13px 14px; border-radius: 18px; border: 1px solid var(--sp-border); background: color-mix(in srgb, var(--sp-surface) 86%, transparent); box-shadow: 0 16px 28px -8px rgba(8, 16, 40, 0.3); color: var(--ink); animation: o-rise 0.6s var(--in, 0.5s) both, o-float 7s ease-in-out infinite alternate; }
@keyframes o-float { to { translate: 0 -10px; } }
.ocard.oc-l { left: 5%; rotate: -3deg; }
.ocard.oc-r { right: 5%; rotate: 3deg; animation-delay: var(--in), -3s; }
.oc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--sp-border); font: 600 13px/1.35 var(--sans); }
.oc-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; font-size: 16px; background: color-mix(in srgb, var(--sp-glow) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sp-glow) 22%, transparent); }
.oc-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.oc-odds { display: grid; gap: 4px; font: 700 15px/1.2 var(--sans); }
.oc-odds b { display: inline-block; min-width: 3ch; margin-left: 6px; padding: 0 3px; border-radius: 4px; font-variant-numeric: tabular-nums; transition: background 0.3s; }
.oc-yes { color: var(--yes); } .oc-no { color: var(--no); }
.oc-body svg { width: 46%; height: auto; fill: none; stroke: var(--yes); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oc-body svg .area { stroke: none; fill: var(--yes); opacity: 0.14; }

.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 820px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; font: 500 13px/1 var(--sans); color: var(--hero-ink); background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yes) 65%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-title { margin: 0; font: 500 clamp(44px, 7vw, 84px)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--hero-ink); text-wrap: balance; }
.hero-sub { margin: 18px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--hero-ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; scroll-margin-top: 90px; }
.dl-meta { margin: 12px 0 0; font-size: 13px; color: var(--hero-ink-2); }
.dl-meta b { color: var(--hero-ink); }

/* Product window */
.window { position: relative; z-index: 2; width: min(1080px, 100%); margin-top: 48px; border-radius: 14px 14px 0 0; background: var(--win); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.win-bar .slash { opacity: 0.5; }
.win-bar .strong { color: var(--ink); font-weight: 600; }
.win-tabs { margin-left: auto; display: flex; gap: 16px; }
.win-tabs b { color: var(--ink); font-weight: 600; box-shadow: 0 14px 0 -12px var(--brand); }
.win-avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8B7CF6); margin-left: 12px; }
.win-body { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 340px; }
.win-list { border-right: 1px solid var(--line); padding: 10px; display: grid; align-content: start; gap: 6px; }
.mrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 10px; font-size: 14px; }
.mrow.active { background: var(--win-2); box-shadow: inset 0 0 0 1px var(--line); }
.m-cat { font-size: 16px; }
.m-q { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-yes, .m-no { font: 700 12px/1 var(--mono); padding: 7px 8px; border-radius: 7px; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.m-yes { color: var(--yes); background: var(--yes-soft); }
.m-no { color: var(--no); background: var(--no-soft); }
.win-detail { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.d-head { display: grid; gap: 4px; }
.d-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.live-text { color: var(--no); font-style: normal; }
.d-q { font: 600 18px/1.25 var(--sans); color: var(--ink); }
.d-price { font-size: 13px; color: var(--muted); }
.d-price b { font: 700 22px/1 var(--mono); color: var(--ink); margin-right: 4px; }
.d-price .up { font-style: normal; color: var(--yes); font-weight: 700; margin-left: 6px; }
.chart { width: 100%; height: 150px; color: var(--yes); overflow: visible; }
.chart-fill { fill: url(#chartFill); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s 0.4s ease-out forwards; }
.chart-dot { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot 1.8s 2.6s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }
.d-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-yes, .b-no { display: grid; place-items: center; height: 42px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.b-yes { background: var(--yes); color: #fff; }
.b-no { background: var(--no-soft); color: var(--no); }

/* Price ticks (JS adds these briefly) */
.tick-up { background: color-mix(in srgb, var(--yes) 32%, transparent) !important; }
.tick-down { background: color-mix(in srgb, var(--no) 26%, transparent) !important; color: var(--no) !important; }

/* Web: the hero fits one screen under the nav; the window is cropped at the bottom edge */
@media (min-width: 980px) and (min-height: 620px) {
  .hero { height: calc(100svh - 64px - 12px); padding-top: clamp(40px, 9vh, 96px); }
  .hero-title { font-size: clamp(48px, min(6.4vw, 9vh), 88px); }
  .hero-cta { margin-top: 3.2vh; }
  .window { margin-top: clamp(28px, 6vh, 64px); flex: none; }
}
@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-detail, .win-tabs { display: none; }
  .win-list { border-right: 0; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Rail + chapters ---------- */
.rail-wrap { position: relative; margin-top: 40px; }
.rail { position: absolute; top: 0; bottom: 0; left: max(28px, calc(50% - 590px + 34px)); width: 2px; background: var(--line); display: none; }
.train { position: absolute; left: 50%; top: 0; width: 14px; height: 72px; margin-left: -7px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--brand)) 60%, white), var(--tone, var(--brand))); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone, var(--brand)) 20%, transparent), 0 0 24px color-mix(in srgb, var(--tone, var(--brand)) 60%, transparent); transition: background 0.4s, box-shadow 0.4s; will-change: transform; }
.train::before, .train::after { content: ''; position: absolute; left: 3px; right: 3px; height: 2px; background: rgba(255, 255, 255, 0.55); border-radius: 2px; }
.train::before { top: 18px; } .train::after { top: 36px; }

.chapter { position: relative; padding: 96px 0; --tone: var(--brand); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.tone-blue { --tone: var(--brand); }
.tone-green { --tone: var(--yes); }
.tone-orange { --tone: #F59E0B; }
.tone-teal { --tone: #14B8A6; }
.tone-violet { --tone: #8B7CF6; }
.chapter.panel { margin: 0 12px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--bg)), color-mix(in srgb, var(--tone) 3%, var(--bg))); }
.chapter.panel + .chapter, .chapter + .chapter.panel { border-top: 0; }
.node { position: absolute; top: 104px; left: max(28px, calc(50% - 590px + 34px)); width: 22px; height: 22px; margin-left: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tone) 55%, var(--line-2)); background: var(--bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--tone) 8%, transparent); display: none; transition: background 0.3s, box-shadow 0.3s; z-index: 1; }
.chapter.is-active .node { background: var(--tone); box-shadow: 0 0 0 8px color-mix(in srgb, var(--tone) 18%, transparent); }
.chapter-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .rail, .node { display: block; }
  .chapter-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding-left: 88px; }
}
.tag { display: inline-block; font: 500 13px/1 var(--sans); padding: 7px 10px; border-radius: 7px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.tag-plain { --tone: var(--brand); }
.copy h2, .section-title { margin: 18px 0 14px; font: 500 clamp(34px, 4.4vw, 52px)/1.08 var(--serif); letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.lead a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lead a:hover { color: var(--tone); }
.features { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.features li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.features b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.fi { flex: none; width: 22px; color: var(--tone); font-size: 17px; text-align: center; line-height: 1.4; }

/* Highlighted beta tracker link (Beta rewards chapter): a rotating glow border */
@property --tc-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.tracker-cta { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--tc-angle), color-mix(in srgb, var(--tone) 20%, transparent), var(--tone), #6C93F8, color-mix(in srgb, var(--tone) 20%, transparent) 60%) border-box; border: 1.5px solid transparent; box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--tone) 70%, transparent); animation: tc-spin 5s linear infinite; transition: transform 0.2s ease, box-shadow 0.2s ease; isolation: isolate; }
.tracker-cta::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(110deg, color-mix(in srgb, var(--tone) 14%, transparent), transparent 55%); }
.tracker-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px color-mix(in srgb, var(--tone) 85%, transparent); }
@keyframes tc-spin { to { --tc-angle: 360deg; } }
.tc-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tone); color: #fff; box-shadow: 0 8px 20px -8px var(--tone); }
.tc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tc-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tc-kicker { display: flex; align-items: center; gap: 10px; font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tone); }
.tc-live { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); letter-spacing: 0.04em; }
.tc-title { font: 600 20px/1.25 var(--serif); }
.tc-url { font: 500 13px/1.3 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; color: #fff; background: var(--tone); transition: transform 0.2s ease; }
.tracker-cta:hover .tc-arrow { transform: translateX(4px); }

/* Visual cards */
.visual { display: grid; place-items: center; }
.vcard { position: relative; width: min(100%, 420px); padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); isolation: isolate; }
.vcard::before { content: ''; position: absolute; inset: -48px; z-index: -1; border-radius: 48px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent); }
.board-head { display: flex; justify-content: space-between; align-items: center; font: 600 13px/1 var(--sans); color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.brow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow:last-child { border-bottom: 0; }
.brow b { font: 700 14px/1 var(--mono); color: var(--yes); padding: 6px 8px; border-radius: 7px; background: var(--yes-soft); transition: background 0.3s, color 0.3s; }

.ticket .t-q { font: 600 17px/1.3 var(--sans); }
.t-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 10px; }
.t-sides span { display: grid; place-items: center; height: 44px; border-radius: 10px; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.t-sides .on { background: var(--yes-soft); color: var(--yes); border-color: color-mix(in srgb, var(--yes) 50%, transparent); }
.t-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.t-row b { font: 700 15px/1.4 var(--mono); color: var(--ink); }
.t-row.win b { color: var(--yes); }
.t-btn { margin-top: 16px; display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--yes); color: #fff; font-weight: 700; animation: nudge 3.2s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: scale(0.97); } 86% { transform: scale(1.02); } }

.lrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lrow:last-child { border-bottom: 0; }
.lrow.you { margin: 6px -10px 0; padding: 12px 10px; border-radius: 10px; background: color-mix(in srgb, var(--tone) 12%, transparent); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12px/1 var(--mono); background: var(--surface-2); color: var(--muted); }
.rank.r1 { background: #FFD75E; color: #4A3400; } .rank.r2 { background: #D7DEE6; color: #0F172A; } .rank.r3 { background: #E6A871; color: #3B1F08; }
.who { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.who i { display: inline-block; vertical-align: -4px; margin-right: 8px; }
.who i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: hsl(var(--h) 70% 58%); }
.lrow b { font: 700 13px/1 var(--mono); color: var(--yes); }
.copy-btn { font: 600 12px/1 var(--sans); padding: 7px 10px; border-radius: 8px; background: var(--tone); color: #1b1300; white-space: nowrap; }
.copy-btn.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.wallet .w-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.w-amt { font: 600 44px/1.1 var(--serif); letter-spacing: -0.02em; margin: 4px 0 14px; }
.w-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.w-bar i { width: var(--w); transform-origin: left center; }
.w-bar .dep, .sw.dep { background: var(--brand); } .w-bar .bon, .sw.bon { background: #8B7CF6; } .w-bar .win, .sw.win { background: var(--yes); }
.w-split { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.w-split span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.w-toast { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.35; animation: bob 4s ease-in-out infinite; }
.w-toast b { display: block; font-weight: 700; }
.w-emoji { font-size: 22px; }
@keyframes bob { 50% { transform: translateY(-5px); } }

.coins { display: flex; justify-content: space-between; margin-bottom: 14px; }
.coin { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 700 18px/1 var(--serif); color: rgba(0, 0, 0, 0.55); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 8px 18px -8px rgba(0, 0, 0, 0.5); animation: flip 6s ease-in-out infinite; }
.coin.copper { background: radial-gradient(circle at 35% 30%, #F2B98A, #B66A35); }
.coin.silver { background: radial-gradient(circle at 35% 30%, #F4F6F9, #9AA7B4); animation-delay: -1.5s; }
.coin.gold { background: radial-gradient(circle at 35% 30%, #FFE79A, #D49B12); animation-delay: -3s; }
.coin.diamond { background: radial-gradient(circle at 35% 30%, #E7F7FF, #6FC3E8); animation-delay: -4.5s; }
@keyframes flip { 0%, 80%, 100% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } }
.trow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.trow > span { min-width: 0; }
.trow i { font-style: normal; display: inline-block; width: 18px; }
.trow b { font: 700 13px/1.5 var(--mono); }
.trow.done { color: var(--ink); }
.trow.done i, .trow.done b { color: var(--yes); }
.pts { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pts b { font: 600 28px/1 var(--serif); color: var(--ink); }

/* ---------- Questions marquee ---------- */
.board-marquee { padding: 96px 0 40px; overflow: hidden; }
.eyebrow { margin: 0 auto 22px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 6px 0; }
.mq-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.mq.reverse .mq-track { animation-direction: reverse; animation-duration: 56s; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.qchip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.qchip b { font: 700 12px/1 var(--mono); padding: 6px 8px; border-radius: 7px; }
.y { color: var(--yes); background: var(--yes-soft); }
.n { color: var(--no); background: var(--no-soft); }

/* ---------- Safety & trust ---------- */
.trust-head { display: grid; gap: 4px 48px; align-items: end; }
@media (min-width: 900px) { .trust-head { grid-template-columns: 1.1fr 1fr; } .trust-head .lead { margin-bottom: 18px; } }
.trust-grid { display: grid; gap: 1px; margin-top: 36px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--line-2); }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.tcard { position: relative; padding: 28px 26px 30px; background: var(--bg); overflow: hidden; isolation: isolate; transition: background 0.25s; }
.tcard::before { content: ''; position: absolute; inset: auto -30% -60% -30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent); opacity: 0; transition: opacity 0.35s; }
.tcard:hover { background: var(--surface); }
.tcard:hover::before { opacity: 1; }
.ticon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); }
.ticon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tcard:hover .ticon { animation: wobble 0.6s ease; }
@keyframes wobble { 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(5deg); } }
.tcard h3 { margin: 18px 0 6px; font: 600 22px/1.2 var(--serif); letter-spacing: -0.01em; }
.tcard p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Install + versions ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 640px) { .section { padding-top: 96px; padding-bottom: 96px; } }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.2s, transform 0.2s, opacity 0.7s; }
.step:hover { border-color: var(--brand); }
.step-n { font: 700 13px/1 var(--mono); color: var(--brand); }
.step h3 { margin: 14px 0 6px; font: 600 22px/1.2 var(--serif); }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.aside { margin: 22px 0 0; color: var(--ink-2); }
.aside a { color: var(--brand); font-weight: 600; }
.versions-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 26px; }
.versions-head .section-title { margin-bottom: 0; }
.versions-head p { margin: 0; }
.versions { display: grid; gap: 12px; }
.version { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.version.latest { border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.v-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 26px/1 var(--serif); }
.badge { font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--brand); color: var(--on-brand); }
.badge.soon { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.v-meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.v-notes { margin: 8px 0 0; color: var(--ink-2); white-space: pre-line; }
.v-sha { margin-top: 8px; font-size: 13px; }
.v-sha summary { cursor: pointer; color: var(--muted); }
.v-sha code { display: block; margin-top: 6px; font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--ink-2); }
.version.skeleton { height: 96px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 24px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); }
@media (max-width: 640px) { .version { grid-template-columns: 1fr; } .version .btn { width: 100%; } }

/* ---------- Final call with text running around the border ---------- */
.boarding { padding-top: 24px; padding-bottom: 96px; }
.board-box { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 10vw, 128px) 24px; border-radius: 24px; background: radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 60%), linear-gradient(180deg, var(--sky-1), var(--sky-2)); border: 1px solid var(--line-2); isolation: isolate; }
.border-text { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.border-text path { stroke: color-mix(in srgb, var(--hero-ink) 16%, transparent); stroke-width: 1; stroke-dasharray: 2 6; }
.border-text text { font: 700 12px/1 var(--mono); letter-spacing: 0.2em; fill: var(--hero-ink); opacity: 0.7; }
.board-kicker { margin: 0; font: 500 clamp(24px, 3vw, 34px)/1.1 var(--serif); color: var(--hero-ink-2); }
.board-title { margin: 6px 0 0; font: 600 clamp(56px, 10vw, 128px)/0.95 var(--serif); letter-spacing: -0.03em; color: var(--hero-ink); }
.board-sub { margin: 18px 0 0; color: var(--hero-ink-2); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(12px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot-row > .small { flex: 1 1 100%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 14px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.noscript { text-align: center; padding: 16px; }
.wordmark { display: block; width: 100%; height: auto; margin-top: 28px; padding: 0 12px; overflow: visible; }
.wordmark text { font: 900 250px/1 var(--sans); letter-spacing: -0.02em; }
.wm-top { stop-color: var(--ink); }
.wm-bottom { stop-color: var(--ink); stop-opacity: 0.08; }

/* ---------- Scroll reveal: CSS scroll-driven, no JS. Where unsupported, content is simply shown. ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 60%; }
  .visual.reveal { animation-range: entry 15% entry 75%; }
  .w-bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-dot { opacity: 1; }
  .o-pulse { display: none; }
}

/* Phones */
@media (max-width: 760px) {
  .chapter { padding: 64px 0; }
  .chapter.panel { margin-left: 8px; margin-right: 8px; }
  .board-marquee { padding: 64px 0 28px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .boarding { padding-bottom: 64px; }
  .copy h2, .section-title { font-size: clamp(30px, 8.4vw, 42px); }
  .lead { font-size: 16px; }
  .hero { margin-left: 8px; margin-right: 8px; border-radius: 18px; }
  .ocard, .o-floor { display: none; }
  .o-rail { top: 0; opacity: 0.6; }
  .o-core { top: 26%; }
  .visual { overflow-x: clip; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); }
  .pill { text-align: center; }
  .win-bar .crumb:not(.strong), .win-bar .slash { display: none; }
  .win-bar { gap: 6px; }
  .tracker-cta { gap: 12px; padding: 14px; align-items: flex-start; }
  .tc-kicker { flex-wrap: wrap; row-gap: 4px; }
  .tc-title { font-size: 18px; }
  .tc-arrow, .tc-icon { margin-top: 2px; }
  .w-amt { font-size: 36px; }
  .w-toast { align-items: flex-start; }
  .coins { gap: 8px; }
  .coin { width: 46px; height: 46px; }
  .board-box { padding: 72px 36px; }
  .board-title { font-size: clamp(34px, 11vw, 64px); }
  .board-kicker { font-size: 22px; }
}
@media (max-width: 420px) {
  .m-yes, .m-no { padding: 6px; font-size: 11px; }
  .coin { width: 42px; height: 42px; font-size: 16px; }
  .tc-url { display: none; }
}
@media (max-width: 360px) {
  .lrow { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 8px; font-size: 14px; }
  .rank { grid-area: 1 / 1 / 3 / 2; }
  .who { grid-area: 1 / 2 / 2 / 3; }
  .lrow > b { grid-area: 2 / 2 / 3 / 3; justify-self: start; }
  .copy-btn { grid-area: 1 / 3 / 3 / 4; align-self: center; padding: 6px 8px; }
}
