/* Agentgrid landing. Infrastructure look: near-black canvas, a faint grid, hairline borders,
   Geist and Geist Mono, and one signal colour (mint) for what is live and verified; amber marks
   the moment a person decides; red only for a refusal. Dark only, by design. */
:root {
  --bg: #08090b;
  --bg-2: #0c0d10;
  --surface: #111317;
  --surface-2: #16191e;
  --panel: #0a0b0e;
  --ink: #eceef1;
  --ink-2: #9aa0a9;
  --ink-3: #686e78;
  --ink-4: #3a3f47;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --acc: #5eea9d;
  --acc-ink: #04170c;
  --acc-dim: rgba(94, 234, 157, .12);
  --amber: #9aa0a9;
  --amber-dim: rgba(255, 255, 255, .06);
  --red: #ffffff;
  --red-dim: rgba(255, 255, 255, .12);
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(760px 460px at 0% 0%, rgba(47, 191, 113, .12), transparent 70%),
              radial-gradient(640px 420px at 100% 0%, rgba(3, 153, 77, .07), transparent 70%); }
html.menu-open, html.menu-open body { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc); color: var(--acc-ink); }
.wrap { position: relative; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* the faint grid behind the hero and the closing call */
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; font: 500 14.5px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn.solid:hover { background: #fff; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-3); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 14px; border-radius: 9px; }
.btn.pill { border-radius: 999px; padding: 0 18px; font-weight: 600; }
.nav-signin { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; color: var(--ink); font: 500 14.5px/1 var(--body); text-decoration: none; white-space: nowrap; border-radius: 8px; transition: color .15s, background .15s; }
.nav-signin:hover { background: rgba(255, 255, 255, .06); }
.btn.big { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.btn[hidden], [data-app][hidden] { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(8, 9, 11, .78); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled, html.menu-open .nav { border-bottom-color: var(--line); }
/* a backdrop filter would trap the fixed phone menu inside the 64px bar, so drop it while the menu is open */
html.menu-open .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; flex: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.mark svg { width: 28px; height: 28px; }
.menu-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu-list > li { position: relative; }
.menu-btn, .menu-link { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 500 14.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.menu-btn:hover, .menu-link:hover, .menu-btn[aria-expanded=true] { color: var(--ink); background: rgba(255, 255, 255, .05); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.menu-btn[aria-expanded=true] .chev { transform: rotate(180deg); }

/* mega dropdowns */
.panel { position: absolute; top: calc(100% + 14px); left: -12px; z-index: 40; display: grid; padding: 10px; border: 1px solid var(--line-2); border-radius: 16px; background: #0d0e11; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 24px 60px -12px rgba(0, 0, 0, .8);
  visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s .16s; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* a bridge so the pointer can travel from the button */
.has-panel.open .panel, html:not(.js) .has-panel:hover .panel, html:not(.js) .has-panel:focus-within .panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s; }
.panel { gap: 4px; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.panel-col { padding: 6px 0; min-width: 0; }
.panel-label { margin: 6px 12px 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
/* one menu item: icon, title, one line */
.mi { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: background .15s; }
a.mi:hover, a.mi:focus-visible { background: rgba(255, 255, 255, .05); }
.mi-t b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.mi-t > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
a.mi:hover .mi-t > span { color: var(--ink-2); }
.mi.static .mi-t b { color: var(--ink-2); }
.mi small { margin-left: 6px; padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 5px; font: 500 10.5px/1 var(--mono); color: var(--ink-3); vertical-align: 1px; }
.ico { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink-2); transition: color .15s, border-color .15s; }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
a.mi:hover .ico { color: var(--acc); border-color: rgba(94, 234, 157, .35); }
/* the aside: bordered cards with a small drawing */
.panel-aside { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; min-width: 0; }
.panel-aside .panel-label { margin-left: 4px; }
.mcard { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: radial-gradient(240px 140px at 100% 0%, rgba(94, 234, 157, .08), transparent 70%), var(--surface); text-decoration: none; transition: border-color .15s, background .15s; }
.mcard:hover, .mcard:focus-visible { border-color: var(--line-3); }
.mcard > b { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.mcard > span:not(.mcard-art) { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.mcard .mcard-more { margin-top: auto; padding-top: 8px; color: var(--acc) !important; font-weight: 500; }
.mcard-art { display: block; min-height: 56px; margin-bottom: 8px; }
.art { display: block; height: 100%; }
.art-grid, .art-dots { display: grid; align-content: center; min-height: 56px; }
.art-grid { grid-template-columns: repeat(9, 10px); gap: 6px; }
.art-grid i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink-4); animation: art-fill 4.8s calc(var(--i) * .11s) infinite; }
@keyframes art-fill { 0%, 100% { background: var(--ink-4); } 30%, 60% { background: var(--acc); box-shadow: 0 0 10px rgba(94, 234, 157, .45); } }
.art-dots { grid-template-columns: repeat(12, 6px); gap: 8px 9px; }
.art-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: art-wave 2.4s calc(var(--i) * .1s) ease-in-out infinite; }
@keyframes art-wave { 0%, 100% { background: var(--ink-4); transform: none; } 40% { background: var(--acc); transform: scale(1.35); } }
.art-nodes { width: 100%; height: 56px; }
.art-nodes .ln { fill: none; stroke: var(--line-3); stroke-width: 1.2; }
.art-nodes .trv { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 22; animation: travel 1.4s linear infinite; }
.art-nodes .trv.t2 { stroke: var(--amber); animation-duration: 2s; }
.art-nodes circle { fill: var(--surface-2); stroke: var(--line-3); stroke-width: 1.2; }
.art-nodes circle.hub { fill: var(--acc-dim); stroke: var(--acc); }
.art-nodes circle.ok { stroke: var(--acc); } .art-nodes circle.amb { stroke: var(--amber); }
.has-panel:not(.open) .art * { animation-play-state: paused; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; position: relative; width: 38px; height: 38px; margin-left: 2px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), top .2s var(--ease); }
.burger span:first-child { top: 14px; } .burger span:last-child { top: 21px; }
.burger[aria-expanded=true] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded=true] span:last-child { top: 18px; transform: rotate(-45deg); }

/* full-screen menu on phones */
.mnav { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 29; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 8px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.mnav[hidden] { display: none; }
.mnav-body { display: grid; }
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .chev { width: 16px; height: 16px; color: var(--ink-3); }
.mnav details[open] summary .chev { transform: rotate(180deg); }
.mnav .mi { padding: 10px 2px; grid-template-columns: 28px minmax(0, 1fr); }
.mnav .ico { width: 28px; height: 28px; }
.mnav a.mi:hover { background: transparent; }
.mnav details .panel-label { margin: 10px 2px 2px; }
.mnav details > :last-child { margin-bottom: 14px; }
.mnav-link { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; text-decoration: none; }
.mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 28px; }

@media (max-width: 959px) {
  .menu { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) { .nav-cta .nav-signin { display: none; } }
@media (min-width: 960px) { .mnav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 92px; }
.hero::before { content: ""; position: absolute; left: 50%; top: -280px; width: 900px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(94, 234, 157, .10), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px/1.2 var(--mono); color: var(--ink-2); background: rgba(255, 255, 255, .02); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-dim); }
h1 { margin: 0; font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
h1 em { font-style: normal; color: var(--acc); }
.lede { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.facts dd { margin: 6px 0 0; font: 500 24px/1 var(--mono); letter-spacing: -.02em; }

/* the agent trace */
.trace { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(94, 234, 157, .25); overflow: hidden; }
.trace-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12.5px/1 var(--mono); color: var(--ink-3); }
.trace-title { display: inline-flex; align-items: center; gap: 12px; }
.win { display: inline-flex; gap: 6px; }
.win i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 157, .6); } 100% { box-shadow: 0 0 0 9px rgba(94, 234, 157, 0); } }
.trace-body { padding: 20px 20px 16px; }
.trace-meta { display: flex; align-items: baseline; gap: 8px; font: 13.5px/1.4 var(--mono); color: var(--ink-2); margin-bottom: 16px; }
.trace-meta #tr-tool { color: var(--ink); }
.trace-meta .sep { color: var(--ink-3); }
.trace-meta .amt { margin-left: auto; color: var(--ink); font-size: 15px; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tsteps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14.5px; color: var(--ink-3); transition: color .3s, background .3s; }
.tk { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s, box-shadow .3s; }
.tsteps li.on { color: var(--ink); }
.tsteps li.on .tk { background: var(--acc); border-color: var(--acc); }
.tsteps li.passed { color: var(--ink-3); opacity: .6; }
.tsteps li.passed .tk { border-style: dashed; }
.tsteps li.now { background: rgba(255, 255, 255, .035); }
.tsteps li.now .tk { box-shadow: 0 0 0 4px var(--acc-dim); }
.tsteps li.wait { color: var(--ink); background: var(--amber-dim); }
.tsteps li.wait .tk { border-color: var(--amber); animation: pulse-a 1.4s ease-out infinite; }
@keyframes pulse-a { 0% { box-shadow: 0 0 0 0 rgba(194, 194, 194, .55); } 100% { box-shadow: 0 0 0 8px rgba(194, 194, 194, 0); } }
.tsteps li.deny { color: #b3b3b3; background: var(--red-dim); }
.tsteps li.deny .tk { background: var(--red); border-color: var(--red); box-shadow: none; }
.ms { font: 12px/1 var(--mono); color: var(--ink-3); }
.tnote { margin: 14px 2px 0; min-height: 4.8em; font-size: 14px; color: var(--ink-2); }
.tnote b { color: var(--ink); font-weight: 500; }
.trace-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); font: 12.5px/1 var(--mono); color: var(--ink-3); background: rgba(0, 0, 0, .2); }
.trace-foot code { color: var(--acc); font-size: 12.5px; }

/* the promise band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promises p { margin: 0; padding: 28px 24px 28px 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.promises p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.promises b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; font-size: 15.5px; }

/* ---------- sections: numbered heads ---------- */
.section { position: relative; padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }
.shead { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 24px; max-width: 960px; margin-bottom: 56px; }
.num { font: 400 56px/0.9 var(--mono); letter-spacing: -.06em; color: var(--ink-4); }
.kicker { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
h2 { margin: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; text-wrap: pretty; }
h2 span { color: var(--ink-3); }
h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; font-weight: 600; }

/* ---------- 01: feature cards with live visuals ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 40%); transition: border-color .2s; scroll-margin-top: 90px; min-width: 0; }
.feat:hover { border-color: var(--line-2); }
.feat h3 { font-size: 15.5px; line-height: 1.5; font-weight: 400; letter-spacing: -.005em; color: var(--ink-3); min-height: 4.5em; }
.feat h3 b { color: var(--ink); font-weight: 500; }
.viz { position: relative; height: 196px; margin-top: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 14px 14px, var(--panel); font: 12px/1.4 var(--mono); color: var(--ink-2); }

/* reserve meter */
.viz-reserve { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; }
.vr-top, .vr-foot { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.vr-top { color: var(--ink-3); }
.vr-left b { color: var(--acc); font-weight: 500; }
.vr-foot { color: var(--ink-3); font-size: 11.5px; }
.vr-foot span:first-child { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.vr-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.vr-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--acc); opacity: .85; transition: background .35s, opacity .35s; }
.vr-grid i.x { background: var(--ink-4); opacity: .55; }
.vr-grid i.go { background: var(--amber); opacity: 1; }

/* signed request log */
.viz-log { padding: 0; }
.vl-win { position: absolute; inset: 0 0 34px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.vl-list { margin: 0; padding: 0 14px; list-style: none; animation: scroll-up 14s linear infinite; }
.vl-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; height: 28px; white-space: nowrap; }
.vl-list li span { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.vl-list li em { font-style: normal; color: var(--ink-3); }
.vl-list li.bad span, .vl-list li.bad em { color: #b3b3b3; }
.vl-list li.bad { background: linear-gradient(90deg, var(--red-dim), transparent); margin: 0 -14px; padding: 0 14px; }
.vl-list i { position: relative; width: 14px; height: 14px; border-radius: 50%; }
.vl-list i.ok { background: var(--acc-dim); }
.vl-list i.ok::after { content: ""; position: absolute; left: 4px; top: 3.5px; width: 5px; height: 3px; border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(-45deg); }
.vl-list i.no { background: var(--red-dim); }
.vl-list i.no::before, .vl-list i.no::after { content: ""; position: absolute; left: 3.5px; top: 6.5px; width: 7px; height: 1.5px; background: var(--red); transform: rotate(45deg); }
.vl-list i.no::after { transform: rotate(-45deg); }
@keyframes scroll-up { to { transform: translateY(-100%); } }
.vl-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; margin: 0; display: flex; align-items: center; padding: 0 14px; border-top: 1px solid var(--line); background: var(--panel); color: var(--ink-3); }
.vl-foot code { font-size: 11.5px; color: var(--acc); }

/* approval phone card */
.viz-approve { display: grid; place-items: center; }
.phone { width: min(236px, 86%); padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); font-family: var(--body); }
.phone p { margin: 0; }
.ph-head { display: flex; justify-content: space-between; gap: 8px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.ph-agent { color: var(--ink-2); }
.ph-amt { margin-top: 12px !important; font: 600 24px/1 var(--body); letter-spacing: -.03em; color: var(--ink); }
.ph-to { margin-top: 6px !important; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.ph-status { position: relative; height: 32px; margin-top: 12px !important; }
.ph-status span, .or-status span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 9px; font: 500 12px/1 var(--mono); transition: opacity .35s, transform .35s var(--ease); }
.st-wait { color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(194, 194, 194, .35); }
.st-ok { color: var(--acc); background: var(--acc-dim); border: 1px solid rgba(94, 234, 157, .35); opacity: 0; transform: translateY(4px); }
[data-state=done] .st-wait { opacity: 0; transform: translateY(-4px); }
[data-state=done] .st-ok { opacity: 1; transform: none; }
.phone[data-state=pending] .st-wait::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--amber); animation: pulse-a 1.4s ease-out infinite; }

/* pay per call */
.viz-x402 { padding: 14px 16px; }
.vx-badge { position: absolute; top: 12px; right: 14px; margin: 0; display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); }
.vx-badge span { padding: 4px 6px; border-radius: 6px; }
.vx-badge .b402 { color: var(--amber); background: var(--amber-dim); }
.vx-badge .b200 { color: var(--acc); background: var(--acc-dim); }
.vx-badge .arrow { padding: 0; color: var(--ink-3); }
.vx-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.vx-lines li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; height: 25px; align-items: center; white-space: nowrap; color: var(--ink-2); transition: opacity .3s, transform .3s var(--ease); }
.vx-lines li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.vx-lines .dir { color: var(--ink-3); }
.vx-lines li.amb { color: var(--amber); }
.vx-lines li.ok { color: var(--acc); }
.js .viz-x402.play .vx-lines li { opacity: 0; transform: translateX(-4px); }
.js .viz-x402.play .vx-lines li.in { opacity: 1; transform: none; }

/* order card */
.viz-order { display: grid; place-items: center; }
.order { width: min(260px, 88%); padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-family: var(--body); }
.order p { margin: 0; }
.or-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.or-id { font: 11px/1.6 var(--mono); color: var(--ink-3); font-weight: 400; }
.or-row { display: flex; justify-content: space-between; margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.or-row b { font: 500 13px/1.4 var(--mono); color: var(--ink); }
.or-status { position: relative; height: 30px; margin-top: 12px !important; }
.or-by { margin-top: 8px !important; font: 11px/1.4 var(--mono); color: var(--ink-3); text-align: center; transition: opacity .35s; }
.or-by code { color: var(--acc); font-size: 11px; }
.order[data-state=open] .or-by { opacity: 0; }
.order .st-wait { color: var(--ink-2); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.order .st-ok { letter-spacing: .08em; }

/* MCP */
.viz-mcp { display: flex; flex-direction: column; gap: 16px; padding: 14px 16px; }
.vm-cmd { margin: 0; height: 52px; font-size: 12px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; overflow: hidden; }
.vm-cmd .pr { color: var(--ink-3); }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vm-chips li { padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 11.5px; line-height: 1; color: var(--ink-2); background: rgba(255, 255, 255, .02); transition: color .3s, border-color .3s, background .3s; }
.js .viz-mcp.play .vm-chips li { color: var(--ink-4); border-color: var(--line); }
.js .viz-mcp.play .vm-chips li.in { color: var(--acc); border-color: rgba(94, 234, 157, .35); background: var(--acc-dim); }

/* ---------- 02: ready for AI agents ---------- */
.agents-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.benefits li { display: grid; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.benefits li:first-child { border-left-color: var(--acc); }
.benefits b { font-weight: 500; font-size: 16px; }
.benefits span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.flow { margin: 0; }
.flow svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; overflow: visible; }
.fl-lines path { fill: none; stroke: var(--line-3); stroke-width: 1.2; }
.fl-lines path.amb { stroke: rgba(194, 194, 194, .45); }
.fl-lines path.red { stroke: rgba(161, 161, 161, .4); stroke-dasharray: 3 4; }
.fl-dots path { fill: none; stroke: var(--acc); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 26; animation: travel 1.6s linear infinite; }
.fl-dots path.amb { stroke: var(--amber); animation-duration: 2.4s; }
.fl-dots path.d2 { animation-delay: .8s; }
.fl-dots path.red { stroke: var(--red); animation-duration: 2s; }
@keyframes travel { to { stroke-dashoffset: -26; } }
.fl-node rect { fill: var(--surface); stroke: var(--line-3); stroke-width: 1; }
.fl-node.top rect { stroke: rgba(94, 234, 157, .5); fill: #0e1913; }
.fl-node.amber rect { stroke: rgba(194, 194, 194, .55); fill: #19140b; }
.flow text { font: 500 12.5px var(--mono); fill: var(--ink); text-anchor: middle; }
.flow text.sub { font-size: 10.5px; font-weight: 400; fill: var(--ink-3); }
.fl-node.amber text.sub { fill: var(--amber); }
.fl-end circle { fill: var(--bg); stroke-width: 1.4; }
.fl-end path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-end.ok circle { stroke: var(--acc); fill: #0e1913; } .fl-end.ok path { stroke: var(--acc); }
.fl-end.no circle { stroke: var(--red); fill: #1b0d0c; } .fl-end.no path { stroke: var(--red); }
.fl-end text { font-size: 11px; font-weight: 400; fill: var(--ink-2); }
.fl-end.no text { fill: #b3b3b3; }

.chat { display: flex; flex-direction: column; height: 560px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12.5px/1 var(--mono); color: var(--ink-3); }
.chat-body { flex: 1; margin: 0; padding: 18px 16px; list-style: none; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 14px; line-height: 1.55; }
.chat-body li { transition: opacity .4s, transform .4s var(--ease); }
.js .chat.play .chat-body li { opacity: 0; transform: translateY(6px); }
.js .chat.play .chat-body li.in { opacity: 1; transform: none; }
.c-user { align-self: flex-end; max-width: 88%; padding: 10px 13px; border-radius: 12px 12px 4px 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); }
.c-work { display: flex; align-items: center; gap: 8px; font: 12px/1 var(--mono); color: var(--ink-3); }
.c-work::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.c-tool { display: grid; gap: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); font: 12px/1.45 var(--mono); }
.t-name { color: var(--ink); }
.t-name::before { content: "tool · "; color: var(--ink-3); }
.t-arg { color: var(--ink-2); overflow-wrap: anywhere; }
.t-out { color: var(--ink-3); overflow-wrap: anywhere; }
.t-out::before { content: "→ "; }
.t-out.ok { color: var(--acc); }
.c-agent { color: var(--ink-2); }
.chat-input { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 12px 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 14px; color: var(--ink-3); }
.chat-input .send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 13px; }

/* ---------- 03: two planes ---------- */
.planes { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); align-items: stretch; }
.plane { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 24px; }
.plane header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.tag { font: 500 12.5px/1 var(--mono); color: var(--amber); }
.plane.core .tag { color: var(--acc); }
.plane h3 { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nodes { list-style: none; margin: 0; padding: 0; }
.nodes li { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.nodes li:last-child { border-bottom: 0; padding-bottom: 0; }
.nodes b { font-weight: 500; font-size: 15px; }
.nodes span { font-size: 14px; color: var(--ink-2); }
.boundary { position: relative; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 0 8px; }
.boundary .line { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 1px dashed rgba(194, 194, 194, .5); }
.boundary .label { position: relative; padding: 6px 10px; border: 1px solid rgba(194, 194, 194, .45); border-radius: 8px; background: var(--bg); font: 500 12px/1.3 var(--mono); color: var(--amber); }
.boundary .sub { position: relative; padding: 4px 6px; background: var(--bg); font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.bflow { position: relative; display: flex; gap: 6px; padding: 4px 6px; background: var(--bg); }
.bflow i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); opacity: .25; animation: blinkdots 1.8s infinite; }
.bflow i:nth-child(2) { animation-delay: .3s; } .bflow i:nth-child(3) { animation-delay: .6s; }
@keyframes blinkdots { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ops { margin-top: 48px; }
.ops-label { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-3); }
.ops ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ops li { display: grid; gap: 4px; padding: 18px 20px; background: var(--bg); }
.ops b { font-weight: 500; font-size: 15px; }
.ops span { font-size: 14px; color: var(--ink-2); }

/* ---------- 04: trust ---------- */
.section.deep { background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.ticks code { color: var(--ink); }
.ticks a { color: var(--acc); text-underline-offset: 3px; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ladder button { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ladder button b { font: 500 20px/1 var(--mono); color: var(--ink); }
.ladder button span { font-size: 13px; line-height: 1.3; }
.ladder button:hover { border-color: var(--line-3); }
.ladder button[aria-selected=true] { border-color: var(--acc); background: linear-gradient(180deg, var(--acc-dim), transparent); color: var(--ink); }
.ladder button[aria-selected=true] b { color: var(--acc); }
.ladder-panel { grid-column: 1 / -1; margin-top: 4px; padding: 22px 22px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); min-height: 190px; }
.lp-title { margin: 0; font-weight: 600; font-size: 17px; }
.lp-body { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.lp-ex { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lp-ex span { margin-right: 8px; font: 500 12px/1 var(--mono); color: var(--amber); }

/* ---------- 05: developers ---------- */
.dev-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.code-card { min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font: 500 13.5px/1 var(--body); color: var(--ink-3); background: transparent; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected=true] { color: var(--ink); background: rgba(255, 255, 255, .07); }
.install { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.install code { min-width: 0; color: var(--ink); font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.install code::before { content: "$ "; color: var(--ink-3); }
.copy { flex: none; min-width: 64px; font: 500 12.5px/1 var(--body); color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--line-3); }
.code { margin: 0; padding: 20px; height: 330px; overflow: auto; font: 13px/1.7 var(--mono); color: #c9ced6; tab-size: 4; }
.code .k { color: #62c480; } .code .s { color: var(--acc); } .code .c { color: var(--ink-3); }

/* ---------- 06: rails ---------- */
.rails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rails div { display: grid; gap: 6px; align-content: start; padding: 22px; background: var(--bg); transition: background .2s; }
.rails div:hover { background: var(--bg-2); }
.rails b { font-weight: 500; }
.rails span { font-size: 14px; color: var(--ink-2); }

/* closing call */
.cta { padding-top: 40px; padding-bottom: 120px; }
.section.cta { border-top: 0; }
.cta-box { position: relative; overflow: hidden; text-align: center; padding: 88px 24px; border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(600px 300px at 50% 0%, rgba(94, 234, 157, .12), transparent 70%), var(--bg-2); }
.cta-box h2 { position: relative; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.cta-box p { position: relative; margin: 16px auto 0; color: var(--ink-2); font-size: 17px; }
.cta-box .hero-cta { position: relative; justify-content: center; }
.cta-box .grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 28ch; color: var(--ink-3); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-h { margin: 0 0 4px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.foot-col a, .foot-col span { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-col small { margin-left: 6px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; font: 11px/1 var(--mono); color: var(--ink-3); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot-base p { margin: 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agents-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .benefits { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-grid, .trust-grid, .dev-grid { grid-template-columns: 1fr; gap: 44px; }
  .promises { grid-template-columns: 1fr 1fr; }
  .promises p:nth-child(3) { padding-left: 0; border-left: 0; }
  .promises p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .planes { grid-template-columns: 1fr; }
  .boundary { padding: 20px 0; }
  .ops ul, .rails { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .agents-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefits { grid-template-columns: 1fr; gap: 20px; }
  .chat { height: 600px; }
  .shead { grid-template-columns: 1fr; }
  .num { margin-bottom: 18px; font-size: 40px; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 60px; }
  .section { padding: 80px 0; }
  .lede { font-size: 16.5px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div { padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .facts dd { margin: 0; font-size: 18px; }
  .promises { grid-template-columns: 1fr; }
  .promises p, .promises p + p { padding: 20px 0; border-left: 0; }
  .promises p + p { border-top: 1px solid var(--line); }
  .feats, .ops ul, .rails { grid-template-columns: minmax(0, 1fr); }
  .feat h3 { min-height: 0; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder-panel { min-height: 230px; }
  .code { height: 300px; font-size: 12.5px; }
  .cta-box { padding: 56px 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tsteps li { font-size: 14px; }
  .trace-body { padding: 16px 14px 14px; }
}

/* Phones: taps of at least 40px (the footer links get room between them), and inputs at 16px so iOS does not zoom in. */
@media (pointer: coarse) {
  .tabs button, .copy { min-height: 40px; }
  .nav-cta .btn, .btn { min-height: 40px; }
  .burger { width: 42px; height: 42px; }
  .burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
  .burger[aria-expanded=true] span:first-child, .burger[aria-expanded=true] span:last-child { top: 20px; }
  .foot a { display: inline-block; padding: 9px 0; }
  input, select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fl-dots, .art-nodes .trv { display: none; }
  .vl-win { -webkit-mask-image: none; mask-image: none; }
  .vl-list + .vl-list { display: none; }
}
