/* Moonpact landing. Native CSS, no framework. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens: one theme, night. Palette taken from the hero film: deep navy sky, moonlight, moonlight-blue accent. */
:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --surface: #0f1628;
  --surface-2: #131b31;
  --line: #1c2640;
  --text: #e8edf6;
  --muted: #95a1b9;
  --faint: #75819b;
  --accent: #01abff;
  --accent-ink: #06101f;
  --accent-text: #01abff;
  /* Second accent: warm amber, reserved for community-wallet money (votes 101+, spent by vote) as
     the counterpoint to the cold blue of the fixed AI-stack cost (votes 1-100, run by Jake). */
  --accent-2: #ffb020;
  --accent-2-ink: #201200;
  --moon: 190 212 255;
  --cell: #141c32;
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 30px 60px -30px rgb(0 0 0 / .8);
  --r: 6px;
  --wrap: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Faint star field, fixed and behind content */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgb(var(--moon) / .7) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 9%, rgb(var(--moon) / .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 33%, rgb(var(--moon) / .6) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 52%, rgb(var(--moon) / .45) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 71%, rgb(var(--moon) / .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 23% 83%, rgb(var(--moon) / .55) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 91%, rgb(var(--moon) / .4) 50%, transparent 51%);
  background-size: 640px 640px;
}
/* Film grain, fixed layer, never on scrolling containers */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 767px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }

/* Type */
h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 650;
  padding-bottom: 6px;
}
h1 em { font-style: italic; color: var(--accent-text); }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; max-width: 20ch; }
.h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 42ch; margin-top: 28px; }
.body { color: var(--muted); max-width: 60ch; margin-top: 18px; }
.body--lg { font-size: clamp(18px, 1.5vw, 20px); }
.body strong { color: var(--text); }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: var(--r);
  font: 500 15px/1 var(--font);
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ph { transition: transform .25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--text)); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 767px) { .btn--sm { height: 44px; } .copy { height: 44px; } .hero__toggle { width: 44px; height: 44px; } }
.btn--lg { height: 56px; padding: 0 26px; font-size: 16px; }

/* Nav: transparent over the film, floating pill after scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: 0; transition: padding-top .4s var(--ease); pointer-events: none; }
.nav__row {
  pointer-events: auto;
  height: 72px; display: flex; align-items: center; gap: 32px;
  border: 1px solid transparent; border-radius: 14px;
  transition: background-color .35s, border-color .35s, box-shadow .35s, height .35s var(--ease), padding .35s var(--ease);
}
.nav.is-float { padding-top: 12px; }
.nav.is-float .nav__row {
  height: 60px; padding-inline: 20px 8px;
  max-width: 1080px;
  background: rgb(10 15 30 / .72);
  border-color: rgb(var(--moon) / .12);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: rgb(232 237 246 / .72); font-size: 14px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav.is-float { padding-top: 8px; }
  .nav.is-float .nav__row { margin-inline: 8px; padding-inline: 14px 6px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav__row { transition: none; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--mono); letter-spacing: -0.02em; text-decoration: none; }
.logo__mark { width: 14px; height: 14px; background: var(--accent); border-radius: 2px; }

/* Hero: full-bleed video, always dark text treatment over the scrim */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  background: var(--bg);
  color: #f1f3ec;
}
.nav-sentinel { position: absolute; top: 40px; left: 0; width: 1px; height: 1px; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(7 10 20 / .82) 0%, rgb(7 10 20 / .55) 38%, rgb(7 10 20 / 0) 70%),
    linear-gradient(0deg, rgb(7 11 22 / 1) 0%, rgb(7 11 22 / 0) 40%),
    linear-gradient(180deg, rgb(7 11 22 / .6) 0%, rgb(7 11 22 / 0) 20%);
}
.hero__inner { width: 100%; padding-top: 140px; padding-bottom: 96px; }
.hero__copy { max-width: 760px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
}
.hero h1 em { color: var(--accent); white-space: nowrap; }
.hero .lead { color: rgb(241 243 236 / .82); }
.hero .live { border-color: rgb(255 255 255 / .22); color: rgb(241 243 236 / .8); background: rgb(7 10 20 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .live strong { color: var(--accent); }
.hero .live:hover { border-color: var(--accent); }
.btn--glass { color: #f1f3ec; border-color: rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { border-color: rgb(255 255 255 / .6); }
.hero__toggle {
  position: absolute; right: 24px; bottom: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .25); background: rgb(7 10 20 / .4); color: #f1f3ec;
  cursor: pointer; font-size: 16px;
}
.hero__toggle:hover { border-color: rgb(255 255 255 / .6); }
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; text-decoration: none;
  transition: border-color .2s;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 767px) {
  .hero { min-height: 100svh; }
  .hero__video { object-position: 35% 50%; }
  .hero__scrim { background: linear-gradient(0deg, rgb(7 10 20 / .92) 0%, rgb(7 10 20 / .6) 55%, rgb(7 10 20 / .25) 100%); }
  .hero__inner { padding-bottom: 72px; }
  .hero__toggle { right: 16px; bottom: auto; top: 84px; }
}
@media (prefers-reduced-motion: reduce) { .hero__toggle { display: none; } }

/* Portrait */
.portrait { margin: 0; width: 100%; max-width: 340px; }
.portrait__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { display: none; position: absolute; inset: 0; place-items: center; font: 600 140px/1 var(--mono); color: var(--accent-text); letter-spacing: -0.06em; }
.portrait__img.is-missing img { display: none; }
.portrait__img.is-missing .portrait__mono { display: grid; }
.portrait__cap { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; font-size: 14px; }
.portrait__cap strong { font-size: 16px; }

/* Sections */
.section { padding: 120px 0; }
.section--tint {
  background:
    radial-gradient(900px 420px at 88% 0%, rgb(var(--moon) / .07), transparent 70%),
    var(--bg-2);
  border-block: 1px solid rgb(var(--moon) / .05);
}
@media (max-width: 767px) { .section { padding: 72px 0; } }

/* Versus (anti-rug) */
.versus { list-style: none; margin: 56px 0 0; padding: 0; }
.versus li {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.versus li:last-child { border-bottom: 1px solid var(--line); }
.versus s {
  position: relative; text-decoration: none;
  font-size: clamp(18px, 1.8vw, 24px); color: var(--faint);
  justify-self: start;
}
.versus s::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%;
  height: 2px; background: var(--accent-text);
  transform-origin: left; transform: scaleX(1);
}
.versus span { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.versus__close { margin-top: 40px; font: 500 clamp(18px, 1.6vw, 20px)/1.4 var(--mono); color: var(--accent-text); }
@media (prefers-reduced-motion: no-preference) {
  .js .versus li.reveal s::after { transform: scaleX(0); transition: transform .7s var(--ease) .35s; }
  .js .versus li.reveal.is-in s::after { transform: scaleX(1); }
}
@media (max-width: 767px) { .versus li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } }

/* Story */
.story { display: grid; grid-template-columns: 340px minmax(0, 700px); justify-content: space-between; gap: 64px; align-items: start; }
.story .portrait { position: sticky; top: 104px; }
.story__video { margin-bottom: 36px; }
@media (max-width: 1023px) { .story { grid-template-columns: 1fr; gap: 40px; } .story .portrait { position: static; max-width: 280px; } }
.story__video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.story__video iframe, .story__video video { width: 100%; height: 100%; border: 0; display: block; }
.story__body > p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; margin-top: 24px; }
.story__body > p:first-child { margin-top: 0; }
.pull {
  margin: 48px 0; padding-left: 28px;
  border-left: 3px solid var(--accent);
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600;
  color: var(--accent-text);
}
.story__sign { display: flex; flex-direction: column; gap: 2px; margin-top: 40px !important; font-weight: 600; }
.story__sign .mono { font-size: 14px; font-weight: 400; }

/* Proof: logo cards */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.proof__card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .35s var(--ease);
}
.proof__card:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); transform: translateY(-2px); }
.proof__logo { height: 34px; display: flex; align-items: center; }
.proof__logo picture { display: contents; }
.proof__logo img { height: 30px; width: auto; max-width: 100%; }
.proof__card p { color: var(--muted); font-size: 15px; flex: 1; }
.proof__go { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--mono); }
.proof__go .ph { transition: transform .25s var(--ease); }
.proof__card:hover .proof__go .ph { transform: translate(2px, -2px); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }

/* Offer: ticket + stack */
.offer { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.ticket {
  position: sticky; top: 112px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 28px;
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--accent) 50%, transparent);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.ticket:hover { transform: rotate(0deg); }
.ticket .logo__mark { background: var(--accent-ink); }
.ticket__top, .ticket__bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ticket__mid {
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px 0; border-block: 2px dashed color-mix(in oklab, var(--accent-ink) 35%, transparent);
  position: relative;
}
.ticket__mid::before, .ticket__mid::after {
  content: ""; position: absolute; top: 50%; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2); transform: translateY(-50%);
}
.ticket__mid::before { left: -42px; }
.ticket__mid::after { right: -42px; }
.ticket__label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.ticket__price { font: 600 clamp(72px, 9vw, 120px)/.9 var(--font); letter-spacing: -0.06em; }
.ticket__sub { font-size: 20px; font-weight: 500; }
.stack { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.stack li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.stack .ph { font-size: 24px; color: var(--accent-text); margin-top: 2px; }
.stack h3 { font-size: 19px; letter-spacing: -0.015em; }
.stack p { color: var(--muted); margin-top: 4px; }
@media (max-width: 1023px) {
  .offer { grid-template-columns: 1fr; gap: 56px; }
  .ticket { position: relative; top: 0; max-width: 420px; }
}

/* Build path */
.path { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.path li { position: relative; padding-top: 36px; }
.path li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-text); }
.path li:first-child::before { background: var(--accent); border-color: var(--accent); }
.path h3 { font-size: 24px; letter-spacing: -0.025em; }
.path p { color: var(--muted); margin-top: 10px; }
.ideas-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chip--you { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 500; }
@media (max-width: 1023px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .path li { padding: 0 0 36px 40px; }
  .path li:last-child { padding-bottom: 0; }
}

/* Money */
.funds__bar { display: flex; height: 64px; margin-top: 48px; gap: 3px; }
.funds__bar span { background: var(--accent); border-radius: 3px; transition: opacity .25s, transform .25s var(--ease); transform-origin: bottom; }
.funds__bar.is-hover span { opacity: .22 !important; }
.funds__bar.is-hover span.is-active { opacity: 1 !important; transform: scaleY(1.1); }
.funds__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.funds__list li.is-pool { grid-column: 1 / -1; }
.funds__list li.is-pool h3 { font-size: 18px; }
.funds__list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.funds__list .sw { width: 12px; height: 12px; margin-top: 6px; background: var(--accent); border-radius: 2px; }
.funds__list h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.funds__list p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.funds__list .amt { font: 500 16px/1.5 var(--mono); }
.funds__list .pct { display: block; font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 767px) { .funds__list { grid-template-columns: 1fr; } .funds__bar { height: 44px; } }

/* Design doc outline */
.doc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; margin-top: 64px; padding: 36px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.doc__intro p { margin-top: 12px; max-width: 42ch; }
.doc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc__list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.doc__list .ph { font-size: 20px; color: var(--accent-text); flex: none; }
@media (max-width: 1023px) { .doc { grid-template-columns: 1fr; gap: 28px; padding: 24px; } }
@media (max-width: 560px) { .doc__list { grid-template-columns: 1fr; } }
.path + .doc { margin-top: 64px; }
#build .body--lg + .path { margin-top: 56px; }

/* Milestones */
.milestones { display: grid; grid-template-columns: 1fr 3fr; gap: 3px; margin-top: 48px; }
.ms { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ms--first { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ms--wallet { border-color: color-mix(in oklab, var(--accent-2) 45%, var(--line)); }
.ms--wallet .ms__k { color: var(--accent-2); opacity: 1; }
.ms__k { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.ms__v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ms__d { font-size: 14px; opacity: .8; }
@media (max-width: 767px) { .milestones { grid-template-columns: 1fr; gap: 8px; } }
.funds__bar span.is-wallet { background: var(--accent-2); }
.funds__list .sw--wallet { background: var(--accent-2); }
.funds__bar span.is-setup { background: var(--faint); }
.funds__list .sw--setup { background: var(--faint); }

/* Rules */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.spec { padding: 32px 32px 36px 0; }
.spec:nth-child(3n+2), .spec:nth-child(3n+3) { padding-left: 32px; border-left: 1px solid var(--line); }
.spec:nth-child(n+4) { border-top: 1px solid var(--line); }
.spec__n { display: block; font: 500 clamp(40px, 4.4vw, 56px)/1 var(--mono); letter-spacing: -0.04em; margin-bottom: 14px; }
.spec p { color: var(--muted); max-width: 32ch; }
@media (max-width: 1023px) {
  .specs { grid-template-columns: 1fr 1fr; border-top: 0; }
  .spec, .spec:nth-child(n) { padding: 28px 24px 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .spec:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 767px) { .specs { grid-template-columns: 1fr; } .spec:nth-child(n) { padding: 24px 0; border-left: 0; } }

.share { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.unlock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.unlock__step { display: flex; flex-direction: column; gap: 8px; }
.unlock__block { aspect-ratio: 1; border-radius: var(--r); border: 1px dashed var(--faint); }
.unlock__step.is-on .unlock__block { background: var(--accent); border: 1px solid transparent; }
.unlock__lbl { font-size: 14px; color: var(--muted); }
.unlock__step.is-on .unlock__lbl { color: var(--text); }
.unlock__n { font-size: 14px; }
.unlock__note { grid-column: 1 / -1; margin-top: 10px; }
.unlock__note strong { color: var(--text); }
@media (max-width: 1023px) { .share { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .unlock { grid-template-columns: repeat(2, 1fr); } }

/* Ledger */
.ledger {
  position: relative;
  margin: 48px 0 0; padding: 32px;
  border-radius: 14px;
  background:
    radial-gradient(700px 300px at 20% 0%, rgb(var(--moon) / .06), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ledger__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 32px; }
.ledger__stats div { padding: 0 24px; border-left: 1px solid var(--line); }
.ledger__stats div:first-child { padding-left: 0; border-left: 0; }
.ledger__stats dt { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ledger__stats dd { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.ledger__stats dd strong { color: var(--accent); font-weight: 500; }
.ledger__stats #nextMilestone { font-size: 15px; letter-spacing: 0; line-height: 1.35; margin-top: 12px; color: var(--text); }

.ledger__fields { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; }
.field-block { padding: 20px; border-radius: 10px; background: rgb(7 11 22 / .55); border: 1px solid var(--line); }
.field-block--stack { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.field-block--wallet { border-color: color-mix(in oklab, var(--accent-2) 30%, var(--line)); }
.field-block--wallet .field-block__count strong { color: var(--accent-2); }
.field-block--wallet .field-block__bar span { background: var(--accent-2); }
.field-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.field-block__name { font-size: 15px; font-weight: 600; }
.field-block__range { display: block; font: 12px/1.2 var(--mono); color: var(--muted); margin-top: 4px; }
.field-block__count { font: 500 14px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.field-block__count strong { color: var(--accent); font-weight: 500; }
.field-block__bar { height: 2px; margin-top: 16px; background: rgb(var(--moon) / .08); border-radius: 2px; overflow: hidden; }
.field-block__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .8s var(--ease); }

.dots { display: grid; gap: 6px; }
.dots i {
  aspect-ratio: 1; border-radius: 50%;
  background: rgb(var(--moon) / .09);
  transition: transform .25s var(--ease), background-color .25s;
}
.field-block--stack .dots i { background: rgb(var(--moon) / .13); }
.dots i.on {
  background: radial-gradient(circle at 35% 30%, #e6f7ff 0%, #7fd3ff 35%, var(--accent) 70%, #0077b8 100%);
  box-shadow: 0 0 12px -2px rgb(1 171 255 / .7);
  cursor: pointer;
}
.dots i.on.alt { background: radial-gradient(circle at 35% 30%, #d2efff 0%, #4cc0ff 45%, #0068a3 100%); }
.dots i.on:hover, .dots i.on:focus-visible { transform: scale(1.45); outline: none; }
.dots i.is-mine { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }

.ledger__tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font: 500 13px/1.2 var(--mono); white-space: nowrap;
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / .8);
}
.ledger__tip::after { content: none; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--text); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .js .ledger.is-in .dots i { animation: twinkle .6s var(--ease) both; animation-delay: calc(var(--d) * 1ms); }
  @keyframes twinkle { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1023px) {
  .ledger__fields { grid-template-columns: 1fr; }
  .ledger__stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .ledger__stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .ledger { padding: 20px; }
  .field-block { padding: 16px; }
  .dots { gap: 5px; }
}

/* Join */
.steps { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 16px; margin-top: 56px; align-items: start; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step > p { color: var(--muted); font-size: 15px; }
.step .btn { align-self: flex-start; margin-top: 4px; }
.step--wide { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); }
.wallets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.wallet { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.wallet__meta { font-size: 13px; color: var(--muted); }
.wallet__meta b { color: var(--text); font-weight: 600; }
.wallet__addr { display: block; font: 13px/1.4 var(--mono); word-break: break-all; margin-top: 4px; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); font: 500 13px/1 var(--font); cursor: pointer; transition: border-color .2s, transform .15s; }
.copy:hover { border-color: var(--muted); }
.copy:active { transform: scale(.97); }
.copy.is-done { border-color: var(--accent-text); color: var(--accent-text); }
.wallets__empty { font-size: 14px; color: var(--muted); padding: 14px; border: 1px dashed var(--line); border-radius: var(--r); }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } }

/* Pay form */
.pay { display: grid; gap: 18px; margin-top: 4px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input {
  height: 48px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  font: 400 16px/1 var(--mono);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:hover { border-color: color-mix(in oklab, var(--line) 50%, var(--muted)); }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: #ff8a7a; }
.help { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: #ffb4a8; }
.qty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty__btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 16px;
  transition: border-color .2s, transform .15s;
}
.qty__btn:hover:not(:disabled) { border-color: var(--muted); }
.qty__btn:active:not(:disabled) { transform: scale(.96); }
.qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.qty__out { min-width: 48px; text-align: center; font-size: 22px; font-weight: 500; }
.qty__total { margin-left: auto; font-size: 14px; }
.qty__total strong { font-size: 20px; color: var(--accent); margin-right: 6px; }
.pay__submit { justify-content: center; width: 100%; }
.pay__submit.is-loading { opacity: .7; cursor: progress; }
.pay__submit.is-loading .ph { animation: nudge 1s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .pay__submit.is-loading .ph { animation: none; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ph { font-size: 18px; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.faq__list details[open] summary .ph { transform: rotate(45deg); color: var(--accent-text); }
.faq__list details p { color: var(--muted); padding: 0 0 24px; max-width: 60ch; }
@media (max-width: 1023px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* Final CTA: same background video as the footer, fading to transparent at the top so it blends into the section above */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 160px 0 140px;
  background: var(--bg);
}
.final__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(7 11 22 / .92) 0%, rgb(7 11 22 / .55) 45%, rgb(7 11 22 / .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%), linear-gradient(180deg, var(--bg) 0%, transparent 45%); }
.final__row { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.final__h { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.04em; max-width: 15ch; padding-bottom: 4px; }
.final__h em { font-style: italic; color: var(--accent); white-space: nowrap; }
.final__p { font-size: 19px; margin-top: 20px; max-width: 46ch; color: var(--muted); }
@media (max-width: 767px) { .final { padding: 96px 0; } .final__video { object-position: 70% center; } .final__row { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  border-top: 1px solid var(--line); padding: 36px 0;
  color: #f1f3ec;
}
.footer__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.footer__scrim { position: absolute; inset: 0; z-index: -1; background: rgb(7 11 22 / .78); }
.footer .logo { color: #f1f3ec; }
.footer .logo__mark { background: var(--accent); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: rgb(241 243 236 / .72); font-size: 14px; }
.footer__links a:hover { color: #f1f3ec; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); font-size: 14px; padding: 10px 16px; border-radius: var(--r); transition: opacity .25s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .ticket.reveal { transform: translateY(18px) rotate(-2deg); }
  .js .ticket.reveal.is-in { transform: rotate(-2deg); }
  .js .ticket.reveal.is-in:hover { transform: rotate(0deg); }
}
