/* Hardcode — one spacing scale (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128), neutral surfaces, one accent. */
:root {
  --bg: #0A0B0D;
  --surface: #111215;
  --surface-2: #16181C;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --fg: #F2F3F5;
  --muted: #A0A6AF;
  --subtle: #6E747D;
  --accent: #C6FF3D;
  --accent-ink: #0A0B0D;
  --accent-soft: rgba(198,255,61,0.10);
  --cyan: #5CC8FF;
  --bad: #F0646A;
  --bad-soft: rgba(240,100,106,0.10);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 12px;
  --radius-lg: 20px;
  --gutter: 20px;
  --section: var(--s8);
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.muted { color: var(--subtle); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ic.ok { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #D4FF6B; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: 14px; }

/* ---------- nav ---------- */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav-bar.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: none; gap: var(--s6); font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }

/* ---------- type ---------- */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: var(--s4); }
h2 { font-size: clamp(30px, 7vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.section-sub { margin-top: var(--s4); max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-head { margin-bottom: var(--s7); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--section); overflow: hidden; }
.hero-inner { text-align: center; max-width: 880px; }
.hero-title {
  font-size: clamp(40px, 10.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin: var(--s5) auto 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero-ctas { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }
.hero .hero-ctas { align-items: stretch; }

/* product window */
.product {
  margin: var(--s8) auto 0;
  max-width: 880px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
}
.product-bar {
  display: flex; align-items: center; gap: var(--s3);
  height: 44px; padding: 0 var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px; color: var(--subtle);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.product-url { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s2);
  border-radius: 6px; background: rgba(255,255,255,0.06);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.product-body { padding: var(--s5) var(--s4); }
.coin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.coin-id { display: flex; align-items: center; gap: var(--s3); }
.coin-avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-weight: 600; color: var(--accent);
}
.coin-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.coin-meta { font-size: 13px; color: var(--subtle); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s3);
  border-radius: 999px; font-size: 13px; font-weight: 500;
}
.pill .ic { width: 14px; height: 14px; }
.pill-ok { background: var(--accent-soft); color: var(--accent); }

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: var(--s5);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line); overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); background: var(--surface); }
.stat-label { font-size: 13px; color: var(--subtle); }
.stat-value { font-size: 20px; font-weight: 500; }

.rule-list { margin-top: var(--s5); }
.rule-list li {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 48px; padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.rule-list li span { flex: 1; }
.rule-list li b { font-weight: 500; color: var(--fg); }
.rule-list li.more { padding-left: 30px; border-bottom: 0; }
.product-foot { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: 13px; color: var(--subtle); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- story ---------- */
.story { padding: var(--section) 0; border-top: 1px solid var(--line); }
.story-grid { display: grid; gap: var(--s7); }
.steps { display: flex; flex-direction: column; gap: var(--s4); }
.step {
  position: relative;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .4s var(--ease), opacity .4s var(--ease);
}
.step-num { display: block; font-size: 13px; color: var(--subtle); margin-bottom: var(--s3); }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: var(--s4); }
.was, .now { font-size: 15px; line-height: 1.6; color: var(--muted); }
.now { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--fg); }
.was-label, .now-label { display: block; margin-bottom: var(--s1); font-size: 13px; font-weight: 500; }
.was-label { color: var(--bad); }
.now-label { color: var(--accent); }
.step.active { border-color: var(--line-strong); }
/* phones: each step carries its own row state from the sheet */
.step-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.step-head .step-num { margin: 0; }
.step.fixed .row-state .bad { opacity: 0; transform: translateY(-6px); }
.step.fixed .row-state .good { opacity: 1; transform: none; }

.sheet-col { display: none; }
.sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--s5);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.sheet-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; transition: color .3s; }
.sheet-meta { margin-top: 2px; font-size: 14px; color: var(--subtle); }
.sheet-score { font-size: 32px; font-weight: 500; line-height: 1; }
.sheet-score .of { color: var(--subtle); }
.sheet-progress { height: 4px; margin: var(--s5) 0 var(--s2); border-radius: 4px; background: var(--bad-soft); overflow: hidden; }
.sheet-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .6s var(--ease); }
.sheet-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 52px; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.sheet-rows li:last-child { border-bottom: 0; }
.row-label { color: var(--muted); }
.row-state { position: relative; display: grid; justify-items: end; }
.row-state > span {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.row-state .ic { width: 14px; height: 14px; }
.row-state .bad { background: var(--bad-soft); color: var(--bad); }
.row-state .good { background: var(--accent-soft); color: var(--accent); opacity: 0; transform: translateY(6px); }
li.fixed .row-state .bad { opacity: 0; transform: translateY(-6px); }
li.fixed .row-state .good { opacity: 1; transform: none; }
li.current .row-label { color: var(--fg); }
.sheet.done .sheet-title { color: var(--accent); }

.evidence {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5);
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--subtle);
}
.evidence a { color: var(--muted); text-decoration: none; display: inline-flex; gap: var(--s2); min-height: 44px; align-items: center; }
.evidence a:hover { color: var(--fg); }
.evidence a .mono { color: var(--cyan); }

/* ---------- cards ---------- */
.how, .built, .spec, .audience { padding: var(--section) 0; border-top: 1px solid var(--line); }
.audience { border-top: 0; padding-top: 0; }
.cards { display: grid; gap: var(--s4); }
.card {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s2);
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--fg);
}
.card-icon .ic { width: 20px; height: 20px; }
.card-step { font-size: 13px; color: var(--subtle); }
.card-lg h3 { font-size: 22px; letter-spacing: -0.02em; }
.link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-top: auto; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
.link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(3px); }

/* ---------- spec ---------- */
.spec-grid { display: grid; gap: var(--s7); align-items: center; }
.ticks { margin-top: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.ticks li { display: flex; gap: var(--s3); align-items: center; font-size: 15px; color: var(--fg); }
.mini-sheet {
  position: relative;
  padding: var(--s2) var(--s5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 56px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.mini-row:last-of-type { border-bottom: 0; }
.mini-row b { font-weight: 500; color: var(--fg); text-align: right; }
.split { flex: 1; max-width: 120px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.split span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.tag-float { position: absolute; top: -11px; right: var(--s5); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta-box {
  padding: var(--s8) var(--s5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.cta-box p { margin: var(--s4) auto 0; max-width: 480px; font-size: 17px; color: var(--muted); }
.cta-box .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s8); }
.footer-inner { display: flex; flex-direction: column; gap: var(--s3); font-size: 14px; color: var(--muted); }
.footer .brand { color: var(--fg); margin-bottom: var(--s2); }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.words-in .w > span { transform: none; }

/* ---------- ≥ 640 ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; --section: var(--s9); }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero .hero-ctas { align-items: center; }
  .product-body { padding: var(--s6); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .card { padding: var(--s6); }
  .cta-box { padding: var(--s9) var(--s7); }
}

/* ---------- ≥ 1024 ---------- */
@media (min-width: 1024px) {
  :root { --section: var(--s10); }
  .nav-links { display: flex; }
  .hero { padding-top: var(--s9); }
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s9); align-items: start; }
  .steps { gap: 0; }
  .step {
    min-height: 72vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0; border: 0; background: none;
    opacity: 0.3;
  }
  .step.active { opacity: 1; }
  .step-head .row-state { display: none; }
  .step h3 { font-size: 32px; }
  .was, .now { font-size: 17px; max-width: 520px; }
  .sheet-col { display: block; position: sticky; top: calc(50vh - 260px); }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: var(--s9); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer .brand { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .w > span { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
