/* LibChain home. Ink-on-paper Lib system with one living surface: an aurora fluid (WebGL) in
   the hero and the closing call to action. Unbounded for display, Geist for text.
   Motion is transform/opacity only and switches off under prefers-reduced-motion. */
@font-face { font-family: 'Unbounded'; src: url('/assets/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --tint: #f3f2ee;
  --tint-2: #ebeae5;
  --ink: #111114;
  --ink-2: #55555c;
  --ink-3: #8a8990;
  --line: rgba(17, 17, 20, 0.08);
  --line-2: rgba(17, 17, 20, 0.14);
  --night: #0b0c0f;
  --night-2: #16171c;
  --on-night: #f4f4f1;
  --on-night-2: rgba(244, 244, 241, 0.62);
  --teal: #49c9b8;
  --peri: #7f9cff;
  --orchid: #d38af2;
  --holo: linear-gradient(100deg, var(--teal) 0%, var(--peri) 50%, var(--orchid) 100%);
  --live: #1d8656;
  --display: 'Unbounded', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wide: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --r-lg: clamp(22px, 2.4vw, 32px);
  --shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 12px 32px -12px rgba(17, 17, 20, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
/* Pinch-zoom stays; double-tap zoom (and its tap delay) goes. */
html { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(127, 156, 255, 0.28); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wide) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.holo { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { position: relative; }
main, footer { overflow-x: clip; }

/* ---------- type */
.tag {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3);
  font-size: 14px; letter-spacing: 0.01em;
}
.tag::before, .tag::after { content: ''; width: 6px; height: 18px; border: 1px solid currentColor; opacity: 0.55; }
.tag::before { border-right: 0; border-radius: 9px 0 0 9px; }
.tag::after { border-left: 0; border-radius: 0 9px 9px 0; }
.on-night .tag { color: var(--on-night-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(34px, 5.4vw, 72px); }
h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 0; }
.on-night .lede { color: var(--on-night-2); }
.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.head.center { justify-items: center; text-align: center; }
.head.center .lede { margin-inline: auto; }

/* ---------- buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 15px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn::before { /* fill sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--holo);
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--night); }
.btn svg { flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.light { --bg: var(--on-night); --fg: var(--night); }
.btn.ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost.on-dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 0; pointer-events: none; }
.bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 12px; height: 72px; margin: 0 auto; max-width: 100%;
  padding: 0 var(--gut); color: var(--on-night); border-radius: 0;
  transition: max-width 0.7s var(--ease), margin 0.7s var(--ease), height 0.5s var(--ease), padding 0.7s var(--ease),
    border-radius 0.7s var(--ease), background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.nav.scrolled .bar {
  max-width: min(980px, calc(100% - 24px)); margin-top: 12px; height: 60px; padding: 0 10px 0 20px; border-radius: 999px;
  color: var(--ink); background: rgba(251, 250, 248, 0.8); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: -0.03em; flex: none; }
.mark { width: 26px; height: 26px; background: currentColor; -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; transition: transform 1.2s var(--ease); }
.logo:hover .mark { transform: rotate(144deg); }
.links { display: flex; gap: 2px; margin: 0 auto; }
.links a { position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; opacity: 0.78; transition: opacity 0.2s, background-color 0.2s; }
.links a:hover, .links a.on { opacity: 1; }
.links a.on::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.launch { --bg: var(--on-night); --fg: var(--night); }
.nav.scrolled .launch { --bg: var(--ink); --fg: var(--paper); }
.launch .chev { transition: transform 0.35s var(--ease); }
.launch[aria-expanded='true'] .chev { transform: rotate(180deg); }
.launch:hover .chev { transform: none; }
.launch[aria-expanded='true']:hover .chev { transform: rotate(180deg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-content: center; justify-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.apps {
  position: absolute; top: calc(100% + 10px); right: 8px; width: min(360px, calc(100vw - 24px));
  padding: 8px; border-radius: 24px; background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(17, 17, 20, 0.3);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right; visibility: hidden;
  transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.apps.open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s, transform 0.4s var(--ease); }
.apps a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 16px; transition: background-color 0.2s; }
.apps a:hover, .apps a:focus-visible { background: var(--tint); }
.apps .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.apps b { display: block; font-weight: 500; font-size: 15px; }
.apps small { display: block; color: var(--ink-3); font-size: 13px; }
.apps .pill { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--tint-2); color: var(--ink-2); }
.apps .pill.live { background: rgba(29, 134, 86, 0.1); color: var(--live); }
.apps .sep { height: 1px; margin: 6px 12px; background: var(--line); }

.sheet {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--on-night);
  padding: 104px var(--gut) 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 36px); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.sheet.open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 0.8s var(--ease); }
.sheet nav { display: grid; }
.sheet nav a { font: 500 clamp(30px, 9vw, 44px)/1.25 var(--display); letter-spacing: -0.035em; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.sheet.open nav a { opacity: 1; transform: none; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
body.locked { overflow: hidden; }
.nav.dark-sheet .bar { color: var(--on-night); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.dark-sheet .launch { --bg: var(--on-night); --fg: var(--night); }

/* ---------- hero */
.hero {
  position: relative; min-height: max(680px, 100svh); color: var(--on-night); background: var(--night);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; isolation: isolate;
}
.fluid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.fluid-fallback {
  position: absolute; inset: -10%; z-index: -3;
  background: radial-gradient(40% 50% at 70% 30%, rgba(127, 156, 255, 0.55), transparent 70%),
    radial-gradient(35% 45% at 25% 60%, rgba(73, 201, 184, 0.45), transparent 70%),
    radial-gradient(30% 40% at 80% 80%, rgba(211, 138, 242, 0.4), transparent 70%), var(--night);
  filter: blur(30px);
}
.hero::after { /* legibility: a soft floor of ink under the text */
  content: ''; position: absolute; inset: auto 0 0; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 12, 15, 0.82), rgba(11, 12, 15, 0.25) 55%, transparent);
}
.hero-top { padding-top: 120px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.hero-top p { margin: 0; max-width: 30ch; font-size: 16px; color: var(--on-night-2); }
.hero-top p b { color: var(--on-night); font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.live { background: #3ddc97; }
.dot.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3ddc97; opacity: 0; }
.dot.beat::after { animation: beat 1.2s var(--ease); }
@keyframes beat { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }
.hero-foot { display: grid; gap: 32px; align-items: end; padding-bottom: clamp(32px, 6vh, 64px); }
.hero h1 { font-size: clamp(46px, 8.6vw, 128px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 500; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .ch { display: inline-block; transform: translateY(105%); }
.hero.in h1 .ch { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 28ms + 150ms); }
.hero .lede { margin-top: 26px; color: rgba(244, 244, 241, 0.78); max-width: 50ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fade-up { opacity: 0; transform: translateY(18px); }
.hero.in .fade-up { opacity: 1; transform: none; transition: opacity 0.9s, transform 1.1s var(--ease); transition-delay: var(--d, 0.6s); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.stat {
  position: relative; justify-self: start; width: min(100%, 440px); padding: 22px 24px 20px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: rgba(13, 14, 18, 0.5); color: var(--on-night);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.stat::before { /* a holo light travelling round the border */
  content: ''; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--a), transparent 0 62%, var(--teal) 74%, var(--peri) 84%, var(--orchid) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 6s linear infinite;
}
@keyframes orbit { to { --a: 360deg; } }
.stat::after { /* sweep when a block lands */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(127, 156, 255, 0.22) 45%, rgba(73, 201, 184, 0.18) 55%, transparent 70%);
  transform: translateX(-100%);
}
.stat.flash::after { animation: sweep 1.1s var(--ease); }
@keyframes sweep { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(100%); } }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat-live { display: flex; align-items: center; gap: 12px; }
.stat-live b { display: block; font-weight: 500; font-size: 14.5px; }
.stat-live small { display: block; color: var(--on-night-2); font-size: 12.5px; }
.timer { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 2.5; }
.timer .tr { stroke: rgba(255, 255, 255, 0.1); }
.timer .tp { stroke: url(#tg); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; transition: stroke-dashoffset 1s linear; }
.timer b { font: 500 11.5px/1 var(--sans); color: var(--on-night); }
.stat-k { display: block; margin-top: 18px; color: var(--on-night-2); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.odo { display: flex; align-items: baseline; font: 500 clamp(48px, 5.4vw, 74px)/1.05 var(--display); letter-spacing: -0.045em; margin: 4px 0 16px; min-height: 1.05em; }
.odo::before { content: '#'; font-size: 0.42em; margin-right: 0.12em; color: var(--on-night-2); align-self: center; }
.odo.bump { animation: bump 0.7s var(--ease); }
@keyframes bump { 30% { text-shadow: 0 0 28px rgba(127, 156, 255, 0.75); } }
.digit { position: relative; display: inline-block; overflow: hidden; }
.digit span { display: inline-block; transition: transform 0.55s var(--ease), filter 0.55s; }
.strip { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.strip i { flex: 1; min-width: 0; height: 30%; border-radius: 4px; background: rgba(255, 255, 255, 0.12); transition: height 0.6s var(--ease), background-color 0.4s; }
.strip i.tx { background: var(--holo); background-size: 1400% 100%; }
.strip i.ph { background: rgba(255, 255, 255, 0.05); }
.strip i.last { box-shadow: 0 0 14px rgba(127, 156, 255, 0.7); background: var(--on-night); }
.strip i.last.tx { background: var(--holo); }
.strip i.in { animation: cell-in 0.7s var(--ease); }
@keyframes cell-in { from { transform: scaleY(0); transform-origin: bottom; } }
.strip-cap { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--on-night-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.stat-grid div + div { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.stat-grid small { display: block; color: var(--on-night-2); font-size: 12px; }
.stat-grid b { display: block; margin-top: 3px; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; inset: 0; background: var(--on-night); transform: translateY(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }

@media (min-width: 1000px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .stat { justify-self: end; }
}

/* ---------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px);
  font: 500 clamp(22px, 3.2vw, 40px)/1 var(--display); letter-spacing: -0.035em; white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee-track svg { flex: none; width: 0.7em; height: 0.7em; color: var(--peri); }

/* ---------- sections */
.sec { padding: clamp(88px, 13vw, 168px) 0; }
.sec.tight { padding-top: clamp(56px, 7vw, 96px); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s, transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.seen { opacity: 1; transform: none; }

/* about: scroll-inked statement */
.statement { font: 500 clamp(26px, 3.7vw, 54px)/1.16 var(--display); letter-spacing: -0.035em; margin: 28px 0 0; max-width: 24ch; }
.statement .w { color: rgba(17, 17, 20, 0.14); transition: color 0.4s; }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(56px, 8vw, 104px); }
.fact { padding: 26px 24px; border-radius: var(--r-lg); background: var(--tint); }
.fact b { display: block; font: 500 clamp(32px, 4vw, 52px)/1 var(--display); letter-spacing: -0.045em; }
.fact span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* technology: list + stage */
.tech { display: grid; gap: clamp(24px, 4vw, 56px); }
.tech > * { min-width: 0; }
.tlist { display: grid; align-content: start; }
.titem { border-top: 1px solid var(--line-2); }
.titem:last-child { border-bottom: 1px solid var(--line-2); }
.titem button { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 0; text-align: left; }
.titem .n { font: 500 13px/1 var(--mono); color: var(--ink-3); width: 24px; flex: none; }
.titem h3 { flex: 1; color: var(--ink-3); transition: color 0.3s; }
.titem.on h3, .titem button:hover h3 { color: var(--ink); }
.titem .pm { position: relative; width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.titem .pm::before, .titem .pm::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.titem .pm::after { transform: rotate(90deg); }
.titem.on .pm::after { transform: rotate(0); }
.tbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.titem.on .tbody { grid-template-rows: 1fr; }
.tbody > div { overflow: hidden; }
.tbody p { margin: 0 0 18px 42px; color: var(--ink-2); max-width: 46ch; }
.tbar { height: 2px; margin: 0 0 22px 42px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.stage {
  position: relative; border-radius: var(--r-lg); background: var(--tint); overflow: hidden;
  height: clamp(400px, 92vw, 560px); isolation: isolate;
}
.stage::before { /* soft holo halo that drifts */
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; z-index: -1; border-radius: 50%;
  background: var(--holo); filter: blur(70px); opacity: 0.22; animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(18%, 12%) scale(1.15); } }
.viz { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(18px, 3vw, 40px); opacity: 0; transform: scale(0.97); visibility: hidden; transition: opacity 0.5s, transform 0.8s var(--ease), visibility 0s linear 0.5s; }
.viz.on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.6s 0.1s, transform 0.9s var(--ease) 0.1s; }
@media (max-width: 959px) { .stage { order: -1; } }
@media (min-width: 960px) {
  .tech { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .stage { position: sticky; top: 100px; height: auto; aspect-ratio: 5 / 4; }
}

/* viz: blocks */
.chain { display: flex; gap: 12px; width: 100%; justify-content: center; }
.blk {
  flex: 0 0 auto; width: clamp(92px, 12vw, 128px); aspect-ratio: 1; border-radius: 22px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform 0.9s var(--ease), opacity 0.6s;
}
.blk b { font: 500 clamp(14px, 1.4vw, 17px)/1.1 var(--display); letter-spacing: -0.03em; }
.blk small { color: var(--ink-3); font-size: 12px; }
.blk .ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--live); font-weight: 500; }
.blk.new { background: var(--ink); color: var(--paper); }
.blk.new small { color: rgba(255, 255, 255, 0.55); }
.blk.new .ok { color: #3ddc97; }
.blk.enter { animation: blk-in 0.9s var(--ease); }
@keyframes blk-in { from { transform: translateX(-60%) scale(0.85); opacity: 0; } }
.chain .blk:nth-child(n + 4) { display: none; }
@media (min-width: 560px) { .chain .blk:nth-child(4) { display: flex; } }
@media (max-width: 359px) { .chain .blk:nth-child(3) { display: none; } }
.viz-cap { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vw, 32px); text-align: center; color: var(--ink-2); font-size: 14px; padding: 0 16px; }

/* viz: code */
.code {
  width: min(100%, 520px); border-radius: 20px; background: var(--night); color: #d9dae0; padding: 18px 20px 20px;
  font: 13px/1.65 var(--mono); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.code .top { display: flex; gap: 6px; margin-bottom: 14px; }
.code .top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code pre { margin: 0; white-space: pre-wrap; word-break: break-word; min-height: 13.2em; }
.code .k { color: var(--orchid); } .code .t { color: var(--teal); } .code .s { color: #f0c987; } .code .c { color: #6f717c; }
.code .out { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #3ddc97; min-height: 1.65em; }
.caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -0.2em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* viz: address */
.addr { width: min(100%, 520px); display: grid; gap: 12px; }
.addr .card { border-radius: 20px; background: var(--paper); padding: 18px 20px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.addr label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.addr .v { font: 500 clamp(13px, 1.5vw, 16px)/1.45 var(--mono); word-break: break-all; }
.addr .v .bad { color: #d4493f; background: rgba(212, 73, 63, 0.1); border-radius: 3px; }
.addr .verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--live); transition: color 0.3s; }
.addr .verdict.no { color: #d4493f; }
.addr .arrow { justify-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); }

/* viz: phone */
.phone {
  position: relative; height: 92%; aspect-ratio: 360 / 600; border-radius: clamp(22px, 3vw, 34px); padding: 7px; background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden; background: var(--tint); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.8s; }
.phone img.on { opacity: 1; }

/* viz: explorer */
.xcard { width: min(100%, 480px); border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.xhead { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.xhead .coin-sm { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.xhead .coin-sm i { width: 22px; height: 22px; background: var(--paper); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; }
.xhead b { display: block; font-weight: 500; }
.xhead small { color: var(--ink-3); font-size: 13px; }
.xrow { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.xrow:last-child { border-bottom: 0; }
.xrow span:first-child { color: var(--ink-3); }
.xrow .ok { color: var(--live); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.xrow a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- Lib Coin */
.night { background: var(--night); color: var(--on-night); }
.coin-wrap { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.coin-wrap > * { min-width: 0; }
.coin-scene { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; perspective: 1200px; }
.coin-scene::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: var(--holo); filter: blur(80px); opacity: 0.35; }
.ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); animation: spin 60s linear infinite; }
.ring.r2 { inset: 16%; border-style: solid; border-color: rgba(255, 255, 255, 0.07); animation-duration: 40s; animation-direction: reverse; }
.ring i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.ring.r2 i { background: var(--orchid); box-shadow: 0 0 16px var(--orchid); top: auto; bottom: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.coin { position: relative; width: 56%; aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.coin .face, .coin .edge { position: absolute; inset: 0; border-radius: 50%; }
.coin .face {
  display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(circle at 32% 28%, #3a3b44 0%, #17181d 55%, #0d0e12 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06), inset 0 0 0 7px rgba(0, 0, 0, 0.4), inset 0 0 0 12px rgba(255, 255, 255, 0.04);
}
.coin .face::after { /* moving sheen */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%);
  background-size: 250% 100%; background-position: var(--sheen, 50%) 0;
}
.coin .face i { width: 46%; aspect-ratio: 1; background: linear-gradient(135deg, #f4f4f1, #b9bccb); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; }
.coin .face.back { transform: rotateY(180deg) translateZ(11px); }
.coin .face.front { transform: translateZ(11px); }
.coin .face.back b { font: 600 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -0.04em; }
.coin .face.back b span { display: block; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; color: var(--on-night-2); margin-top: 10px; }
.coin .edge { background: linear-gradient(90deg, #2a2b33, #5b5d6b, #2a2b33); }
.uses { display: grid; gap: 12px; margin-top: 36px; }
.use { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.use .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--on-night); }
.use b { display: block; font-weight: 500; font-size: 17px; }
.use p { margin: 4px 0 0; color: var(--on-night-2); font-size: 15px; }
.note { margin: 22px 0 0; color: var(--on-night-2); font-size: 14px; }
@media (min-width: 960px) { .coin-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- ecosystem */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint); position: relative; }
.tabs button { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-3); transition: color 0.3s; }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs .knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(17, 17, 20, 0.06); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
.grid { display: grid; gap: 14px; margin-top: 40px; }
.grid[hidden] { display: none; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--tint); overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.card::after { /* pointer spotlight */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(127, 156, 255, 0.16), transparent 60%);
}
.card:hover::after { opacity: 1; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .art { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; }
.card .txt { padding: 4px 24px 26px; display: grid; gap: 8px; }
.card .txt p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--paper); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.badge.live { color: var(--live); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.grid .card { opacity: 0; transform: translateY(24px); }
.grid.show .card { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.9s var(--ease), box-shadow 0.4s; transition-delay: calc(var(--i) * 80ms); }
.grid.show a.card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* card arts */
.art-wallet img { width: 62%; border-radius: 18px 18px 0 0; align-self: end; margin-top: 28px; box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform 0.8s var(--ease); }
.card:hover .art-wallet img { transform: translateY(-8px); }
.art-rows { width: 78%; display: grid; gap: 8px; }
.art-rows div { height: 30px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 500 11.5px/1 var(--mono); color: var(--ink-2); animation: rowin 4.5s var(--ease) infinite; animation-delay: calc(var(--i) * 0.25s); }
.art-rows div::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--ink); }
@keyframes rowin { 0% { opacity: 0; transform: translateY(-10px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.art-drop { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.art-drop svg { position: relative; z-index: 1; width: 46px; height: 46px; animation: bob 3s ease-in-out infinite; }
.art-drop i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: ripple 3s var(--ease) infinite; }
.art-drop i:nth-child(2) { animation-delay: 1s; } .art-drop i:nth-child(3) { animation-delay: 2s; }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 0.5; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.art-wrap { display: flex; align-items: center; gap: 14px; }
.art-wrap span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--display); letter-spacing: -0.02em; }
.art-wrap span:first-child { background: var(--ink); color: var(--paper); animation: nudge 3.2s var(--ease) infinite; }
.art-wrap span:last-child { background: var(--paper); box-shadow: 0 0 0 1px var(--line-2); animation: nudge 3.2s var(--ease) infinite reverse; }
.art-wrap svg { color: var(--ink-3); }
@keyframes nudge { 50% { transform: translateX(6px); } }
.art-swap { width: 92px; height: 92px; border-radius: 30px; background: var(--ink); color: var(--paper); display: grid; place-items: center; animation: swap 4s var(--ease) infinite; }
@keyframes swap { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.art-gift { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.art-gift svg { width: 52px; height: 52px; }
.art-gift i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--holo); animation: pop 2.8s var(--ease) infinite; }
.art-gift i:nth-of-type(1) { --x: -46px; --y: -40px; } .art-gift i:nth-of-type(2) { --x: 48px; --y: -34px; animation-delay: 0.3s; }
.art-gift i:nth-of-type(3) { --x: -38px; --y: 40px; animation-delay: 0.6s; } .art-gift i:nth-of-type(4) { --x: 44px; --y: 42px; animation-delay: 0.9s; }
@keyframes pop { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(180deg); opacity: 0; } }
.art-nft { position: relative; width: 150px; height: 120px; }
.art-nft i { position: absolute; left: 45px; top: 0; width: 64px; height: 84px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); transform-origin: 50% 120%; transition: transform 0.8s var(--ease); }
.art-nft i:nth-child(1) { transform: rotate(-16deg); background: linear-gradient(160deg, var(--teal), var(--peri)); }
.art-nft i:nth-child(2) { transform: rotate(0); background: linear-gradient(160deg, var(--peri), var(--orchid)); }
.art-nft i:nth-child(3) { transform: rotate(16deg); background: var(--ink); }
.card:hover .art-nft i:nth-child(1) { transform: rotate(-28deg); } .card:hover .art-nft i:nth-child(3) { transform: rotate(28deg); }
.art-main { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.art-main .mk { width: 54px; height: 54px; background: var(--ink); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; animation: spin 18s linear infinite; }
.art-main i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 24s linear infinite reverse; }
.art-main i::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--peri); }

/* ---------- wallet */
.wallet { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.wallet > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { margin-top: 2px; }
.small-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.cols {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; height: clamp(560px, 80vh, 820px); overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.col { display: grid; gap: 14px; align-content: start; will-change: transform; }
.col img { width: 100%; height: auto; aspect-ratio: 360 / 600; border-radius: clamp(18px, 2vw, 26px); box-shadow: 0 0 0 1px var(--line), var(--shadow); background: var(--tint); }
.col:nth-child(3) { display: none; }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .col:nth-child(3) { display: grid; } }
@media (min-width: 1000px) { .wallet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- roadmap */
.road { position: relative; padding: clamp(88px, 13vw, 168px) 0; }
.road-pin { position: relative; }
.road-track { display: grid; gap: 14px; position: relative; padding-left: 34px; }
.road-line { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.road-line i { position: absolute; inset: 0; background: var(--holo); transform-origin: top; transform: scaleY(var(--p, 0)); }
.phase { position: relative; padding: 28px clamp(22px, 2.6vw, 32px) 30px; border-radius: var(--r-lg); background: var(--tint); display: flex; flex-direction: column; gap: 14px; }
.phase::before { content: ''; position: absolute; left: -31px; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--line-2); }
.phase.done::before, .phase.now::before { background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.phase.now::before { animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 2px rgba(127, 156, 255, 0.6); } 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 14px rgba(127, 156, 255, 0); } }
.phase .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phase .ph > span:first-child { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.phase .big { font: 500 clamp(54px, 6vw, 84px)/0.9 var(--display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.phase.done .big, .phase.now .big { color: var(--ink); -webkit-text-stroke: 0; }
.phase.now { background: var(--night); color: var(--on-night); }
.phase.now .big { color: var(--on-night); }
.phase.now .ph > span:first-child, .phase.now li { color: var(--on-night-2); }
.phase.now .badge { background: rgba(255, 255, 255, 0.08); color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.phase ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.phase li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-2); }
.phase li svg { margin-top: 3px; }
.phase li.y { color: inherit; }
.phase.now li.y { color: var(--on-night); }
@media (min-width: 1000px) {
  .road { height: var(--road-h, 300vh); padding: 0; }
  .road-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .road-pin .head { margin-bottom: 8px; gap: 16px; }
  .road-pin h2 { font-size: clamp(34px, 4.2vw, 60px); }
  .road-track { display: flex; gap: 16px; padding: 46px 0 0; width: max-content; will-change: transform; }
  .road-line { left: 0; right: 0; top: 14px; bottom: auto; width: auto; height: 2px; }
  .road-line i { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .phase { width: clamp(340px, 30vw, 420px); }
  .phase::before { left: 30px; top: -39px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .road-pin .tag { display: none; }
  .road-pin h2 { font-size: clamp(30px, 3.4vw, 46px); }
  .phase { padding: 22px 26px 24px; gap: 10px; }
  .phase .big { font-size: 52px; }
  .phase li { font-size: 14px; }
  .phase ul { gap: 7px; }
}

/* ---------- vision */
.vrow { display: grid; gap: 10px 32px; padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1px solid var(--line-2); align-items: baseline; position: relative; }
.vrow:last-child { border-bottom: 1px solid var(--line-2); }
.vrow .n { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.vrow h3 { font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.055em; line-height: 0.95; transition: transform 0.8s var(--ease); }
.vrow h3 span { display: inline-block; transition: color 0.5s; }
.vrow:hover h3 { transform: translateX(14px); }
.vrow:hover h3 span { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vrow p { margin: 0; color: var(--ink-2); max-width: 40ch; font-size: 16.5px; }
@media (min-width: 900px) { .vrow { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 0.8fr); } }

/* ---------- developers */
.dev { display: grid; gap: 14px; }
.dev > * { min-width: 0; }
.panel { border-radius: var(--r-lg); background: var(--tint); padding: clamp(10px, 1.4vw, 14px); }
.rows { display: grid; }
.rows div { display: grid; grid-template-columns: 116px minmax(0, 1fr) 44px; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--ink-3); font-size: 14px; }
.rows dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.copy { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.copy:hover { background: var(--paper); color: var(--ink); }
.copy[data-done] { color: var(--live); }
.ide { border-radius: var(--r-lg); background: var(--night); color: #d9dae0; overflow: hidden; display: flex; flex-direction: column; }
.ide-bar { display: flex; align-items: center; gap: 4px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); overflow-x: auto; scrollbar-width: none; }
.ide-bar::-webkit-scrollbar { display: none; }
.ide-bar button { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.ide-bar button[aria-selected='true'] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ide-bar .copy { margin-left: auto; color: rgba(255, 255, 255, 0.6); flex: none; }
.ide-bar .copy:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ide pre { margin: 0; padding: 22px 24px 26px; font: 13.5px/1.7 var(--mono); overflow-x: auto; max-width: 100%; flex: 1; }
.ide pre[hidden] { display: none; }
.ide .k { color: var(--orchid); } .ide .t { color: var(--teal); } .ide .s { color: #f0c987; } .ide .c { color: #6f717c; }
.dev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.dev-foot small { color: var(--ink-3); font-size: 14px; }
@media (min-width: 1000px) { .dev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 520px) { .rows div { grid-template-columns: minmax(0, 1fr) 44px; } .rows dt { grid-column: 1 / -1; margin-bottom: -6px; } }

/* ---------- faq */
.faq { display: grid; gap: clamp(32px, 5vw, 72px); }
.faq > * { min-width: 0; }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; text-align: left; font: 500 clamp(17px, 1.6vw, 20px)/1.35 var(--sans); }
.qa .pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.3s, transform 0.5s var(--ease); }
.qa .pm::before, .qa .pm::after { content: ''; position: absolute; left: 10px; top: 15.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa.on .pm { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.qa.on .pm::after { transform: rotate(0); }
.qa .tbody p { margin: 0 0 24px; max-width: 64ch; }
.qa.on .tbody { grid-template-rows: 1fr; }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }

/* ---------- final cta + footer */
.cta { position: relative; margin: 0 var(--gut); border-radius: clamp(28px, 3.4vw, 44px); overflow: hidden; color: var(--on-night); background: var(--night); isolation: isolate; text-align: center; padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px); }
.cta .fluid { z-index: -1; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(11, 12, 15, 0.5), transparent); pointer-events: none; }
.cta h2 { font-size: clamp(40px, 8vw, 116px); letter-spacing: -0.055em; }
.cta .lede { margin: 22px auto 0; color: rgba(244, 244, 241, 0.78); }
.cta .ctas { justify-content: center; }
.foot { padding: clamp(64px, 8vw, 104px) 0 32px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-grid > :first-child { grid-column: 1 / -1; }
.foot-grid p { margin: 14px 0 0; color: var(--ink-2); max-width: 34ch; font-size: 15px; }
.foot h4 { margin: 0 0 14px; font: 500 13px/1 var(--sans); color: var(--ink-3); letter-spacing: 0.02em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { font-size: 15px; transition: opacity 0.2s; }
.foot ul a:hover { opacity: 0.6; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.wordmark { margin-top: 40px; font: 600 clamp(56px, 16vw, 248px)/0.86 var(--display); letter-spacing: -0.045em; color: var(--tint-2); white-space: nowrap; user-select: none; overflow: hidden; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: auto; } }

/* ---------- responsive nav */
@media (max-width: 1079px) {
  .links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 420px) {
  .launch { padding: 0 14px; }
  .launch .lbl-long { display: none; }
  .nav.scrolled .bar { padding-left: 16px; }
  .logo { font-size: 16px; }
}
@media (min-width: 421px) { .launch .lbl-short { display: none; } }
@media (max-width: 640px) {
  .hero-top { padding-top: 92px; }
  .hero-top p { display: none; }
  .scroll-cue { display: none; }
  .hero-foot { padding-top: 40px; gap: 28px; }
  .hero h1 { font-size: clamp(40px, 13.4vw, 72px); }
  .hero .lede { margin-top: 20px; font-size: 16.5px; }
  .ctas { margin-top: 26px; }
  .stat { width: 100%; padding: 18px 18px 16px; border-radius: 24px; }
  .odo { font-size: 46px; margin: 2px 0 12px; }
  .stat-k { margin-top: 14px; }
  .stat-grid div + div { padding-left: 10px; }
  .stat-grid b { font-size: 14.5px; }
  .ctas .btn { flex: 1 1 auto; }
  .card .art { height: 180px; }
}

/* ---------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .hero h1 .ch, .fade-up, .reveal, .grid .card { transform: none !important; opacity: 1 !important; }
  .statement .w { color: var(--ink); }
}
