@font-face { font-family: Inter; src: url(/assets/inter-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0b0d12; --paper: #f7f8fb; --white: #fff; --slate: #5b6472; --line: #e2e8f0;
  --volt: #6d4aff; --volt-deep: #4b2fd6; --iris: #a78bfa; --lilac: #f1efff; --night: #1a1033; --haze: #c9c3ec; --signal: #34d399;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--volt); }
img { display: block; }

/* brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mk { height: 30px; width: auto; }
.brand .wd { height: 17px; width: auto; }
.on-dark .ink, .on-light .white { display: none; }

/* ---------- deck ---------- */
html.deck { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.slide { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center;
  padding: 74px clamp(22px, 6vw, 96px) 58px; position: relative; overflow: hidden; }
.slide.dark { background: radial-gradient(1200px 600px at 80% -10%, #3a2490 0%, transparent 60%), var(--night); color: var(--white); }
.slide.tint { background: var(--lilac); }
.slide .wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.slide .corner { position: absolute; top: 26px; left: clamp(22px, 6vw, 96px); }
.slide .pg { position: absolute; top: 30px; right: clamp(22px, 6vw, 96px); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--slate); }
.slide.dark .pg { color: var(--haze); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.04; font-weight: 750; }
.slide h1 { font-size: clamp(40px, 6.4vw, 88px); }
.slide h2 { font-size: clamp(30px, min(4.4vw, 7vh), 62px); max-width: 22ch; }
.lead { font-size: clamp(17px, min(1.8vw, 2.9vh), 25px); line-height: 1.45; color: var(--slate); max-width: 46ch; margin: 22px 0 0; font-weight: 450; }
.slide.dark .lead { color: var(--haze); }
.v { color: var(--volt); }
.slide.dark .v { color: var(--iris); }
.quip { margin-top: 24px; display: inline-flex; gap: 12px; align-items: flex-start; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.45; font-style: italic;
  color: var(--slate); max-width: 62ch; }
.quip::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--volt); margin-top: .7em; }
.slide.dark .quip { background: rgba(255,255,255,.06); color: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.slide.tint .quip { box-shadow: 0 0 0 1px var(--haze); }

.grid { display: grid; gap: 14px; margin-top: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: 18px; padding: 22px 22px 24px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(26,16,51,.35); }
.card h3 { font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.02em; }
.card p, .card li { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: var(--slate); }
.card p { margin: 8px 0 0; }
.card .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); margin-bottom: 10px; }
.card ul { margin: 10px 0 0; padding-left: 18px; }
.card .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--lilac); color: var(--volt-deep); white-space: nowrap; }
.chip.live { background: #dcfce7; color: #166534; }
.chip.soon { background: #fef3c7; color: #92400e; }
.slide.dark .card { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.slide.dark .card p, .slide.dark .card li { color: var(--haze); }

/* principle slides */
.pr { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: start; }
.pr .num { font-size: clamp(90px, min(15vw, 26vh), 220px); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--volt); }
.pr .rule { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; margin: 18px 0 0; max-width: 44ch; font-weight: 500; }
.pr ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 60ch; }
.pr li { position: relative; padding-left: 30px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; color: var(--slate); }
.pr li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: var(--volt); opacity: .85; }

/* layers / flow */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 38px; }
.col { background: var(--white); border-radius: 16px; padding: 18px 16px; box-shadow: 0 0 0 1px var(--line); }
.col b { display: block; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -.01em; }
.col span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--slate); }
.col.hot { box-shadow: 0 0 0 2px var(--volt); }
.col .lim { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--volt-deep); background: var(--lilac); padding: 4px 8px; border-radius: 999px; }

table.t { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: clamp(14px, 1.25vw, 17px); background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.t th, .t td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); background: var(--paper); font-weight: 700; }
.t tr:last-child td { border-bottom: 0; }
.t td.min { font-weight: 750; color: var(--volt); white-space: nowrap; width: 1%; }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.lk { display: block; text-decoration: none; color: var(--ink); background: var(--white); border-radius: 16px; padding: 18px; box-shadow: 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.lk:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--volt); }
.lk b { display: block; font-size: 17px; letter-spacing: -.01em; }
.lk span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--slate); line-height: 1.4; }
.lk i { font-style: normal; color: var(--volt); font-weight: 700; }

.check { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; max-width: 760px; counter-reset: c; }
.check li { counter-increment: c; position: relative; display: block; background: var(--white); border-radius: 14px; padding: 15px 16px 15px 64px; min-height: 60px; box-shadow: 0 0 0 1px var(--line); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.45; }
.check li::before { content: counter(c); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--volt); color: #fff; font-weight: 750; font-size: 15px; }

.hud { position: fixed; right: 18px; bottom: 16px; z-index: 9; display: flex; gap: 8px; align-items: center; }
.hud button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -12px rgba(0,0,0,.4); cursor: pointer; font-size: 16px; color: var(--ink); }
.hud .n { font-size: 12.5px; font-weight: 650; color: var(--slate); background: var(--white); padding: 9px 11px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); min-width: 60px; text-align: center; }
.bar { position: fixed; left: 0; top: 0; height: 3px; background: var(--volt); width: 0; z-index: 10; transition: width .25s; }
.hint { margin-top: 44px; font-size: 13px; color: var(--haze); letter-spacing: .02em; }

/* ---------- doc pages ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247,248,251,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1080px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; color: var(--slate); font-size: 13.5px; font-weight: 600; padding: 7px 10px; border-radius: 9px; }
.top nav a:hover { background: var(--lilac); color: var(--volt-deep); }
.top nav a.on { background: var(--ink); color: #fff; }
.doc { max-width: 820px; margin: 0 auto; padding: 48px 22px 90px; }
.doc .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); }
.doc h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 10px; }
.doc .lead { margin-top: 16px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.025em; margin: 48px 0 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: #2a2f3a; }
.doc p { margin: 12px 0 0; }
.doc ol, .doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li b, .doc p b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 28px; }
.fact { background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.fact small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }
.fact b { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.35; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; margin: 10px 0; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 9px; background: var(--volt); color: #fff; font-weight: 750; font-size: 14px; display: grid; place-items: center; }
.done { margin-top: 18px; background: var(--ink); color: #fff; border-radius: 16px; padding: 18px 20px; }
.done small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--iris); }
.done p { color: #fff; margin: 6px 0 0; font-weight: 550; }
.doc .quip { margin-top: 30px; }
.doc table.t { margin-top: 18px; }
.foot { max-width: 820px; margin: 0 auto; padding: 0 22px 50px; color: var(--slate); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .g3, .g4, .links { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .links { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .pr { grid-template-columns: 1fr; gap: 4px; }
  .slide { padding-top: 84px; padding-bottom: 80px; }
  .t th, .t td { padding: 10px 11px; }
  .top .in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .top nav { justify-content: flex-start; }
  .hud { display: none; }
  html.deck { scroll-snap-type: none; }
  .slide { min-height: auto; padding-top: 76px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
  .slide.dark { min-height: 100svh; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .top nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
}
