/* Eskari — escrow and settlement between agents
   Static site. No build step. */

:root {
  --bg: #08090a;
  --panel: #0f1011;
  --panel-2: #141516;
  --elev: #17181a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.13);
  --t1: #f7f8f8;
  --t2: #d0d6e0;
  --t3: #8a8f98;
  --t4: #7b808a;   /* smallest labels: still 4.5:1 on --bg and --panel */
  --t5: #62666d;   /* decorative only */
  --accent: #5e6ad2;
  --accent-hi: #8fa6ff;
  --green: #4cb782;
  --yellow: #f2c94c;
  --red: #eb5757;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 72px;
  --pad: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 400 16px/1.5 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
svg { display: block; flex: none; }
i { font-style: normal; }
b { font-weight: 510; }
code, .mono { font-family: var(--mono); }
time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: rgba(94, 106, 210, 0.5); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 510; border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 9999px;
  font-size: 14px; font-weight: 510; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn-light { background: #e5e5e6; color: #08090a; }
.btn-light:hover { background: #fff; }
.btn-light:active { transform: scale(0.98); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  font-size: 15px; color: var(--t3); letter-spacing: -0.011em;
  transition: color 0.16s ease;
}
.link-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--t1); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: linear-gradient(rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.76));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 590; letter-spacing: -0.025em; color: var(--t1); min-height: 40px; }
.nav-links { margin-left: auto; display: flex; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9999px;
  font-size: 13px; color: var(--t3); letter-spacing: -0.01em; transition: color 0.16s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--t1); }
.nav-right { display: flex; align-items: center; }
.nav-sep { width: 1px; height: 16px; background: var(--line-strong); margin: 0 20px 0 16px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(72px, 13.2vw, 196px)); }
h1 {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1; font-weight: 510; letter-spacing: -0.022em; color: var(--t1);
}
h1 span { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero h1 span, .hero-row, .stage { animation: rise 0.9s var(--ease) both; }
.hero h1 span:nth-child(2) { animation-delay: 0.08s; }
.hero-row { animation-delay: 0.18s; }
.stage { animation-delay: 0.28s; }
.br-m { display: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-top: 40px; }
.hero-sub { max-width: 560px; font-size: 16px; line-height: 26px; letter-spacing: -0.011em; color: var(--t3); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex: none; }

.stage {
  position: relative; width: calc(100% - 24px); max-width: 1416px; margin: 64px auto 0; padding: 0 48px 48px;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(58% 150px at 50% 100%, rgba(208, 214, 224, 0.42), rgba(208, 214, 224, 0) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.07) 70%, rgba(255, 255, 255, 0.17) 100%);
}

/* App frame */
.app {
  position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 628px;
  background: #0b0c0d; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 13px; line-height: 20px; letter-spacing: -0.01em; color: var(--t2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.app .ic { color: var(--t3); }
.app-side { padding: 12px 12px 0 16px; }
.side-top { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px 0 8px; }
.ws { display: inline-flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 510; white-space: nowrap; }
.ws .ic-s { margin-left: -2px; }
.side-btns { display: inline-flex; align-items: center; gap: 12px; }
.round { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.side-list { margin-top: 6px; }
.side-list li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 8px; font-weight: 510; color: var(--t2); white-space: nowrap; }
.side-list li.on { background: rgba(255, 255, 255, 0.05); color: var(--t1); }
.side-list .count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--t3); }
.side-h { margin: 18px 0 0; padding: 0 8px; font-size: 12px; font-weight: 510; color: var(--t4); }
.side-h span { font-size: 11px; margin-left: 2px; }

.app-main { margin: 8px 8px 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-bar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.app-bar-l, .app-bar-r { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.app-bar-title { color: var(--t1); font-weight: 510; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id { font-size: 12px; color: var(--t3); letter-spacing: 0; white-space: nowrap; }
.star { color: var(--yellow) !important; }
.pager { font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; }
.pager i { color: var(--t4); }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 396px; flex: 1; min-height: 0; }
.app-doc { padding: 36px 40px 0 56px; min-width: 0; }
.doc-title { font-size: 20px; line-height: 27px; font-weight: 590; letter-spacing: -0.012em; color: var(--t1); }
.doc-desc { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--t3); max-width: 520px; }
.app code, .console code, .vis code {
  font-size: 12px; padding: 1px 5px; border-radius: 5px; color: var(--t2);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); white-space: nowrap;
}
.legs { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.015); }
.leg { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 11px 12px; }
.leg + .leg { border-top: 1px solid var(--line); }
.leg-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.leg-main { display: flex; flex-direction: column; min-width: 0; }
.leg-main b { color: var(--t1); }
.leg-main span { font-size: 12px; line-height: 17px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-amt { color: var(--t1); font-weight: 510; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leg-amt i { color: var(--t3); font-weight: 400; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 9999px; border: 1px solid var(--line); font-size: 12px; color: var(--t2); white-space: nowrap; }
.tag-green { background: rgba(76, 183, 130, 0.08); border-color: rgba(76, 183, 130, 0.22); }

.doc-h { margin-top: 26px; font-size: 15px; line-height: 24px; font-weight: 590; color: var(--t1); }
.activity { margin-top: 10px; position: relative; }
.activity::before { content: ""; position: absolute; left: 6.5px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.activity li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 31px; color: var(--t3); }
.activity li > svg { background: var(--panel); box-shadow: 0 0 0 3px var(--panel); border-radius: 50%; }
.activity b { color: var(--t2); }
.activity time { font-size: 12px; color: var(--t4); }
.activity .hl { color: var(--t1); }
.activity .hl b { color: var(--t1); }

.app-props { padding: 34px 24px 0 8px; }
.prop-h { font-size: 12px; font-weight: 510; color: var(--t4); padding: 0 8px; }
.app-props dl { margin-top: 8px; }
.app-props dl > div { display: grid; grid-template-columns: 88px 1fr; align-items: center; height: 32px; padding: 0 8px; }
.app-props dt { color: var(--t3); }
.app-props dd { display: inline-flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 510; }

.av { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 590; line-height: 1; color: #08090a; flex: none; letter-spacing: 0; }
.av-a { background: #8fa6ff; }
.av-b { background: #f7bf8b; }
.av-c { background: #83dcdc; }
.av-d { background: #3a3d43; color: var(--t2); }

.agent {
  position: absolute; right: 20px; bottom: 20px; width: 384px; display: flex; flex-direction: column;
  background: #101112; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.agent-bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px 0 16px; }
.agent-name { display: inline-flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 510; }
.pill-tag { font-size: 11px; line-height: 16px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--t3); font-weight: 400; }
.agent-win { display: inline-flex; gap: 12px; }
.agent-body { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-end; max-width: 300px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); color: var(--t1); }
.ctx { align-self: flex-end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t3); }
.ctx b { color: var(--t2); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.worked { font-size: 12px; color: var(--t3); }
.worked span { font-size: 11px; color: var(--t4); margin-left: 4px; }
.reply { color: var(--t2); }
.agent-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.agent-card-t { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); }
.agent-card-t b { color: var(--t1); }
.agent-card .mono { font-size: 11px; color: var(--t4); letter-spacing: 0; padding-left: 22px; }
.agent-input { margin: 0 10px 10px; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: var(--t4); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding: 152px 0 144px; }
.statement { border-top: 0; padding-top: 144px; }
h2 { font-size: clamp(30px, 3.75vw, 48px); line-height: 1; font-weight: 510; letter-spacing: -0.022em; color: var(--t1); }
h3 { font-size: 15px; line-height: 24px; font-weight: 510; letter-spacing: -0.011em; color: var(--t1); }

.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.33; letter-spacing: -0.012em; color: var(--t2); max-width: 580px; text-wrap: pretty; }
.step-d, .fig figcaption p, .feat-list dd, .trio p, .faq details p, .cta-sub, .pair-c { text-wrap: pretty; }
.head-note { margin-top: 28px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }

.eyebrow, .fig-label, .step-n, .trio-k, .pair-h, .pair-n, .side-title, .vis-h {
  font-family: var(--mono); font-size: 12px; line-height: 17px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--t4);
}

/* ---------- Statement + figures ---------- */
.statement-text { margin-top: 28px; max-width: 1240px; color: var(--t3); text-wrap: pretty; }
.statement-text span { color: var(--t1); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 112px; }
.fig { position: relative; padding: 0 32px 4px; border-left: 1px solid var(--line); }
.fig:first-child { padding-left: 0; border-left: 0; }
.fig:last-child { padding-right: 0; }
.fig svg { width: 100%; max-width: 364px; height: clamp(132px, 12.4vw, 160px); margin: 52px 0 48px; overflow: visible; }
.fig svg * { vector-effect: non-scaling-stroke; }
.fig .l { stroke: #7c8088; fill: var(--bg); stroke-width: 1; stroke-linejoin: round; }
.fig .l2 { stroke: #44474d; fill: var(--bg); stroke-width: 1; stroke-linejoin: round; }
.fig .l3 { stroke: #2a2c30; fill: var(--bg); stroke-width: 1; stroke-linejoin: round; }
.fig .g { stroke: #7c8088; stroke-width: 1; stroke-dasharray: 2 3; stroke-linejoin: round; }
.fig .a { stroke: #9a9fa8; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.fig figcaption p { margin-top: 8px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); max-width: 340px; }

/* ---------- How it works: demo ---------- */
.how { margin-top: 80px; --gap: 16px; }
.demo, .list, .vis, .hooks, .app-main { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035); }
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-height: 56px; padding: 9px 12px 9px 20px; border-bottom: 1px solid var(--line); }
.demo-id { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.demo-title { font-weight: 510; color: var(--t1); white-space: nowrap; }
.demo-st { position: relative; width: 14px; height: 14px; }
.demo-st svg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; }
.how[data-step="0"] .s-open,
.how[data-step="1"] .s-locked,
.how[data-step="2"] .s-verify,
.how[data-step="3"][data-path="settle"] .s-settled,
.how[data-step="3"][data-path="unwind"] .s-unwound { opacity: 1; }

.demo-ctl { display: inline-flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9999px; background: rgba(255, 255, 255, 0.02); }
.seg-btn { height: 32px; padding: 0 14px; border-radius: 9999px; font-size: 13px; font-weight: 510; color: var(--t3); white-space: nowrap; transition: color 0.16s ease, background-color 0.16s ease; }
.seg-btn:hover { color: var(--t1); }
.seg-btn.is-on { background: rgba(255, 255, 255, 0.09); color: var(--t1); }
.replay { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border-radius: 9999px; border: 1px solid var(--line); font-size: 13px; font-weight: 510; color: var(--t2); transition: color 0.16s ease, background-color 0.16s ease; }
.replay:hover { color: var(--t1); background: rgba(255, 255, 255, 0.05); }

.demo-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.demo-stage { padding: 32px 40px 28px; min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.col { display: flex; flex-direction: column; min-width: 0; }
.col-mid { align-items: center; text-align: center; }
.col-end { align-items: flex-end; text-align: right; }
.col-role { font-family: var(--mono); font-size: 12px; line-height: 17px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--t4); }
.col-name { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; line-height: 22px; font-weight: 510; color: var(--t1); white-space: nowrap; }
.col-org { margin-top: 1px; color: var(--t3); }

.lanes { position: relative; margin-top: 22px; padding: 18px 0 20px; display: grid; gap: 22px; }
.vault {
  position: absolute; top: 0; bottom: 0;
  left: calc((100% + var(--gap)) / 3 - 10px); width: calc((100% - 2 * var(--gap)) / 3 + 20px);
  border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}
.vault-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-strong); color: var(--t3); transition: color 0.5s ease, border-color 0.5s ease; }
.how[data-step="1"] .vault, .how[data-step="2"] .vault { border-color: rgba(242, 201, 76, 0.5); background: rgba(242, 201, 76, 0.035); }
.how[data-step="1"] .vault-tag, .how[data-step="2"] .vault-tag { color: var(--yellow); border-color: rgba(242, 201, 76, 0.5); }
.how[data-step="2"][data-path="unwind"] .vault { border-color: rgba(235, 87, 87, 0.55); background: rgba(235, 87, 87, 0.04); }
.how[data-step="2"][data-path="unwind"] .vault-tag { color: var(--red); border-color: rgba(235, 87, 87, 0.55); }
.how[data-step="3"][data-path="settle"] .vault { border-color: rgba(76, 183, 130, 0.45); }
.how[data-step="3"][data-path="settle"] .vault-tag { color: var(--green); border-color: rgba(76, 183, 130, 0.45); }

.lane { position: relative; }
.lane-h { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: baseline; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; line-height: 17px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--t4); }
.lane-state { grid-column: 3; color: var(--t3); text-align: right; white-space: nowrap; }
.track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); height: 48px; }
.track::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1px dashed rgba(255, 255, 255, 0.09); }
.slot { position: relative; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 10px; background: var(--panel); }
.chip {
  --p: 0;
  position: absolute; top: 0; height: 100%; width: calc((100% - 2 * var(--gap)) / 3);
  left: calc(var(--p) * (100% + var(--gap)) / 3);
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px;
  background: #1b1c1f; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  color: var(--t2); white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: left 0.95s cubic-bezier(0.65, 0, 0.3, 1), border-color 0.5s ease, background-color 0.5s ease;
}
.chip b { color: var(--t1); font-variant-numeric: tabular-nums; }
.chip .ic { color: var(--t3); transition: color 0.5s ease; }
.chip-asset { --p: 2; }
.how[data-step="1"] .chip, .how[data-step="2"] .chip { --p: 1; }
.how[data-step="3"][data-path="settle"] .chip-pay { --p: 2; }
.how[data-step="3"][data-path="settle"] .chip-asset { --p: 0; }
.how[data-step="3"][data-path="settle"] .chip { border-color: rgba(76, 183, 130, 0.6); background: #17211d; }
.how[data-step="3"][data-path="settle"] .chip .ic { color: var(--green); }
.how[data-step="2"][data-path="unwind"] .chip { border-color: rgba(235, 87, 87, 0.5); }

.outcome { margin-top: 18px; min-height: 20px; color: var(--t3); text-align: center; transition: color 0.3s ease; }
.how[data-step="3"] .outcome { color: var(--t1); }

.demo-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.side-block { padding: 22px 24px; }
.side-block + .side-block { border-top: 1px solid var(--line); flex: 1; }
.checks { margin-top: 12px; display: grid; gap: 9px; }
.checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--t4); transition: color 0.3s ease; }
.ck { position: relative; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1.5px dashed #6b6f77; transition: background-color 0.3s ease, border-color 0.3s ease; }
.ck::after { content: ""; position: absolute; inset: -1.5px; opacity: 0; background: center / 14px 14px no-repeat; transition: opacity 0.3s ease; }
.checks li.is-done { color: var(--t2); }
.checks li.is-done .ck { border-color: var(--green); border-style: solid; background: var(--green); }
.checks li.is-done .ck::after { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4.200 7.200 1.900 1.900 3.700-4.100' fill='none' stroke='%2308090a' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks li.is-fail { color: #f08a8a; }
.checks li.is-fail .ck { border-color: var(--red); border-style: solid; background: var(--red); }
.checks li.is-fail .ck::after { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.800 4.800l4.400 4.400M9.200 4.800 4.800 9.200' fill='none' stroke='%2308090a' stroke-width='1.600' stroke-linecap='round'/%3E%3C/svg%3E"); }

.on-unwind { display: none; }
.how[data-path="unwind"] .on-settle { display: none; }
.how[data-path="unwind"] .on-unwind { display: inline; }

.log { margin-top: 12px; display: grid; gap: 7px; font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: 0; align-content: start; }
.log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; color: var(--t3); transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0s; }
.log li.is-off { opacity: 0; transform: translateY(4px); visibility: hidden; transition: none; }
.log time { color: var(--t4); }
.log b { font-weight: 400; color: var(--t2); }
.log i { color: var(--t3); }
.log .ok b { color: var(--green); }
.log .bad b { color: #f08a8a; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Steps (timeline) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; text-align: left; padding: 52px 32px 4px 0; cursor: pointer; }
.step::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--line); transition: background-color 0.4s ease; }
.step-dot { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: #1a1b1d; box-shadow: 0 0 0 6px var(--bg); transition: background-color 0.3s ease; }
.step-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #6b6f77; transition: background-color 0.3s ease, transform 0.3s ease; }
.step-n, .step-t, .step-d { display: block; }
.step-t { margin-top: 10px; font-size: 15px; line-height: 24px; font-weight: 510; letter-spacing: -0.011em; color: var(--t2); transition: color 0.2s ease; }
.step-d { margin-top: 6px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); max-width: 280px; }
.step:hover .step-t { color: var(--t1); }
.step:hover .step-dot { background: #26282b; }
.step:focus-visible { outline-offset: 6px; border-radius: 4px; }
.step.is-done .step-dot::after { background: var(--t2); }
.step.is-done::before { background: rgba(255, 255, 255, 0.24); }
.step.is-on .step-t { color: var(--t1); }
.step.is-on .step-n { color: var(--t2); }
.step.is-on .step-dot { background: rgba(143, 166, 255, 0.22); }
.step.is-on .step-dot::after { background: var(--accent-hi); transform: scale(1.2); }
.how[data-path="unwind"] .step[data-step="3"].is-on .step-dot { background: rgba(235, 87, 87, 0.22); }
.how[data-path="unwind"] .step[data-step="3"].is-on .step-dot::after { background: var(--red); }
.how[data-path="settle"] .step[data-step="3"].is-on .step-dot { background: rgba(76, 183, 130, 0.22); }
.how[data-path="settle"] .step[data-step="3"].is-on .step-dot::after { background: var(--green); }

/* ---------- Console ---------- */
.console { position: relative; margin-top: 80px; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; color: var(--t2); }
.console .ic { color: var(--t3); }
.list {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding-bottom: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 52%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.12) 100%);
          mask-image: linear-gradient(to right, #000 52%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.12) 100%);
}
.list-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.list-title { display: inline-flex; align-items: center; gap: 10px; color: var(--t1); font-weight: 510; }
.list-filters { display: inline-flex; gap: 8px; }
.filter { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9999px; font-size: 12px; color: var(--t3); white-space: nowrap; }
.grp { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 20px; background: rgba(255, 255, 255, 0.025); color: var(--t1); }
.grp .tri { font-size: 11px; color: var(--t4); width: 10px; }
.grp i { color: var(--t3); }
.row { display: grid; grid-template-columns: 76px 14px 268px 132px 110px; align-items: center; gap: 14px; height: 40px; padding: 0 20px 0 40px; white-space: nowrap; }
.row.on { background: rgba(255, 255, 255, 0.045); }
.row-t { color: var(--t1); font-weight: 510; overflow: hidden; text-overflow: ellipsis; }
.row-amt { font-variant-numeric: tabular-nums; text-align: right; color: var(--t2); }
.row-cp { color: var(--t3); font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.row time { font-size: 12px; color: var(--t4); display: none; }

.detail {
  position: absolute; top: 44px; right: 32px; width: 432px;
  background: #111213; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.detail-bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); }
.detail-bar > span { display: inline-flex; align-items: center; gap: 10px; }
.detail-bar b { color: var(--t1); }
.detail-body { padding: 20px 18px 18px; }
.reason { margin-top: 14px; display: grid; gap: 3px; padding: 11px 12px; border-radius: 8px; background: rgba(235, 87, 87, 0.08); border: 1px solid rgba(235, 87, 87, 0.24); color: var(--t2); }
.reason-h { font-weight: 510; color: #f39a9a; }
.reason code { background: rgba(235, 87, 87, 0.1); border-color: rgba(235, 87, 87, 0.25); color: #f7c4c4; }
.ret { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.ret > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--t3); }
.ret > div + div { border-top: 1px solid var(--line); }
.ret b { color: var(--t1); }
.tl { position: relative; margin-top: 18px; display: grid; gap: 9px; }
.tl::before { content: ""; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 1px; background: var(--line-strong); }
.tl li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding-left: 20px; color: var(--t2); }
.tl li::before { content: ""; position: absolute; left: 0; top: 6.5px; width: 7px; height: 7px; border-radius: 50%; background: #6b6f77; box-shadow: 0 0 0 3px #111213; }
.tl li.bad::before { background: var(--red); }
.tl time { font-size: 12px; color: var(--t4); }
.detail-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--t3); }

/* Feature rows */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; margin-top: 72px; }
.feat-label { font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }
.feat-label span { display: block; margin-top: 6px; max-width: 320px; font-size: 13px; line-height: 20px; color: var(--t4); }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
.feat-list > div { padding: 0 32px; border-left: 1px solid var(--line); }
.feat-list > div:nth-child(odd) { padding-left: 0; border-left: 0; }
.feat-list dt { font-size: 15px; line-height: 24px; font-weight: 510; letter-spacing: -0.011em; color: var(--t1); }
.feat-list dd { margin-top: 4px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }

/* ---------- Privacy ---------- */
.vis { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; }
.vis-who { padding: 22px 12px 14px; border-right: 1px solid var(--line); }
.vis-h { padding: 0 12px; }
.who-list { margin-top: 12px; display: grid; gap: 2px; }
.who { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 12px; border-radius: 10px; text-align: left; border: 1px solid transparent; transition: background-color 0.16s ease, border-color 0.16s ease; }
.who:hover { background: rgba(255, 255, 255, 0.03); }
.who.is-on { background: rgba(255, 255, 255, 0.055); border-color: var(--line); }
.who .av { width: 28px; height: 28px; font-size: 13px; }
.who-main { display: flex; flex-direction: column; min-width: 0; }
.who-main b { font-size: 14px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-main span { color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 9999px; border: 1px solid var(--line); font-size: 12px; color: var(--t3); white-space: nowrap; }
.t-in { color: #9fe0bf; background: rgba(76, 183, 130, 0.08); border-color: rgba(76, 183, 130, 0.25); }
.t-obs { color: #b9c6ff; background: rgba(94, 106, 210, 0.14); border-color: rgba(143, 166, 255, 0.3); }

.vis-view { position: relative; display: flex; flex-direction: column; min-width: 0; background: #0c0d0e; }
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 24px; border-bottom: 1px solid var(--line); color: var(--t3); }
.view-as { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 0; }
.view-as b { color: var(--t1); }
.view-count { font-family: var(--mono); font-size: 12px; color: var(--t3); white-space: nowrap; letter-spacing: 0; }
.view-deal { margin: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); animation: logIn 0.35s var(--ease) both; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 46px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.view-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.view-role { font-size: 12px; color: var(--t3); }
.fields > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
.fields > div + div { border-top: 1px solid var(--line-soft); }
.fields dt { color: var(--t3); }
.fields dd { color: var(--t1); }
.view-empty { position: relative; flex: 1; margin: 24px; min-height: 300px; display: grid; place-items: center; animation: logIn 0.35s var(--ease) both; }
.ghost { position: absolute; inset: 0; display: grid; gap: 10px; align-content: start; opacity: 0.55; }
.ghost i { height: 38px; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 8px; }
.empty-msg { position: relative; max-width: 380px; padding: 22px 22px 24px; text-align: center; background: #0c0d0e; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 0 12px #0c0d0e; }
.empty-msg svg { margin: 0 auto 10px; color: var(--t3); }
.empty-msg b { display: block; font-size: 15px; line-height: 24px; color: var(--t1); }
.empty-msg p { margin-top: 6px; color: var(--t3); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; }
.trio > div { padding: 0 32px; border-left: 1px solid var(--line); }
.trio > div:first-child { padding-left: 0; border-left: 0; }
.trio b { display: block; margin-top: 14px; font-size: 24px; line-height: 32px; font-weight: 510; letter-spacing: -0.012em; color: var(--t1); }
.trio p { margin-top: 8px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); max-width: 320px; }

/* ---------- Developers ---------- */
.dev { position: relative; margin-top: 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.hooks { position: relative; margin: 56px 0 0 -56px; padding-left: 56px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; overflow: hidden; }
.hooks-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--t1); font-weight: 510; }
.hooks-bar > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.hooks-bar .ic { color: var(--t3); }
.hooks-bar .mono { font-size: 12px; font-weight: 400; color: var(--t3); letter-spacing: 0; }
.hooks-list { padding: 8px 0; }
.hook { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; height: 40px; padding: 0 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.hook.on { background: rgba(255, 255, 255, 0.045); }
.code-ok { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; color: #9fe0bf; background: rgba(76, 183, 130, 0.1); }
.hook-e { color: var(--t1); overflow: hidden; text-overflow: ellipsis; }
.hook-e i { color: var(--t3); }
.hook time { color: var(--t4); }
.hook-ms { color: var(--t3); min-width: 64px; }
.payload { margin: 0; padding: 18px 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); font-family: var(--mono); font-size: 12px; line-height: 22px; color: var(--t2); overflow: hidden; }

.code { position: relative; z-index: 1; background: #0d0e0f; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--t3); }
.code-file { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.code-file .mono { font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-lang { font-size: 13px; color: var(--t2); font-weight: 510; }
.code pre { padding: 22px 0 24px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 23px; color: var(--t2); counter-reset: ln; tab-size: 2; }
.code code { display: flex; flex-direction: column; width: max-content; min-width: 100%; }
.ln { display: block; white-space: pre; min-height: 23px; padding: 0 28px 0 0; counter-increment: ln; }
.ln::before { content: counter(ln, decimal-leading-zero); display: inline-block; width: 52px; padding-right: 20px; text-align: right; color: var(--t5); -webkit-user-select: none; user-select: none; }
.k { color: #f79ce0; }
.s { color: #f7bf8b; }
.c { color: var(--t4); }
.f { color: #8fa6ff; }
.t { color: #83dcdc; }
.v { color: #ffdf9f; }
.n { color: #83dcdc; }
.p { color: var(--t3); }
.payload .k { color: #8fa6ff; }

/* ---------- What settles ---------- */
.pairs { margin-top: 80px; border-bottom: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.pair-h { padding: 0 0 14px; border-top: 0; }
.pair-a { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.pair-a .ic { color: var(--t3); }
.pair-a b { font-size: 20px; line-height: 28px; letter-spacing: -0.012em; color: var(--t1); }
.pair-a i { grid-column: 2; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }
.pair-p { font-size: 15px; line-height: 24px; color: var(--t2); letter-spacing: -0.011em; }
.pair-c { font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }
.pairs-note { margin-top: 24px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }

/* ---------- Canton cards ---------- */
.canton { padding-top: 128px; padding-bottom: 128px; }
.cards { display: grid; grid-template-columns: minmax(0, 2.04fr) minmax(0, 1fr); gap: 8px; margin-inline: -20px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 480px; padding: 24px 24px 26px; border-radius: 6px; color: #08090a; overflow: hidden; }
.card-a { background: linear-gradient(180deg, #d3e3ff 0%, #dcdcff 55%, #ebe2ff 100%); }
.card-a::before, .card-a::after { content: ""; position: absolute; width: 400px; height: 200px; background: rgba(255, 255, 255, 0.36); pointer-events: none; }
.card-a::before { right: 96px; top: 104px; border-radius: 200px 200px 0 0; }
.card-a::after { right: 0; top: 322px; border-radius: 0 0 200px 200px; }
.card-b { background: #e4f222; }
.card-q { position: relative; z-index: 1; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.125; letter-spacing: -0.022em; max-width: 17em; text-wrap: balance; }
.card-b .card-q { max-width: 11em; }
.card-f { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.card-f svg { flex: none; }
.card-f span { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid rgba(8, 9, 10, 0.14); font-size: 14px; line-height: 21px; letter-spacing: -0.01em; }
.card-f i { color: rgba(8, 9, 10, 0.66); }
.cards-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 36px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); }
.cards-foot b { color: var(--t1); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); margin-top: -22px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; line-height: 26px; font-weight: 510; letter-spacing: -0.012em; color: var(--t2); transition: color 0.16s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--t1); }
.faq summary .ic { color: var(--t3); transition: transform 0.25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; margin-top: -6px; font-size: 15px; line-height: 24px; letter-spacing: -0.011em; color: var(--t3); max-width: 560px; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); padding: 176px 0 184px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(208, 214, 224, 0.1), rgba(208, 214, 224, 0)); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(40px, 5.6vw, 72px); }
.cta-sub { margin: 28px auto 0; max-width: 440px; font-size: 16px; line-height: 26px; letter-spacing: -0.011em; color: var(--t3); }
.cta-form { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px auto 0; max-width: 480px; }
.cta-form input {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 20px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--t1); font-size: 16px; letter-spacing: -0.011em;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.cta-form input::placeholder { color: var(--t4); }
.cta-form input:hover { border-color: rgba(255, 255, 255, 0.2); }
.cta-form input:focus { outline: none; border-color: var(--accent-hi); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 3px rgba(143, 166, 255, 0.2); }
.cta-form input[aria-invalid="true"] { border-color: var(--red); }
.form-err { flex-basis: 100%; margin-top: 4px; font-size: 13px; color: #f39a9a; }
.thanks:focus { outline: none; }
.thanks { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(76, 183, 130, 0.3); background: rgba(76, 183, 130, 0.08); border-radius: 9999px; font-size: 15px; color: var(--t1); letter-spacing: -0.011em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 72px; }
.footer-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -9px 0 0 -9px; color: var(--t1); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h3 { font-size: 13px; line-height: 20px; margin-bottom: 18px; letter-spacing: -0.01em; }
.footer-cols a { display: block; width: fit-content; padding: 5px 0; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; color: var(--t3); transition: color 0.16s ease; }
.footer-cols a:hover { color: var(--t1); }
.footer-legal { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 20px; letter-spacing: -0.01em; color: var(--t4); }

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

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 1680px) {
  .app { height: 648px; }
}

/* Agent panel needs room: below 1280 drop it and keep properties only */
@media (max-width: 1279px) {
  .agent { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr) 232px; }
  .app { height: 600px; }
}

@media (max-width: 1099px) {
  .stage { padding: 0 24px 32px; }
  .app { grid-template-columns: 212px minmax(0, 1fr); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-props { display: none; }
  .app-doc { padding: 32px 40px 0; }
  .demo-main { grid-template-columns: minmax(0, 1fr); }
  .demo-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; }
  .side-block { flex: 1; }
  .side-block + .side-block { border-top: 0; border-left: 1px solid var(--line); }
  .log span { display: flex; flex-direction: column; }
  .row { grid-template-columns: 76px 14px 228px 110px; }
  .row-cp { display: none; }
  .detail { width: 380px; right: 20px; }
  .pair { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .hook-ms { display: none; }
  .hook { grid-template-columns: auto minmax(0, 1fr) auto; }
  .side-btns .ic { display: none; }
}

/* Tablet and below: nav collapses, split heads stack */
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav-sep { display: none; }
  .nav-right { margin-left: auto; gap: 6px; }
  .nav .btn-sm { height: 36px; padding: 0 14px; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -12px; border-radius: 10px; }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--t1); border-radius: 2px; transition: transform 0.25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(var(--nav-h) + 1px); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    margin: 0; padding: 12px var(--pad) 32px; flex-direction: column; align-items: stretch; overflow-y: auto;
    background: var(--bg); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { height: 60px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 510; letter-spacing: -0.015em; color: var(--t1); }
  body.menu-open { overflow: hidden; }

  .hero-row { flex-direction: column; align-items: flex-start; margin-top: 28px; }
  .stage { margin-top: 56px; padding: 0 16px 24px; }
  .app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .app-side { display: none; }
  .app-main { margin: 6px; }
  .app-doc { padding: 28px 28px 24px; }

  .section { padding: 104px 0 96px; }
  .statement { padding-top: 104px; }
  .head, .feat, .faq { grid-template-columns: minmax(0, 1fr); }
  .head-r { margin-top: 24px; }
  .how, .console, .vis, .dev, .pairs { margin-top: 56px; }
  .figs { margin-top: 72px; }
  .feat { margin-top: 56px; row-gap: 20px; }
  .faq-list { margin-top: 28px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; margin-top: 48px; }
  .seg-btn { height: 36px; }
  .replay { height: 40px; }

  .figs { grid-template-columns: minmax(0, 1fr); }
  .fig, .fig:first-child, .fig:last-child { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 48px; align-items: center; padding: 36px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fig:last-child { border-bottom: 1px solid var(--line); }
  .fig-label { position: absolute; top: 20px; left: 0; }
  .fig svg { margin: 20px 0 0; height: 150px; max-width: none; }
  .fig figcaption p { max-width: 360px; }

  .vis { grid-template-columns: minmax(0, 1fr); }
  .vis-who { border-right: 0; border-bottom: 1px solid var(--line); }
  .trio b { font-size: 20px; line-height: 28px; }

  .pair-h { display: none; }
  .pair { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
  .pair:nth-child(2) { border-top: 1px solid var(--line); }
  .pair-n { padding-top: 6px; }
  .pair-n { grid-column: 1; grid-row: 1; }
  .pair-a { grid-column: 2; grid-row: 1 / span 2; }
  .pair-p, .pair-c { grid-column: 3; }
  .pair-p::before, .pair-c::before { display: block; font-family: var(--mono); font-size: 11px; line-height: 18px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--t4); }
  .pair-p::before { content: "Example deal"; }
  .pair-c::before { content: "Releases when"; }
  .footer-cols a { padding: 8px 0; min-width: 44px; }

  .console { display: grid; gap: 12px; }
  .list { -webkit-mask-image: none; mask-image: none; }
  .row { grid-template-columns: 76px 14px minmax(0, 1fr) 110px; }
  .detail { position: relative; top: auto; right: auto; width: auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

  .dev { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .code { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
  .hooks { margin: 0; padding-left: 0; }

  .cards { margin-inline: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .card { min-height: 400px; }
  .card-a::before, .card-a::after { display: none; }

  .cta { padding: 128px 0 136px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .footer-legal { grid-column: 1; margin-top: 16px; }
}

/* Phones */
@media (max-width: 639px) {
  :root { --pad: 24px; }
  .hero { padding-top: calc(var(--nav-h) + 88px); }
  .br-m { display: inline; }
  h1 { font-size: 40px; line-height: 1.05; }
  h1 span + span { margin-top: 2px; }
  .hero-actions { flex-wrap: wrap; gap: 8px 20px; }
  .stage { width: calc(100% - 16px); margin-top: 48px; padding: 0 8px 16px; }
  .app-main { margin: 4px; }
  .app-bar { padding: 0 12px 0 14px; }
  .app-bar .star, .app-bar-r .ic { display: none; }
  .app-doc { padding: 22px 16px 18px; }
  .doc-title { font-size: 18px; line-height: 24px; }
  .leg { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "ic name tag" "ic amt amt" "ic route route"; gap: 2px 12px; align-items: start; padding: 12px; }
  .leg-ic { grid-area: ic; }
  .leg-main { display: contents; }
  .leg-main b { grid-area: name; align-self: center; white-space: nowrap; }
  .leg .tag { height: 22px; padding: 0 7px 0 5px; gap: 5px; }
  .leg-main span { grid-area: route; white-space: normal; }
  .leg-amt { grid-area: amt; }
  .leg .tag { grid-area: tag; }
  .activity li { align-items: start; padding: 5px 0; gap: 10px; }
  .activity li > svg { margin-top: 3px; }

  .section { padding: 80px 0 76px; }
  .statement { padding-top: 88px; }
  h2 { font-size: 30px; line-height: 1.07; }
  .statement-text { font-size: 26px; line-height: 1.2; margin-top: 20px; }
  .lead { font-size: 18px; line-height: 27px; }
  .head-r { margin-top: 18px; }
  .head-note { margin-top: 16px; }

  .figs { margin-top: 56px; }
  .fig, .fig:first-child, .fig:last-child { display: block; padding: 20px 0 30px; }
  .fig-label { position: static; }
  .fig svg { margin: 26px auto 30px; max-width: 340px; height: 150px; }
  .fig figcaption p { max-width: none; }

  .how, .console, .vis, .dev, .pairs { margin-top: 44px; }
  .how { --gap: 8px; }
  .demo-bar { padding: 12px; }
  .demo-id { padding-left: 4px; }
  .demo-ctl { width: 100%; }
  .seg { flex: 1; min-width: 0; }
  .seg-btn { flex: 1; padding: 0 8px; }
  .replay { width: 42px; height: 42px; padding: 0; justify-content: center; flex: none; }
  .replay span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .demo-stage { padding: 22px 14px 20px; }
  .outcome { min-height: 40px; }
  .col-name { font-size: 13px; line-height: 20px; gap: 6px; margin-top: 6px; }
  .col-name .av, .col-name .logo-mark { display: none; }
  .col-org { display: none; }
  .col-role { font-size: 11px; }
  .lanes { padding: 16px 0 18px; gap: 18px; }
  .vault { left: calc((100% + var(--gap)) / 3 - 5px); width: calc((100% - 2 * var(--gap)) / 3 + 10px); border-radius: 12px; }
  .lane-h { font-size: 11px; }
  .lane-state i { display: none; }
  .track { height: 54px; }
  .chip { flex-direction: column; gap: 0; padding: 0 4px; font-size: 12px; line-height: 16px; text-align: center; }
  .chip .ic { display: none; }
  .chip span { display: flex; flex-direction: column; }
  .demo-side { flex-direction: column; }
  .side-block { padding: 20px 16px; }
  .side-block + .side-block { border-left: 0; border-top: 1px solid var(--line); }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 36px; }
  .step { padding: 0 0 28px 36px; }
  .step::before { top: 17px; bottom: 0; left: 8px; right: auto; width: 1px; height: auto; }
  .steps li:last-child .step { padding-bottom: 0; }
  .steps li:last-child .step::before { display: none; }
  .step-dot { box-shadow: none; }
  .step-t { margin-top: 4px; }
  .step-d { max-width: none; }

  .list-filters .filter:first-child { display: none; }
  .list-bar { padding: 0 14px; }
  .grp { padding: 0 14px; }
  .row { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "st title amt" "st meta amt"; gap: 0 10px; height: auto; padding: 9px 14px; }
  .row > svg { grid-area: st; align-self: start; margin-top: 3px; }
  .row .id { grid-area: meta; }
  .row-t { grid-area: title; white-space: normal; }
  .row-amt { grid-area: amt; align-self: start; font-size: 12px; }
  .row-cp { display: none; }
  .detail-body { padding: 18px 14px 16px; }
  .tl li { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding-left: 18px; }

  .feat { margin-top: 44px; }
  .feat-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .feat-list > div, .feat-list > div:nth-child(odd) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .vis-who { padding: 18px 8px 10px; }
  .vis-h { padding: 0 10px; }
  .who { padding: 8px 10px; gap: 10px; }
  .who-main span { white-space: normal; }
  .view-bar { padding: 10px 16px; }
  .view-deal, .view-empty { margin: 16px; }
  .view-empty { min-height: 280px; }
  .fields > div { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 14px; }
  .view-head { padding: 8px 14px; }
  .trio { grid-template-columns: minmax(0, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
  .trio > div, .trio > div:first-child { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trio b { margin-top: 8px; }
  .trio p { max-width: none; margin-top: 4px; }

  .code-bar { height: 48px; padding: 0 16px; }
  .code-file { gap: 10px; }
  .code-file .mono, .code-lang { font-size: 12px; }
  .code pre { font-size: 12px; line-height: 21px; padding: 16px 0 18px; }
  .ln { min-height: 21px; padding-right: 16px; }
  .ln::before { width: 16px; padding: 0; content: ""; }
  .hook { padding: 0 14px; gap: 10px; }
  .hook time i { display: none; }
  .hooks-bar { padding: 0 14px; }
  .payload { padding: 14px; }
  .hooks-list { padding: 4px 0; }

  .pair { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 8px; padding: 22px 0; }
  .pair-a { grid-template-columns: minmax(0, 1fr); grid-row: 1; }
  .pair-a .ic { display: none; }
  .pair-a i { grid-column: 1; }
  .pair-p, .pair-c { grid-column: 2; }

  .canton { padding-top: 72px; padding-bottom: 72px; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-inline: -12px; }
  .card { min-height: 300px; padding: 20px 20px 22px; }
  .card-b { min-height: 240px; }
  .card-q { font-size: 26px; }
  .card-a::before, .card-a::after { display: none; }
  .cards-foot { margin-top: 28px; }

  .faq summary { padding: 18px 0; font-size: 16px; line-height: 24px; gap: 16px; }
  .faq details p { padding-right: 0; padding-bottom: 22px; }

  .cta { padding: 104px 0 112px; }
  .cta h2 { font-size: 44px; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { flex: none; width: 100%; }
  .thanks { border-radius: 16px; padding: 12px 18px; text-align: left; line-height: 22px; }

  .footer { padding: 48px 0 40px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-cols a { min-width: 44px; }
  .footer-cols h3 { margin-bottom: 10px; }
}

@media (max-width: 359px) {
  :root { --pad: 20px; }
  h1 { font-size: 36px; }
  .cta h2 { font-size: 38px; }
  .statement-text { font-size: 24px; }
  .seg-btn { padding: 0 10px; font-size: 12px; }
  .who-tag { padding: 0 7px; font-size: 11px; }
  .fields > div { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
