/* Akasha Trade — marketing site v3 (AKA-3591). Dependency-free, dark-first. */
:root {
  --bg: #020617;
  --bg-2: #0b1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #cbd5e1;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --gold: #f5b82e;
  --emerald: #34d399;
  --rose: #fb7185;
  --amber: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--text-strong); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(59, 130, 246, 0.35); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Backdrop ----------------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop .glow { position: absolute; border-radius: 999px; filter: blur(80px); opacity: 0.55; }
.backdrop .g1 { width: 44rem; height: 44rem; left: 50%; top: -18rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59,130,246,0.35), rgba(99,102,241,0.12), transparent); }
.backdrop .g2 { width: 26rem; height: 26rem; right: -8rem; top: 32rem;
  background: radial-gradient(closest-side, rgba(245,184,46,0.16), transparent); }
.backdrop .g3 { width: 30rem; height: 30rem; left: -10rem; top: 70rem;
  background: radial-gradient(closest-side, rgba(34,211,238,0.14), transparent); }
.backdrop .grid {
  position: absolute; inset: 0; opacity: 0.16;
  background-image: linear-gradient(rgba(148,163,184,0.25) 0.5px, transparent 0.5px),
                    linear-gradient(90deg, rgba(148,163,184,0.25) 0.5px, transparent 0.5px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.35) 60%, transparent);
}

/* Nav ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(2, 6, 23, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: none; gap: 26px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: inline-flex; background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; }
.nav-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #020617;
  border-bottom: 1px solid var(--border); padding: 10px 20px 18px; }
.nav-menu.is-open { display: block; }
.nav-menu a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 500; color: var(--text); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-menu { display: none !important; }
}

/* Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: 0.92rem; line-height: 1; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--indigo)); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(59,130,246,0.7); }
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(99,102,241,0.9); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-gold { background: linear-gradient(90deg, #f5b82e, #f59e0b); color: #1a1200; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Section scaffolding ------------------------------------------------- */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,0.15); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.lede { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.grad { background: linear-gradient(90deg, #93c5fd, #a5b4fc 45%, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold { background: linear-gradient(90deg, #fde68a, #f5b82e); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cards & grids ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p, .card li { color: var(--muted); font-size: 0.94rem; }
.card.accent { border-color: rgba(99,102,241,0.45); background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(255,255,255,0.03)); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 22px; margin: 7px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 0 3px rgba(59,130,246,0.14); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.pill.live { color: #a7f3d0; border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); }
.pill.gold { color: #fde68a; border-color: rgba(245,184,46,0.45); background: rgba(245,184,46,0.08); }
.pill.blue { color: #bfdbfe; border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.1); }
.pill.muted { color: var(--muted); }
.kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }

/* Hero --------------------------------------------------------------- */
.hero { padding: 64px 0 56px; text-align: center; }
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.hero .badge .ping { position: relative; width: 7px; height: 7px; }
.hero .badge .ping::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--emerald); }
.hero .badge .ping::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; background: var(--emerald); opacity: 0.5; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2); opacity: 0; } }
.hero h1 { margin: 26px auto 0; max-width: 980px; }
.hero .sub { color: var(--muted); font-size: 1.12rem; max-width: 820px; margin: 22px auto 0; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .fine { color: var(--faint); font-size: 0.82rem; margin-top: 14px; }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 56px; }
@media (min-width: 768px) { .proof { grid-template-columns: repeat(5, 1fr); } }
.proof .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 12px; }
.proof .n { font-size: 1.5rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.proof .l { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.pipeline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.pipeline .step { font-family: var(--mono); font-size: 0.78rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong); }
.pipeline .arrow { color: var(--faint); font-size: 0.8rem; }
.pipeline .step.hot { border-color: rgba(245,184,46,0.5); color: #fde68a; }

/* Persona tabs ------------------------------------------------------- */
.tabs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
@media (min-width: 768px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
.tab { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease; }
.tab strong { display: block; color: var(--text-strong); font-size: 1rem; }
.tab span { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.tab.is-active { border-color: rgba(59,130,246,0.6); background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(255,255,255,0.03)); }
.panel { display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
@media (min-width: 900px) { .panel { grid-template-columns: 1.15fr 1fr; padding: 36px; } }
.panel h3 { font-size: 1.5rem; }
.panel .quote { color: var(--text); font-size: 1.05rem; margin-top: 10px; }
.panel .quote em { color: #fde68a; font-style: normal; }
.panel .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.panel .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.panel .side { background: rgba(2,6,23,0.55); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.panel .side h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.panel .side ul.ticks li { font-size: 0.92rem; color: var(--text); }

/* Platform three-column flow ------------------------------------------- */
.flow { display: grid; gap: 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.flow .col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.flow .col h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.flow .join { display: none; align-items: center; justify-content: center; color: var(--faint); font-size: 1.4rem; }
@media (min-width: 900px) { .flow .join { display: flex; } }
.flow .row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.flow .row:first-of-type { border-top: 0; }
.flow .row b { color: var(--text-strong); font-weight: 600; font-size: 0.93rem; display: block; }
.flow .row span { color: var(--muted); font-size: 0.84rem; }
.flow .ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(59,130,246,0.14); color: #93c5fd; font-size: 0.72rem; font-weight: 800; }
.flow .col.exec .ico { background: rgba(245,184,46,0.14); color: #fde68a; }
.flow .col.proc .ico { background: rgba(34,211,238,0.14); color: #a5f3fc; }

/* Agents ------------------------------------------------------------- */
.agents { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .agents { grid-template-columns: 1fr 1fr; gap: 40px; } }
.chat { background: #050b1a; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(59,130,246,0.6); }
.chat .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.chat .bar .av { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--gold), var(--cyan)); }
.chat .bar .st { margin-left: auto; color: #a7f3d0; }
.chat .log { padding: 16px; display: grid; gap: 12px; min-height: 360px; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.msg.user { justify-self: end; background: linear-gradient(90deg, rgba(59,130,246,0.35), rgba(99,102,241,0.35)); color: #e0e7ff; border-bottom-right-radius: 4px; }
.msg.agent { justify-self: start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg.agent b { color: var(--text-strong); }
.msg .tag { display: inline-block; font-family: var(--mono); font-size: 0.7rem; color: #a5f3fc; background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.25); border-radius: 6px; padding: 1px 6px; margin: 2px 2px 0 0; }
.msg table { border-collapse: collapse; width: 100%; margin-top: 6px; font-size: 0.8rem; }
.msg td { padding: 3px 6px 3px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.msg td.r { text-align: right; font-family: var(--mono); }
.pos { color: #a7f3d0; } .neg { color: #fda4af; }
.agent-feats { display: grid; gap: 14px; margin-top: 22px; }
.agent-feats .f { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.agent-feats .f .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); font-weight: 800; font-size: 0.85rem; }
.agent-feats .f b { color: var(--text-strong); display: block; }
.agent-feats .f span { color: var(--muted); font-size: 0.9rem; }
.private { margin-top: 28px; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prompts code { font-size: 0.76rem; padding: 5px 9px; border-radius: 7px; background: rgba(2,6,23,0.7); border: 1px solid var(--border-strong); color: #c7d2fe; }

/* Marketplace -------------------------------------------------------- */
.sides { display: grid; gap: 16px; }
@media (min-width: 768px) { .sides { grid-template-columns: 1fr 1fr; } }
.fanout { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.fanout .diagram { display: grid; gap: 12px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 768px) { .fanout .diagram { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.fanout .node { background: rgba(2,6,23,0.6); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 16px; font-size: 0.86rem; width: 100%; }
.fanout .node b { display: block; color: var(--text-strong); }
.fanout .node span { color: var(--muted); font-size: 0.78rem; }
.fanout .node.src { border-color: rgba(245,184,46,0.5); }
.fanout .arr { color: var(--faint); font-size: 1.3rem; }
.fanout .stack { display: grid; gap: 8px; width: 100%; }
.perf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 768px) { .perf { grid-template-columns: repeat(6, 1fr); } }
.perf .m { background: rgba(2,6,23,0.6); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.perf .m .v { font-family: var(--mono); font-size: 1rem; color: var(--text-strong); }
.perf .m .k { font-size: 0.72rem; color: var(--faint); }

/* Risk gates --------------------------------------------------------- */
.gates { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gates { grid-template-columns: repeat(3, 1fr); } }
.gate { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.gate .g { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: #fde68a; background: rgba(245,184,46,0.1); border: 1px solid rgba(245,184,46,0.3); border-radius: 8px; padding: 6px 0; text-align: center; }
.gate b { color: var(--text-strong); font-size: 0.92rem; display: block; }
.gate span { color: var(--muted); font-size: 0.82rem; }
.posture { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.posture .p { font-family: var(--mono); font-size: 0.78rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); }
.posture .p.off { color: var(--faint); } .posture .p.shadow { color: #c4b5fd; } .posture .p.enforce { color: #a7f3d0; }
.protect { margin-top: 28px; }

/* Markets table ------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.venues { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
table.venues th, table.venues td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.venues th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
table.venues td:first-child { color: var(--text-strong); font-weight: 600; white-space: nowrap; }
table.venues td { color: var(--muted); }
table.venues tr:last-child td { border-bottom: 0; }

/* Feature inventory -------------------------------------------------- */
.inventory { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .inventory { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .inventory { grid-template-columns: repeat(3, 1fr); } }
.inventory .card { padding: 20px; }
.inventory .card h3 { font-size: 0.98rem; }
.inventory .card ul.clean li { font-size: 0.86rem; color: var(--muted); padding: 4px 0 4px 14px; position: relative; }
.inventory .card ul.clean li::before { content: "·"; position: absolute; left: 2px; color: var(--cyan); font-weight: 800; }

/* Pricing ------------------------------------------------------------ */
.billing { display: inline-flex; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px; margin: 18px auto 0; }
.billing button { font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.billing button.is-active { background: linear-gradient(90deg, var(--blue), var(--indigo)); color: #fff; }
.billing .save { font-size: 0.7rem; color: #fde68a; margin-left: 6px; }
.tiers { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.tier.featured { border-color: rgba(59,130,246,0.65); background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(255,255,255,0.03)); box-shadow: 0 30px 80px -50px rgba(59,130,246,0.9); }
.tier .name { font-size: 1.15rem; font-weight: 800; color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.tier .for { color: var(--muted); font-size: 0.9rem; margin-top: 6px; min-height: 44px; }
.tier .price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.tier .price .amt { font-size: 2.6rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; }
.tier .price .per { color: var(--muted); font-size: 0.9rem; }
.tier .note { color: var(--faint); font-size: 0.78rem; min-height: 20px; }
.tier .btn { margin-top: 18px; }
.tier ul.ticks { margin-top: 22px; }
.tier ul.ticks li { font-size: 0.9rem; color: var(--text); }
.tier .incl { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 20px; }
.addon { margin-top: 18px; display: grid; gap: 16px; background: linear-gradient(90deg, rgba(245,184,46,0.1), rgba(255,255,255,0.03)); border: 1px solid rgba(245,184,46,0.35); border-radius: var(--radius); padding: 24px; }
@media (min-width: 900px) { .addon { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.addon h3 { font-size: 1.2rem; }
.addon .price { font-size: 1.6rem; font-weight: 800; color: var(--text-strong); }
.addon .price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.pricing-fine { color: var(--faint); font-size: 0.8rem; margin-top: 18px; text-align: center; }

/* Developers --------------------------------------------------------- */
.dev { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .dev { grid-template-columns: 1fr 1fr; gap: 40px; } }
pre.code { margin: 0; background: #050b1a; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px; font-size: 0.8rem; line-height: 1.6; color: #c7d2fe; overflow-x: auto; }
pre.code .c { color: var(--faint); } pre.code .k { color: #fde68a; } pre.code .s { color: #a7f3d0; } pre.code .m { color: #93c5fd; }
.dev-list { display: grid; gap: 12px; margin-top: 20px; }
.dev-list .d { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.dev-list .d b { color: var(--text-strong); }
.dev-list .d span { color: var(--muted); font-size: 0.9rem; }

/* Trust -------------------------------------------------------------- */
.trust { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust .card h3 { font-size: 0.98rem; }

/* FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
details summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--faint); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 0.94rem; padding: 0 0 16px; }

/* Final CTA + footer -------------------------------------------------- */
.final { text-align: center; padding: 90px 0; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.final .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--faint); font-size: 0.82rem; }
footer .cols { display: grid; gap: 24px; }
@media (min-width: 768px) { footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
footer ul.clean li { padding: 3px 0; }
footer a:hover { color: #fff; }
footer .disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .badge .ping::after { animation: none; }
  .btn:hover { transform: none; }
}

/* Narrow phones: give the wordmark room by dropping the secondary nav button. */
@media (max-width: 520px) {
  .nav-cta .btn-ghost { display: none; }
  .brand img { height: 38px; }
}

/* Laptop widths: keep every nav label on one line and drop the secondary button until there is room. */
.nav-links a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links { gap: 16px; font-size: 0.84rem; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- v3b: StoryBrand pass ------------------------------------------------ */
.hero.split { text-align: left; padding-top: 56px; }
@media (min-width: 768px) { .hero.split { padding-top: 80px; } }
.hero.split .cols { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .hero.split .cols { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
.hero.split h1 { margin: 22px 0 0; max-width: 640px; }
.hero.split .sub { margin: 20px 0 0; max-width: 600px; }
.hero.split .ctas { justify-content: flex-start; margin-top: 28px; }
.hero.split .fine { margin-top: 12px; }
.hero.split .proof { margin-top: 44px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .hero.split .proof { grid-template-columns: repeat(4, 1fr); } }
.chat .log { min-height: 0; }
.villains { display: grid; gap: 14px; }
@media (min-width: 768px) { .villains { grid-template-columns: repeat(3, 1fr); } }
.villain { background: var(--surface); border: 1px solid rgba(251,113,133,0.25); border-radius: var(--radius); padding: 22px; }
.villain .k { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fda4af; margin-bottom: 8px; font-weight: 700; }
.villain h3 { font-size: 1.05rem; }
.villain p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
.stakes { margin-top: 18px; color: var(--muted); font-size: 0.95rem; max-width: 760px; }
.stakes strong { color: var(--text-strong); }
.benefits { display: grid; gap: 14px; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.benefit .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #0b1220; background: linear-gradient(135deg, var(--gold), var(--cyan)); margin-bottom: 12px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
.guide { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .guide { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }
.guide .empathy { font-size: 1.12rem; color: var(--text); }
.guide .empathy em { color: #fde68a; font-style: normal; }
.authority { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.authority .a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.authority .a b { display: block; font-size: 1.35rem; color: var(--text-strong); letter-spacing: -0.02em; }
.authority .a span { font-size: 0.8rem; color: var(--muted); }
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 0.78rem; color: #93c5fd; background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.35); border-radius: 8px; padding: 4px 9px; }
.step h3 { font-size: 1.05rem; padding-right: 44px; }
.step p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
.promises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.promises .pill { font-size: 0.8rem; padding: 7px 12px; }
.fromto { display: grid; gap: 10px; }
@media (min-width: 768px) { .fromto { grid-template-columns: 1fr 1fr; gap: 14px; } }
.fromto .col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.fromto .col.to { border-color: rgba(52,211,153,0.35); background: linear-gradient(180deg, rgba(52,211,153,0.08), rgba(255,255,255,0.03)); }
.fromto .col h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.fromto .col.to h3 { color: #a7f3d0; }
.fromto li { font-size: 0.95rem; padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text); }
.fromto li:first-child { border-top: 0; }
.fromto .col.from li { color: var(--muted); }
.gatechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gatechips .g { font-family: var(--mono); font-size: 0.76rem; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(245,184,46,0.3); background: rgba(245,184,46,0.08); color: #fde68a; }
.gatechips .g span { color: var(--muted); font-family: var(--font); margin-left: 6px; }
.compact-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .compact-list { grid-template-columns: repeat(3, 1fr); } }
.compact-list .card p { font-size: 0.9rem; }
details.box { padding: 0 22px; border-radius: var(--radius); }
details.box summary { font-size: 1.05rem; padding: 18px 0; }
details.box .inventory { padding: 4px 0 22px; }
.story { max-width: 820px; color: var(--muted); font-size: 0.98rem; }
.story p + p { margin-top: 14px; }
.story strong { color: var(--text); }
table.venues.compact { min-width: 640px; font-size: 0.86rem; }
table.venues.compact th, table.venues.compact td { padding: 10px 12px; }

/* ---- v3c: multi-page + screenshots ------------------------------------- */
.nav-links a.is-current { color: #fff; }
.shot { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: #0b1220; box-shadow: 0 30px 80px -40px rgba(59,130,246,0.55); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 10px 14px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); }
.shot.hero-shot { transform: rotate(-0.4deg); }
.feature { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; gap: 44px; } .feature.flip > :first-child { order: 2; } }
.feature h3 { font-size: 1.5rem; }
.feature .lede { font-size: 1rem; }
.feature + .feature { margin-top: 56px; }
.page-hero { padding: 64px 0 40px; }
@media (min-width: 768px) { .page-hero { padding: 88px 0 56px; } }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 860px; margin-top: 18px; }
.page-hero .sub { color: var(--muted); font-size: 1.1rem; max-width: 760px; margin-top: 18px; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hub { display: grid; gap: 14px; }
@media (min-width: 768px) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hub { grid-template-columns: repeat(4, 1fr); } }
.hub a.card { display: block; transition: border-color .15s ease, transform .15s ease; }
.hub a.card:hover { border-color: rgba(59,130,246,0.6); transform: translateY(-2px); }
.hub a.card h3 { font-size: 1rem; }
.hub a.card .go { display: block; margin-top: 10px; font-size: 0.82rem; color: #93c5fd; }
.venue-cards { display: grid; gap: 14px; }
@media (min-width: 768px) { .venue-cards { grid-template-columns: repeat(2, 1fr); } }
.venue { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.venue .top { display: flex; align-items: center; gap: 12px; }
.venue .logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; color: #0b1220; background: linear-gradient(135deg, #fde68a, #f5b82e); }
.venue h3 { font-size: 1.1rem; }
.venue .mk { font-size: 0.8rem; color: var(--muted); }
.venue dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 0.9rem; }
.venue dt { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.venue dd { margin: 0; color: var(--text); }
.breadcrumb { font-size: 0.8rem; color: var(--faint); }
.breadcrumb a:hover { color: #fff; }

/* ---- v3d: scannable summary ------------------------------------------- */
.tldr { display: grid; gap: 14px; }
@media (min-width: 768px) { .tldr { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tldr { grid-template-columns: repeat(4, 1fr); } }
.tldr .t { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.tldr .t h3 { font-size: 1.02rem; line-height: 1.3; margin-bottom: 12px; }
.tldr .t li { position: relative; padding: 5px 0 5px 18px; font-size: 0.92rem; color: var(--muted); }
.tldr .t li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.tldr .t:nth-child(1) h3 { color: #fda4af; }
.tldr .t:nth-child(2) { border-color: rgba(59,130,246,0.45); }
.tldr .t:nth-child(3) h3 { color: #fde68a; }

/* ---- v3e: the original marketplace section, with the flowing fan-out ------ */
.mkt { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .mkt { grid-template-columns: 1fr 1fr; gap: 56px; } }
.mkt-mini { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .mkt-mini { grid-template-columns: 1fr 1fr; } }
.mkt-mini .m { background: rgba(15,23,42,0.5); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.mkt-mini .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(147,197,253,0.7); }
.mkt-mini .k.alt { color: rgba(196,181,253,0.7); }
.mkt-mini p { margin-top: 6px; font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.mkt-rows { display: grid; gap: 16px; margin-top: 30px; }
.mkt-rows .r { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.mkt-rows .i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(59,130,246,0.12); color: #93c5fd; }
.mkt-rows .i svg { width: 18px; height: 18px; }
.mkt-rows h3 { font-size: 0.95rem; }
.mkt-rows p { font-size: 0.9rem; color: var(--muted); margin-top: 3px; }
.mkt-note { margin-top: 26px; font-size: 0.78rem; color: var(--faint); }
.fan { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 24px; padding: 24px; }
@media (min-width: 640px) { .fan { padding: 32px; } }
.fan .kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; margin-bottom: 0; }
.fan > svg { width: 100%; height: auto; margin-top: 16px; display: block; }
.fan-chips svg { width: 12px; height: 12px; flex: none; }
.fan-flow { animation: fan-flow 1.2s linear infinite; }
@keyframes fan-flow { to { stroke-dashoffset: -20; } }
.fan-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fan-chips .pill { font-size: 0.74rem; font-weight: 500; letter-spacing: 0; padding: 5px 12px; background: rgba(255,255,255,0.06); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .fan-flow { animation: none; } }

/* ---- v3f: headline wrapping ------------------------------------------- */
.hero.split h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); text-wrap: balance; }
.hero.split h1 .nowrap { white-space: nowrap; }
.hero.split h1 .h1-br { display: none; }
@media (min-width: 1000px) { .hero.split h1 .h1-br { display: inline; } }
@media (max-width: 420px) { .hero.split h1 .nowrap { white-space: normal; } }

/* ---- v3g: visual life — mascot, orbits, connectors, scans ---------------- */
.bot-wrap { position: relative; display: grid; place-items: center; }
.bot-wrap img { width: min(100%, 320px); height: auto; filter: drop-shadow(0 30px 50px rgba(59,130,246,0.35)); }
.bot-wrap.sm img { width: 180px; }
.bot-wrap.xs img { width: 110px; filter: drop-shadow(0 12px 24px rgba(59,130,246,0.35)); }
.ask { position: relative; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 16px; padding: 14px 16px; max-width: 360px; }
.ask .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.ask .q { display: block; margin-top: 6px; color: var(--text-strong); font-weight: 600; font-size: 0.98rem; min-height: 2.6em; }
.ask::after { content: ""; position: absolute; left: 36px; bottom: -9px; width: 16px; height: 16px; background: var(--surface-2); border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: rotate(45deg); }
.ask .q span { display: none; }
.ask .q span.on { display: inline; }
.agent-stage { display: grid; gap: 18px; justify-items: start; align-content: start; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels .pill { padding: 7px 12px; font-size: 0.8rem; letter-spacing: 0; }
.channels .pill svg { width: 14px; height: 14px; }

/* hero orbit rings behind the screenshot */
.orbit-wrap { position: relative; }
.orbit-wrap .orbits { position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; opacity: 0.9; }
.orbit-wrap .orbits circle { fill: none; stroke-width: 1; }
.orbit-wrap .o1 { stroke: #60a5fa; stroke-opacity: 0.35; stroke-dasharray: 4 10; animation: spin 36s linear infinite; transform-origin: center; }
.orbit-wrap .o2 { stroke: #fbbf24; stroke-opacity: 0.3; stroke-dasharray: 2 14; animation: spin 52s linear infinite reverse; transform-origin: center; }
.orbit-wrap .node { fill: #22d3ee; filter: drop-shadow(0 0 6px #22d3ee); animation: spin 36s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* animated connector behind the three steps */
.steps { position: relative; }
@media (min-width: 768px) {
  .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, rgba(96,165,250,0.6) 0 8px, transparent 8px 18px); animation: dash 1.4s linear infinite; }
  .steps .step { position: relative; z-index: 1; }
}
@keyframes dash { to { background-position: 18px 0; } }

/* flow strip (platform) */
.flowstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.flowstrip .n { font-family: var(--mono); font-size: 0.8rem; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong); }
.flowstrip .n.hot { border-color: rgba(245,184,46,0.5); color: #fde68a; }
.flowstrip .lk { width: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(96,165,250,0.7) 0 6px, transparent 6px 12px); animation: dash 1s linear infinite; background-size: 12px 2px; }
@keyframes dash12 { to { background-position: 12px 0; } }
.flowstrip .lk { animation-name: dash12; }

/* risk gates: sequential scan glow */
.gate { animation: scan 9s ease-in-out infinite; }
.gates .gate:nth-child(1) { animation-delay: 0s; } .gates .gate:nth-child(2) { animation-delay: .6s; } .gates .gate:nth-child(3) { animation-delay: 1.2s; }
.gates .gate:nth-child(4) { animation-delay: 1.8s; } .gates .gate:nth-child(5) { animation-delay: 2.4s; } .gates .gate:nth-child(6) { animation-delay: 3s; }
.gates .gate:nth-child(7) { animation-delay: 3.6s; } .gates .gate:nth-child(8) { animation-delay: 4.2s; } .gates .gate:nth-child(9) { animation-delay: 4.8s; }
.gates .gate:nth-child(10) { animation-delay: 5.4s; } .gates .gate:nth-child(11) { animation-delay: 6s; } .gates .gate:nth-child(12) { animation-delay: 6.6s; }
@keyframes scan { 0%, 6%, 100% { border-color: var(--border); box-shadow: none; } 3% { border-color: rgba(52,211,153,0.7); box-shadow: 0 0 0 3px rgba(52,211,153,0.15), 0 0 24px rgba(52,211,153,0.25); } }

/* brokers: hub and spoke */
.hub-ill { margin: 28px auto 0; max-width: 760px; }
.hub-ill svg { width: 100%; height: auto; display: block; }
.hub-ill .spoke { fill: none; stroke: url(#hub-edge); stroke-width: 2; stroke-dasharray: 4 7; animation: fan-flow 1.3s linear infinite; }
.hub-ill .spoke.in { animation-direction: reverse; }

/* section accent hairline + card hover lift */
.section-head h2 { position: relative; }
.card, .benefit, .step, .villain, .tier, .venue { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover, .benefit:hover, .step:hover, .villain:hover, .venue:hover { transform: translateY(-2px); border-color: rgba(59,130,246,0.45); box-shadow: 0 20px 50px -30px rgba(59,130,246,0.55); }
.final .bot-wrap { margin: 0 auto 10px; }
@media (prefers-reduced-motion: reduce) { .orbit-wrap .o1, .orbit-wrap .o2, .orbit-wrap .node, .steps::before, .flowstrip .lk, .gate, .hub-ill .spoke { animation: none; } }

/* v3g fixes: opaque step cards so the connector only shows in the gaps */
.steps .step { background: linear-gradient(180deg, #101a2e, #0b1220); }
