:root {
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6e6e6a;
  --line: #e7e7e3;
  --line-2: #d9d9d4;
  --yellow: #f4b728;
  --yellow-soft: #fff4d6;
  --green: #17a35a;
  --red: #d64040;
  --radius: 16px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }

/* highlight blocks, like the reference */
mark { color: inherit; background: none; }
.hl-dark, .hl-yellow {
  padding: 0 .14em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl-dark { background: var(--ink); color: #fff; }
.hl-yellow { background: var(--yellow); color: var(--ink); }

/* ---------- stripes ---------- */
.stripes { pointer-events: none; }
.stripes svg { width: 100%; height: 100%; display: block; }
.s-hero-r {
  position: absolute; z-index: -1; top: 70px; right: -300px;
  width: 620px; height: 940px;
  transform: translate(var(--mx, 0), var(--py, 0));
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 85%);
          mask-image: linear-gradient(200deg, #000 35%, transparent 85%);
}
.s-left {
  position: absolute; z-index: -1; top: 1500px; left: -150px;
  width: 300px; height: 600px; opacity: .9;
  transform: translateY(var(--py, 0));
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 95%);
          mask-image: linear-gradient(90deg, #000 30%, transparent 95%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.btn-dark:hover { box-shadow: 6px 6px 0 var(--yellow); transform: translate(-1px, -1px); }
.btn-line { border: 1.5px solid var(--ink); background: #fff; }
.btn-line:hover { background: var(--yellow-soft); }
.btn .dot, .tag .dot, .stage-label .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); display: inline-block;
  box-shadow: 0 0 0 0 rgba(244,183,40,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,183,40,.7); } 70% { box-shadow: 0 0 0 8px rgba(244,183,40,0); } 100% { box-shadow: 0 0 0 0 rgba(244,183,40,0); } }

.chip {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px;
  font-size: 11px; letter-spacing: .08em; border: 1px solid var(--ink); background: var(--yellow);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 17px; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--yellow); transition: right .25s; }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid var(--line-2); }
.btn-x:hover { border-color: var(--ink); }

/* ---------- hero (copy + live chat) ---------- */
.hero {
  max-width: 1380px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 4vw, 56px); align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 48px) 80px;
  min-height: min(calc(100vh - 66px), 900px);
  scroll-margin-top: 66px;
}
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 76px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800;
  margin: 24px 0 22px;
}
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* $ZETA -> $ZEC callout */
.zec-callout {
  position: relative; overflow: hidden; margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff;
  font-size: 15px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .2s;
}
.zec-callout .k { background: var(--ink); color: var(--yellow); font-size: 12px; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.zec-callout .arr { font-weight: 700; transition: transform .2s; }
.zec-callout:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.zec-callout:hover .arr { transform: translate(2px, -2px); }
.zec-callout::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(244,183,40,.35) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite 2s;
}
@keyframes shine { 40%, 100% { transform: translateX(100%); } }

/* ---------- ticker ---------- */
.ticker { border-block: 1.5px solid var(--ink); overflow: hidden; background: var(--ink); color: #fff; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 13px 0; font-size: 13px; letter-spacing: .04em; animation: tick 40s linear infinite; }
.ticker-track span { white-space: nowrap; }
.ticker-track b { color: var(--yellow); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section-head { max-width: 1240px; margin: 0 auto 44px; padding: 0 clamp(16px, 4vw, 48px); }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.section-head h2, .zebra h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 14px 0 14px; }
.section-head p { font-size: 17px; max-width: 560px; line-height: 1.55; }

.how, .faq { padding: 110px 0 40px; }

/* ---------- chat ---------- */
.hero-chat { position: relative; isolation: isolate; scroll-margin-top: 90px; }
/* the hard shadow is a band of moving zebra stripes */
.hero-chat::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: 18px;
  border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, #fff 14px 20px, var(--ink) 20px 30px, var(--yellow) 30px 38px) 0 0 / 220px 220px;
  animation: belt 9s linear infinite;
}
@keyframes belt { to { background-position: 220px 0; } }
.chat {
  position: relative;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 620px;
  border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff;
}
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top-right { display: flex; align-items: center; gap: 8px; }
.chip, .who small, .who b { white-space: nowrap; }
.demo-pill {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .1em;
  padding: 5px 9px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--muted);
}
.demo-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }

/* zebra stage: spotlight, scanlines, floor shadow (GOLEM-style, ZETA colours) */
.stage {
  position: relative; overflow: hidden; border-right: 1.5px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 56%, rgba(244,183,40,.38), rgba(244,183,40,.08) 42%, transparent 64%),
    repeating-linear-gradient(0deg, rgba(10,10,10,.035) 0 1px, transparent 1px 4px),
    var(--bg-2);
}
.stage-stripes { position: absolute; inset: 0; opacity: .06; }
.stage::after { /* floor shadow */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 25%; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(10,10,10,.28), transparent 70%); filter: blur(3px);
  transition: transform .4s, opacity .4s;
}
.stage canvas, .stage .zeta-video {
  position: relative; z-index: 1; width: 112%; max-width: none; aspect-ratio: 1; height: auto;
  margin-top: 30px; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(244,183,40,.35));
  transition: transform .4s ease, filter .3s;
}
.stage.has-video canvas, .stage.has-video .zeta-video { animation: pixelIn 1.1s steps(9) both .2s; }
@keyframes pixelIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.stage:not(.has-video) canvas { display: none; }
.stage.thinking canvas, .stage.thinking .zeta-video { filter: drop-shadow(0 0 26px rgba(244,183,40,.9)) brightness(1.08); transform: translateY(-4px); }
.stage.thinking::after { transform: scaleX(.85); opacity: .7; }
.zeta-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.stage-fallback[hidden] { display: none; }
.stage-fallback img { width: 120px; height: 120px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(6px 6px 0 var(--yellow)); }
.stage.thinking .stage-fallback img { animation-duration: 1s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.stage-stats { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: grid; gap: 6px; }
.stage-stats div {
  display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line-2); font-size: 10px; letter-spacing: .12em;
}
.stage-stats span { color: var(--muted); }
.stage-stats b { font-weight: 500; letter-spacing: .04em; }
.stage-label {
  position: absolute; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink);
}
.stage.thinking .stage-label { background: var(--yellow); }

/* welcome card: route picker (fills the empty chat, like GOLEM's strategy picker) */
.intro-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.intro-routes button {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; text-align: left;
  background: #fff; border: 1.5px solid var(--line-2); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.intro-routes button:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--yellow); }
.intro-routes .mini { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; }
.intro-routes .mini i { height: 14px; border-radius: 3px; overflow: hidden; border: 1px solid var(--ink); position: relative; }
.intro-routes .mini i .stripes { position: absolute; inset: 0; }
.intro-routes b { font-size: 13px; }
.intro-routes small { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.panel-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.who { display: flex; gap: 12px; align-items: center; }
.who img { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--yellow); }
.who b { letter-spacing: .08em; }
.who small { display: block; color: var(--muted); font-size: 12px; }

.messages { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; max-width: 88%; animation: in .3s ease both; transition: opacity .4s, transform .4s; }
.msg:has(.route-card) { max-width: 100%; }
.msg:has(.route-card) .bubble { flex: 1; min-width: 0; }
.msg.demo-out { opacity: 0; transform: translateY(-8px); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.msg .av { width: 30px; height: 30px; flex: none; margin-top: 2px; border-radius: 8px; background: #fff; border: 1px solid var(--ink); }
.msg .bubble { overflow-wrap: anywhere; padding: 12px 15px; border-radius: 14px; line-height: 1.55; font-size: 15px; }
.msg.bot .bubble { background: var(--bg-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user { align-self: flex-end; }
.msg.user .bubble { background: var(--ink); color: #fff; border-top-right-radius: 4px; }
.bubble code { font-family: var(--mono); font-size: 13px; background: var(--yellow-soft); border: 1px solid #f1dc9c; padding: 1px 5px; border-radius: 4px; }
.msg.user .bubble code { background: #222; border-color: #333; color: var(--yellow); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: var(--yellow); }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.suggestions { display: flex; gap: 8px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; }
.suggestions button {
  white-space: nowrap; font-size: 13px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, background .2s;
}
.suggestions button:hover { border-color: var(--ink); background: var(--yellow-soft); }
.composer { display: flex; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.composer input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--line-2); font: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: none;
}
.composer input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--yellow); }
.composer .send { width: 48px; padding: 0; box-shadow: 3px 3px 0 var(--yellow); }
.composer.demo-typing input { border-color: var(--ink); box-shadow: 3px 3px 0 var(--yellow); }
.composer.demo-send .send { transform: scale(.9); box-shadow: 1px 1px 0 var(--yellow); }

/* route card */
.route-card { margin-top: 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px; width: 100%; max-width: 480px; }
.rc-flow { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; align-items: stretch; margin-bottom: 22px; }
.rc-coin {
  position: absolute; z-index: 2; top: 50%; left: 16%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 600;
  border: 1.5px solid var(--ink); opacity: 0; pointer-events: none;
}
.rc-coin-in { background: var(--ink); color: #fff; }
.rc-coin-out { background: var(--yellow); color: var(--ink); left: 84%; }
.rc-stamp {
  position: absolute; z-index: 2; left: 50%; bottom: -16px; transform: translateX(-50%) rotate(-4deg);
  font-size: 10px; letter-spacing: .12em; white-space: nowrap;
  background: var(--ink); color: var(--yellow); padding: 4px 9px; border-radius: 5px;
}
.rc-anim .rc-node, .rc-anim .rc-pool { animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.rc-anim .rc-pool { animation-delay: .12s; }
.rc-anim .rc-to { animation-delay: .24s; }
.rc-anim .rc-coin-in { animation: coinIn .8s cubic-bezier(.6,0,.4,1) .5s both; }
.rc-anim .rc-coin-out { animation: coinOut .7s cubic-bezier(.3,0,.2,1) 1.75s both; }
.rc-anim .rc-to { animation: pop .45s cubic-bezier(.2,1.4,.4,1) .24s both, land .6s ease 2.3s; }
.rc-anim .rc-stamp { animation: stamp .35s cubic-bezier(.2,1.6,.4,1) 2.45s both; }
.rc-anim .row { animation: in .4s ease both; animation-delay: calc(.6s + var(--i, 0) * .12s); }
.route-card.shake .rc-pool { animation: jitter .12s linear infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes coinIn { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1); } 85% { opacity: 1; left: 50%; transform: scale(.9); } 100% { opacity: 0; left: 50%; transform: scale(.2); } }
@keyframes coinOut { 0% { opacity: 0; left: 50%; transform: scale(.2); } 25% { opacity: 1; transform: scale(1.1); } 85% { opacity: 1; left: 84%; transform: scale(1); } 100% { opacity: 0; left: 84%; transform: scale(.6); } }
@keyframes land { 40% { border-color: var(--ink); background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--yellow); } }
@keyframes stamp { from { opacity: 0; transform: translateX(-50%) rotate(-12deg) scale(2.2); } }
@keyframes jitter { 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.rc-node { border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 10px; display: grid; gap: 1px; }
.rc-node span { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.rc-node b { font-size: 17px; }
.rc-node small { font-size: 12px; color: var(--muted); }
.rc-pool { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--ink); display: grid; place-items: center; min-height: 64px; }
.rc-pool .stripes { position: absolute; inset: 0; }
.rc-pool span { position: relative; font-size: 10px; letter-spacing: .08em; background: #fff; border: 1px solid var(--ink); border-radius: 5px; padding: 3px 6px; }
.route-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-top: 1px dashed var(--line-2); }
.route-card .row span:first-child { color: var(--muted); }
.route-card .row span:last-child { text-align: right; font-weight: 500; }
.rc-note { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.route-card .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; align-items: center; }
.tag-warn { color: var(--red); letter-spacing: .06em; }
.tag-ok { color: var(--green); letter-spacing: .06em; }

/* ---------- how ---------- */
.flow { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; --p: 0; }
/* a coin rides the top edge of the three steps as you scroll; it vanishes inside the pool */
.flow-coin {
  position: absolute; z-index: 3; top: 0; left: calc(clamp(16px, 4vw, 48px) + (100% - 2 * clamp(16px, 4vw, 48px)) * var(--p));
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: 11px; font-weight: 600;
  background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--yellow);
  transition: background .3s, color .3s, opacity .3s, transform .3s;
}
.flow-coin span { grid-area: 1 / 1; transition: opacity .2s; }
.flow-coin .c-out { opacity: 0; }
.flow[data-stage="1"] .flow-coin { opacity: 0; transform: scale(.3); }
.flow[data-stage="2"] .flow-coin { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.flow[data-stage="2"] .flow-coin .c-in { opacity: 0; }
.flow[data-stage="2"] .flow-coin .c-out { opacity: 1; }
.step .num { transition: transform .3s, box-shadow .3s; }
.step.active .num { transform: scale(1.12); box-shadow: 2px 2px 0 var(--ink); }
.step-pool.active .stripes { opacity: .3; }
.step-pool .stripes { transition: opacity .5s; }
.step { position: relative; padding: 32px 28px 36px; border: 1.5px solid var(--ink); background: #fff; overflow: hidden; }
.step + .step { border-left: 0; }
.step:first-child { border-radius: 16px 0 0 16px; }
.step:last-child { border-radius: 0 16px 16px 0; }
.step-pool { background: var(--ink); color: #fff; }
.step-pool .stripes { position: absolute; inset: 0; opacity: .16; filter: brightness(0) invert(1); }
.step-pool > :not(.stripes) { position: relative; }
.step .num { display: inline-block; font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--yellow); color: var(--ink); }
.step h3 { font-size: 24px; letter-spacing: -.02em; margin: 22px 0 10px; }
.step p { line-height: 1.6; color: var(--ink-2); }
.step-pool p { color: #d6d6d0; }
.plain {
  max-width: 1240px; margin: 28px auto 0; width: calc(100% - 2 * clamp(16px, 4vw, 48px));
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: 14px; background: var(--yellow);
}
.plain .k { font-size: 12px; letter-spacing: .14em; }
.plain p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }

/* ---------- why zebra ---------- */
.zebra {
  max-width: 1240px; margin: 110px auto 0; width: calc(100% - 2 * clamp(16px, 4vw, 48px));
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end;
  padding: clamp(32px, 5vw, 64px); border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff;
}
.s-zebra {
  position: absolute; top: -10%; right: -12%; width: 60%; height: 120%; z-index: 0;
  transform: translateY(var(--py, 0));
  -webkit-mask-image: linear-gradient(270deg, #000 10%, transparent 80%);
          mask-image: linear-gradient(270deg, #000 10%, transparent 80%);
}
.zebra-copy, .zebra-facts { position: relative; z-index: 1; }
.zebra-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 520px; margin-top: 12px; }
.zebra-facts { display: grid; gap: 8px; }
.zebra-facts div { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.zebra-facts span { color: var(--muted); letter-spacing: .1em; font-size: 11px; align-self: center; }

/* the herd game */
.herd { grid-column: 1 / -1; position: relative; z-index: 1; border-top: 1.5px dashed var(--line-2); padding-top: 28px; margin-top: 8px; }
.herd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.herd-head p { font-size: 14px; letter-spacing: .02em; }
.herd-row { position: relative; height: 190px; --n: 5; }
.coat {
  position: absolute; top: 18px; left: calc(var(--slot) * 100% / var(--n)); width: calc(100% / var(--n) - 12px); margin-left: 6px; height: 160px;
  border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff;
  transition: left .32s cubic-bezier(.5,0,.3,1), transform .32s, box-shadow .2s;
}
.coat .stripes { position: absolute; inset: 0; }
.coat.hop { transform: translateY(-14px); }
.herd.picking .coat { cursor: pointer; }
.herd.picking .coat:hover { transform: translateY(-6px); box-shadow: 4px 4px 0 var(--yellow); }
.coat .coin-in {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
  padding: 8px 10px; border-radius: 999px; background: var(--yellow); border: 1.5px solid var(--ink); font-size: 12px; font-weight: 600;
  transition: transform .35s cubic-bezier(.2,1.6,.4,1);
}
.herd.reveal-all .coat .coin-in { transform: translate(-50%, -50%) scale(1); }
.herd.reveal-all .coat:nth-child(3) .coin-in { transition-delay: .06s; } .herd.reveal-all .coat:nth-child(4) .coin-in { transition-delay: .12s; }
.herd.reveal-all .coat:nth-child(5) .coin-in { transition-delay: .18s; } .herd.reveal-all .coat:nth-child(6) .coin-in { transition-delay: .24s; }
.coat.picked { box-shadow: 5px 5px 0 var(--ink); }
.herd-coin {
  position: absolute; z-index: 2; top: -6px; left: calc((var(--slot) + .5) * 100% / var(--n)); transform: translateX(-50%);
  padding: 6px 10px; border-radius: 999px; background: var(--yellow); border: 1.5px solid var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: transform .55s cubic-bezier(.6,0,.4,1), opacity .4s .25s;
}
.herd.dropped .herd-coin { transform: translate(-50%, 90px) scale(.6); opacity: 0; }
.herd-msg b, #herdMsg b { background: var(--ink); color: #fff; padding: 0 .2em; }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.faq .section-head { padding: 0; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }
.faq summary { transition: padding-left .2s; }
.faq summary:hover { padding-left: 8px; }
a.ul { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 110px; padding: 32px clamp(16px, 4vw, 48px); border-top: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* ---------- marker highlights paint in like a highlighter ---------- */
.fx mark.hl-dark, .fx mark.hl-yellow {
  background: linear-gradient(var(--mk), var(--mk)) no-repeat 0 0 / 0% 100%;
  transition: background-size .6s cubic-bezier(.7,0,.2,1) var(--md, 0s), color .15s calc(var(--md, 0s) + .3s);
}
.fx mark.hl-dark { --mk: var(--ink); color: var(--ink); }
.fx mark.hl-yellow { --mk: var(--yellow); }
.fx mark.in { background-size: 100% 100%; }
.fx mark.hl-dark.in { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 72px; }
  .s-hero-r { width: 380px; height: 640px; right: -200px; opacity: .55; }
  .chat { grid-template-columns: minmax(0, 1fr); grid-template-rows: 200px minmax(0, 1fr); height: 760px; }
  .hero-chat::before { inset: 6px -6px -6px 6px; }
  .stage { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .stage canvas, .stage .zeta-video { width: auto; height: 96%; margin-top: 4px; }
  .stage::after { bottom: 12%; left: 32%; right: 32%; }
  .stage-stats { left: auto; width: 170px; }
  .stage-label { left: 14px; bottom: 14px; transform: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-coin { left: clamp(16px, 4vw, 48px); top: calc(var(--p) * 100%); }
  .step + .step { border-left: 1.5px solid var(--ink); border-top: 0; }
  .step:first-child { border-radius: 16px 16px 0 0; }
  .step:last-child { border-radius: 0 0 16px 16px; }
  .plain { grid-template-columns: 1fr; gap: 10px; }
  .zebra { grid-template-columns: 1fr; }
  .s-zebra { width: 90%; opacity: .5; }
}
@media (max-width: 560px) {
  .nav-cta .btn { padding: 0 12px; }
  .stage-stats { display: none; }
  .intro-routes { gap: 6px; }
  .intro-routes button { padding: 8px; gap: 6px; }
  .intro-routes .mini { grid-template-columns: 1fr; justify-items: center; }
  .intro-routes .mini i { width: 100%; }
  .intro-routes b { font-size: 12px; line-height: 1.25; display: block; }
  .intro-routes small { display: none; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .chat { height: 700px; }
  .demo-pill { display: none !important; }
  .herd-row { height: 130px; }
  .coat { height: 104px; width: calc(100% / var(--n) - 6px); margin-left: 3px; border-radius: 10px; }
  .coat .coin-in { font-size: 10px; padding: 5px 6px; }
  .flow-coin { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .msg { max-width: 96%; }
  .route-card { min-width: 0; }
  .rc-flow { grid-template-columns: 1fr; }
  .how, .faq { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx mark { background-size: 100% 100% !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
