/* CADENCE marketing site. Dark-first, no build step. */
:root {
  color-scheme: dark;
  --bg: #070d1c;
  --bg-2: #0b1428;
  --surface: #0f1a33;
  --surface-2: #142140;
  --line: rgba(148, 170, 210, 0.13);
  --line-2: rgba(148, 170, 210, 0.24);
  --text: #e8eef9;
  --muted: #a3b2ca;
  --dim: #7184a3;
  --blue: #5fa8ff;
  --violet: #a47bff;
  --cyan: #56cbe6;
  --green: #3ccf8e;
  --amber: #f2b84b;
  --rose: #f47aa8;
  --grad: linear-gradient(95deg, #5fa8ff 0%, #a47bff 100%);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px rgba(140, 120, 255, .7); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(140, 120, 255, .85); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(164,123,255,.6); background: rgba(164,123,255,.08); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 28, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 17px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Shared bits ---------- */
.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;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: .7;
}
.grid-bg.faint { opacity: .35; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.tag { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.tag-dim { color: var(--dim); }
.tag-sm { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60,207,142,.55); } 70% { box-shadow: 0 0 0 9px rgba(60,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,142,0); } }

.ai { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ai-v { background: rgba(164,123,255,.13); color: var(--violet); }
.ai-b { background: rgba(95,168,255,.13); color: var(--blue); }
.ai-c { background: rgba(86,203,230,.13); color: var(--cyan); }
.ai-g { background: rgba(60,207,142,.13); color: var(--green); }
.ai-a { background: rgba(242,184,75,.13); color: var(--amber); }
.ai-p { background: rgba(244,122,168,.13); color: var(--rose); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(124, 108, 255, .16), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow-box {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #cfd9ff; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(20, 33, 64, .55); margin-bottom: 28px;
}
.eyebrow-box .sq { width: 7px; height: 7px; background: var(--grad); border-radius: 2px; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
h1 .grad { display: inline; padding-bottom: .06em; }
.lede { margin-top: 26px; font-size: 18.5px; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.mini-cards li { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 26, 51, .6); display: flex; flex-direction: column; gap: 6px; }
.mini-cards .mi { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(95,168,255,.12); color: var(--blue); margin-bottom: 6px; }
.mini-cards .mi .ic { width: 18px; height: 18px; }
.mini-cards strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mini-cards span:not(.mi) { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Octopus diagram */
.brain-card {
  margin: 0; position: relative;
  border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 33, 64, .75), rgba(11, 20, 40, .75));
  padding: 22px 18px 16px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}
.octo { width: 100%; height: auto; display: block; overflow: visible; }
.octo text { font-family: var(--font); text-anchor: middle; dominant-baseline: central; }
.octo .links path { stroke: rgba(164, 140, 255, .45); stroke-width: 1.6; }
.octo .arms path { stroke-width: 2; opacity: .55; }
.octo .flow path { stroke: #dfe6ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 22; opacity: .85; animation: flow 2.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.octo .chip rect { fill: #121e3b; stroke-width: 1.2; }
.octo .chip-v rect { stroke: rgba(164, 123, 255, .55); }
.octo .chip-b rect { stroke: rgba(95, 168, 255, .55); }
.octo .chip text { fill: #e3e9f8; font-size: 15px; font-weight: 600; }
.octo .ring { fill: none; stroke: rgba(164, 140, 255, .55); stroke-width: 1.2; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.octo .core-sm { fill: #b9c6ff; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.octo .core-lg { fill: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.octo .sys rect { fill: #16244a; stroke: rgba(150, 175, 255, .5); stroke-width: 1.2; }
.octo .sys text { fill: #fff; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.octo .ends circle { fill: #121e3b; stroke: rgba(95, 168, 255, .55); stroke-width: 1.3; }
.octo .ends use { color: #cfe0ff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.octo .end-labels text { fill: var(--muted); font-size: 15px; font-weight: 600; }
.brain-card figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.brain-card figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-v { background: var(--violet); } .dot-b { background: var(--blue); } .dot-g { background: var(--green); }

/* Stats */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 20, 40, .7); }
.stats div { padding: 24px 26px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats div:first-child dt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 112px 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg-2); }
.sec > .wrap { position: relative; }
.sec-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.07; font-weight: 800; letter-spacing: -0.035em; }
.sec-head > p { color: var(--muted); font-size: 16.5px; }

/* Shift */
.shift { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.shift-card { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: var(--surface); display: flex; flex-direction: column; }
.shift-card.new { border-color: rgba(164,123,255,.35); background: radial-gradient(ellipse at 50% 45%, rgba(124,108,255,.14), transparent 65%), var(--surface); }
.line-steps { margin: 26px 0 26px 6px; border-left: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.line-steps li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.line-steps li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--dim); }
.line-steps li.bad { color: #ff9a9a; font-weight: 600; }
.line-steps li.bad::before { border-color: #ff7b7b; background: #3a1620; }
.shift-foot { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 18px; }
.shift-foot strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }

.cycle { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 18px auto 22px; }
.cycle-ring { position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(164,123,255,.35); }
.cycle-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--violet); animation: spin 6s linear infinite; }
.cycle-core { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.cycle-core .ic { color: var(--violet); width: 22px; height: 22px; margin-bottom: 4px; }
.cycle-core strong { font-size: 15px; line-height: 1.3; }
.cycle-core span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; background: #18264a; border: 1px solid rgba(150,175,255,.35); color: #dbe3ff; white-space: nowrap;
}
/* six nodes on a circle of radius 36% around centre */
.n1 { left: 50%; top: 14%; }
.n2 { left: 81.2%; top: 32%; }
.n3 { left: 81.2%; top: 68%; }
.n4 { left: 50%; top: 86%; border-color: rgba(60,207,142,.55); color: #c9f5e0; }
.n5 { left: 18.8%; top: 68%; }
.n6 { left: 18.8%; top: 32%; }

/* Second brain layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.layer-num { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 600; position: absolute; top: 24px; right: 26px; }
.layer h3 { font-size: 24px; font-weight: 700; }
.layer-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 6px 0 14px; font-weight: 600; }
.layer:nth-child(2) .layer-sub { color: var(--blue); }
.layer:nth-child(3) .layer-sub { color: var(--cyan); }
.layer > p:not(.layer-sub) { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #d6deef; background: rgba(255,255,255,.02); }

.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.outcomes li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; }
.outcomes li + li { border-left: 1px solid var(--line); }
.oi { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
.oi .ic { width: 19px; height: 19px; }
.outcomes strong { display: block; font-size: 16px; font-weight: 700; }
.outcomes span:not(.oi) { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Product walkthrough */
.walk { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.walk-steps { display: flex; flex-direction: column; gap: 8px; position: relative; }
.walk-steps button {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  color: var(--text); font: inherit; cursor: pointer; transition: background .2s, border-color .2s;
}
.walk-steps button:hover { background: rgba(255,255,255,.03); }
.walk-steps button[aria-selected="true"] { background: var(--surface-2); border-color: rgba(164,123,255,.4); }
.ws-num { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; }
.walk-steps button[aria-selected="true"] .ws-num { background: var(--grad); border-color: transparent; color: #fff; }
.ws-txt strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.ws-txt small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.walk-steps button[aria-selected="false"] .ws-txt strong { color: #c9d3e6; }

.frame { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #0c1427; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); position: sticky; top: 92px; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0e1830; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a5f; }
.frame-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-body { position: relative; aspect-ratio: 1440 / 900; background: #f8fafc; }
.panel { position: absolute; inset: 0; }
.panel[hidden] { display: none; }
.panel img { width: 100%; height: 100%; object-fit: cover; object-position: top left; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.configs { position: absolute; inset: 0; background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 16px; overflow: auto; animation: fade .35s ease; }
.configs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.configs-head h3 { font-size: 20px; font-weight: 700; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.pill-ok { background: rgba(60,207,142,.12); color: var(--green); border: 1px solid rgba(60,207,142,.3); }
.pill-v { background: rgba(164,123,255,.15); color: #cdb8ff; border: 1px solid rgba(164,123,255,.35); margin-left: 8px; font-size: 11px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.configs table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.configs th, .configs td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.configs thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; background: rgba(255,255,255,.02); }
.configs tbody th { font-weight: 600; }
.configs tbody tr:last-child th, .configs tbody tr:last-child td { border-bottom: 0; }
.configs td { font-variant-numeric: tabular-nums; color: #d6deef; }
.configs tr.sel { background: rgba(164,123,255,.08); }
.risk { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.risk.low { background: rgba(60,207,142,.12); color: var(--green); }
.risk.med { background: rgba(242,184,75,.14); color: var(--amber); }
.why { border-left: 2px solid var(--violet); padding: 6px 0 6px 16px; }
.why p:not(.tag-sm) { color: #d6deef; font-size: 15px; font-style: italic; }
.configs-foot { color: var(--muted); font-size: 13.5px; margin-top: auto; }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--surface); transition: border-color .2s, transform .2s; }
.agent:hover { border-color: var(--line-2); transform: translateY(-2px); }
.agent h3 { font-size: 18px; font-weight: 700; margin-top: 18px; }
.agent .role { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 4px 0 12px; font-weight: 600; }
.agent p:not(.role) { color: var(--muted); font-size: 15px; }

.chat { margin: 22px 0 0; border: 1px solid rgba(164,123,255,.3); border-radius: 20px; padding: 28px; background: radial-gradient(ellipse at 0% 0%, rgba(124,108,255,.12), transparent 55%), var(--surface); display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.chat-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; counter-reset: c; }
.chat-log li { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 15px; }
.chat-log .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; text-align: center; font-weight: 600; }
.chat-log li:last-child { border-color: rgba(60,207,142,.35); background: rgba(60,207,142,.06); }

/* Who */
.who { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.who-main { border: 1px solid var(--line); border-radius: 20px; padding: 32px 32px 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; display: flex; flex-direction: column; }
.who-main h3 { font-size: 28px; font-weight: 800; margin: 10px 0 12px; letter-spacing: -.03em; }
.who-main > p:not(.tag) { color: var(--muted); font-size: 15.5px; max-width: 520px; }
.who-main img { margin-top: 28px; border-radius: 12px 12px 0 0; border: 1px solid var(--line-2); border-bottom: 0; }
.who-side { display: flex; flex-direction: column; gap: 16px; }
.who-card { flex: 1; display: flex; gap: 18px; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--surface); }
.who-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.who-card p:not(.tag-sm) { color: var(--muted); font-size: 15px; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line); gap: 1px; }
.cap { background: var(--surface); padding: 28px; }
.cap .ic { width: 24px; height: 24px; color: var(--blue); }
.cap:nth-child(3n+2) .ic { color: var(--violet); }
.cap:nth-child(3n) .ic { color: var(--cyan); }
.cap h3 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; }
.cap p { color: var(--muted); font-size: 14.5px; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.stack li { font-family: var(--mono); font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); color: #c6d1e6; background: rgba(255,255,255,.02); }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.road::before { content: ""; position: absolute; top: 33px; left: 34px; right: calc((100% - 84px) / 4 - 34px); height: 1px; background: linear-gradient(90deg, var(--green), var(--blue) 40%, var(--violet)); opacity: .5; }
.road li { position: relative; display: flex; flex-direction: column; }
.road-ic { position: relative; width: 68px; height: 68px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--blue); margin-bottom: 22px; }
.road li:first-child .road-ic { border-color: rgba(60,207,142,.5); color: var(--green); }
.road li:last-child .road-ic { border-style: dashed; color: var(--violet); }
.road-ic .ic { width: 26px; height: 26px; }
.road-ic em { position: absolute; top: 5px; right: 7px; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.road h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.road p { color: var(--muted); font-size: 15px; flex: 1; }
.status { align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 7px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-now { color: var(--green); background: rgba(60,207,142,.1); border: 1px solid rgba(60,207,142,.35); }
.s-next { color: var(--blue); background: rgba(95,168,255,.08); border: 1px dashed rgba(95,168,255,.45); }
.s-vision { color: var(--violet); background: rgba(164,123,255,.08); border: 1px dashed rgba(164,123,255,.45); }

/* Responsible AI */
.resp { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; gap: 1px; background: var(--line); }
.resp article { background: var(--bg); padding: 28px; display: flex; flex-direction: column; }
.resp h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.resp p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tag-box { align-self: flex-start; margin-top: 20px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(86,203,230,.4); background: rgba(86,203,230,.06); }

/* CTA */
.cta { background: linear-gradient(180deg, var(--bg-2), #0d1835); overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.cta-lede { color: var(--muted); font-size: 18px; margin: 18px 0 30px; max-width: 480px; }
.cta-copy { padding-top: 12px; }
.next-steps { display: grid; gap: 18px; max-width: 460px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.next-steps span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--violet); border: 1px solid rgba(164,123,255,.4); background: rgba(164,123,255,.08); }
.next-steps p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.next-steps strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* Demo form */
.form-card { position: relative; padding: 32px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(15,26,51,.75); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.demo-form > .field, .demo-form > .choices { margin-top: 18px; }
.field label, .choices legend { font-size: 14px; font-weight: 500; color: #d6deef; }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(7,13,28,.7); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: rgba(164,123,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(164,123,255,.22); }
.field input[aria-invalid="true"] { border-color: var(--rose); }
.field .err { color: var(--rose); font-size: 13px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 9px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); transition: color .15s, border-color .15s, background .15s; }
.choice:hover span { border-color: rgba(164,123,255,.5); color: var(--text); }
.choice input:checked + span { color: #fff; border-color: rgba(164,123,255,.75); background: rgba(164,123,255,.18); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot .btn[disabled] { opacity: .7; cursor: progress; }
.form-note { color: var(--dim); font-size: 13px; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--rose); }
.form-status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-done { text-align: center; padding: 40px 12px; outline: none; }
.done-ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(60,207,142,.45); background: rgba(60,207,142,.1); }
.done-ic .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.form-done h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-done p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.foot-brand strong { color: var(--text); letter-spacing: .06em; }
.foot-copy { color: var(--muted); font-size: 14px; }

/* Reveal on scroll (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .brain-card { max-width: 640px; }
  .walk { grid-template-columns: 1fr; }
  .walk-steps { display: grid; grid-template-columns: repeat(2, 1fr); }
  .frame { position: relative; top: 0; }
  .chat { grid-template-columns: 1fr; gap: 16px; }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .road::before { display: none; }
  .resp { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .outcomes li:nth-child(3) { border-left: 0; }
  .outcomes li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px; background: rgba(7,13,28,.97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .sec { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .shift { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 28px; }
  .eyebrow-box { font-size: 10.5px; letter-spacing: .1em; padding: 10px 12px; }
  .lede { font-size: 17px; }
  .mini-cards { grid-template-columns: 1fr; }
  .brain-card { padding: 14px 8px 12px; border-radius: 16px; }
  .walk-steps { grid-template-columns: 1fr; }
  .walk-steps button { padding: 12px 12px; }
  .ws-txt small { display: none; }
  .walk-steps button[aria-selected="true"] .ws-txt small { display: block; }
  .agents, .caps, .resp, .road, .outcomes, .stats { grid-template-columns: 1fr; }
  .stats div + div, .outcomes li + li { border-left: 0; border-top: 1px solid var(--line); }
  .chat { padding: 20px 16px; }
  .chat-log li { grid-template-columns: 1fr; gap: 6px; }
  .chat-log .who { justify-self: start; }
  .configs { padding: 18px; position: relative; }
  .frame-body:has(.panel:not([hidden]) .configs) { aspect-ratio: auto; }
  .panel:has(.configs) { position: relative; }
  .who-main { padding: 24px 20px 0; }
  .who-card { padding: 20px; }
  .shift-card { padding: 24px 20px; }
  .node { font-size: 10px; padding: 5px 8px; }
  .cycle-core strong { font-size: 13px; }
  .cycle-core span { display: none; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 22px 18px; border-radius: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
