/* Layout: one 1120px column; the loop diagram is the single bold element, everything else is quiet type on a cool off-white. */
:root {
  --bg: #F6F8F6;
  --surface: #FFFFFF;
  --surface-2: #ECF1EE;
  --fg: #111917;
  --muted: #5A6963;
  --line: #D6DED9;
  --line-strong: #B9C5BF;
  --accent: #0F6E56;
  --accent-ink: #0A4C3B;
  --accent-soft: #DCEFE7;
  --signal: #C9711A;
  --signal-soft: #F8E7D3;
  --mono-bg: #0F1715;
  --mono-fg: #D7E2DD;
  --mono-dim: #7C8F88;
  --mono-accent: #5FD9AE;
  --mono-signal: #F0A350;
  --shadow: 0 1px 2px rgba(17,25,23,.05), 0 12px 32px -16px rgba(17,25,23,.18);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1211; --surface: #121B18; --surface-2: #182320; --fg: #E6ECE9; --muted: #96A59F;
    --line: #22302B; --line-strong: #34463F; --accent: #4FD1A6; --accent-ink: #8FE6C8; --accent-soft: #143A2F;
    --signal: #F0A350; --signal-soft: #3D2A14; --mono-bg: #080D0C; --mono-fg: #D7E2DD;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1211; --surface: #121B18; --surface-2: #182320; --fg: #E6ECE9; --muted: #96A59F;
  --line: #22302B; --line-strong: #34463F; --accent: #4FD1A6; --accent-ink: #8FE6C8; --accent-soft: #143A2F;
  --signal: #F0A350; --signal-soft: #3D2A14; --mono-bg: #080D0C; --mono-fg: #D7E2DD;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; font-weight: 700; max-width: 24ch; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: 18px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 8px;
  font-weight: 600; font-size: 15.5px; line-height: 1; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease; font-family: var(--body);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .btn-primary { color: #06120E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06120E; } }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.nav .btn { padding: 10px 16px; font-size: 14.5px; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: .98; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; margin-top: 22px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.loop-figure { position: relative; margin: 0; }
.loop-figure svg { width: 100%; display: block; }
.loop-figure .node-label { font-family: var(--mono); font-size: 15px; font-weight: 500; fill: var(--fg); }
.loop-figure .node-sub { font-family: var(--body); font-size: 13px; fill: var(--muted); }
.loop-figure .ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.loop-figure .ring-dash { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 10; stroke-linecap: round; opacity: .9; }
.loop-figure .node { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.loop-figure .node.signal { stroke: var(--signal); }
.loop-figure .node-dot { fill: var(--accent); }
.loop-figure .node-dot.signal { fill: var(--signal); }
.loop-figure .center-big { font-family: var(--display); font-weight: 700; font-size: 34px; fill: var(--fg); letter-spacing: -0.02em; }
.loop-figure .center-small { font-family: var(--mono); font-size: 12px; fill: var(--muted); letter-spacing: .1em; }
.loop-figure .runner { fill: var(--accent); }
.loop-figure .runner-halo { fill: var(--accent); opacity: .18; }
@media (prefers-reduced-motion: reduce) { .loop-figure .runner, .loop-figure .runner-halo { display: none; } .loop-figure .ring-dash { animation: none; } }
@keyframes dashmove { to { stroke-dashoffset: -16; } }
.loop-figure .ring-dash { animation: dashmove 1.2s linear infinite; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .loop-figure { max-width: 600px; margin: 0 auto; }
}

/* Problem */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 48px; }
.col h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.col p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.col .tag { font-family: var(--mono); font-size: 12.5px; color: var(--signal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
@media (max-width: 820px) { .cols-3 { grid-template-columns: 1fr; gap: 32px; } }

/* Model strip (hero) */
.models { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.models .label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.models .row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.models .row span { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--muted); letter-spacing: -0.01em; }

/* Platform pillars */
.pillars { display: grid; gap: 0; margin-top: 56px; }
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.pillar .eyebrow { margin-bottom: 14px; }
.pillar h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; max-width: 20ch; }
.pillar .lead { font-size: 16.5px; margin-top: 12px; }
.pillar-items { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.pillar-items li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.pillar-items li:last-child { border-bottom: 1px solid var(--line); }
.pillar-items b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 3px; }
@media (max-width: 920px) { .pillar { grid-template-columns: 1fr; } }

/* Mono panels (product mockups) */
.panel { background: var(--mono-bg); color: var(--mono-fg); border-radius: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--mono-dim); font-size: 12px; }
.panel-bar span:last-child { letter-spacing: .08em; text-transform: uppercase; }
.panel pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; white-space: pre; }
.panel .k { color: var(--mono-dim); }
.panel .a { color: var(--mono-accent); }
.panel .s { color: var(--mono-signal); }
.panel .w { color: #fff; }
@media (max-width: 480px) { .panel { font-size: 12px; } .panel pre { padding: 14px 14px 16px; } }

/* Use cases */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.cell { background: var(--surface); padding: 28px 26px; }
.cell h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.cell p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.cell .glyph { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; display: block; }
@media (max-width: 920px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uc-grid { grid-template-columns: 1fr; } }

/* Partner + security */
.two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.card .tag { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.three-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
@media (max-width: 820px) { .two-cards { grid-template-columns: 1fr; } .three-cells { grid-template-columns: 1fr; } }

/* Compare */
.table-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tbody th { font-weight: 600; width: 26%; position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead th:first-child { position: sticky; left: 0; z-index: 2; }
.table-hint { display: none; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
@media (max-width: 820px) { .table-hint { display: block; } }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.yes { color: var(--accent-ink); font-weight: 600; }
td.no { color: var(--muted); }
td.farloop { background: var(--accent-soft); }
thead th.farloop { background: var(--accent); color: #fff; }
:root[data-theme="dark"] thead th.farloop { color: #06120E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) thead th.farloop { color: #06120E; } }

/* FAQ */
.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { color: var(--muted); padding: 0 0 22px; max-width: 65ch; font-size: 16px; }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.contact-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.email-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.email-row .email { font-family: var(--mono); font-size: 17px; font-weight: 500; word-break: break-all; }
.copy-btn { background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 12px; font-family: var(--body); font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--fg); }
.copy-btn:hover { border-color: var(--fg); }
.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.contact-card .btn { justify-self: start; }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }

/* Early access page */
.ea { padding-block: clamp(48px, 7vw, 96px); }
.ea .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ea h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.ea .lead { margin-top: 18px; }
.ea-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.ea-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; color: var(--muted); }
.ea-list li b { color: var(--fg); font-weight: 600; display: block; }
.ea-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.ea-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field .hint { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; line-height: 1.4; width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6963' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--signal); }
.field .err { color: var(--signal); font-size: 13px; display: none; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-foot .btn { min-width: 200px; justify-content: center; }
.form-foot .fine { color: var(--muted); font-size: 13.5px; }
.form-error { grid-column: 1 / -1; display: none; background: var(--signal-soft); color: var(--fg); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; }
.form-error.show { display: block; }
.success { display: none; text-align: left; }
.success.show { display: block; }
.success .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 20px; }
.success .mark svg { width: 24px; height: 24px; }
.success h2 { font-size: 28px; }
.success p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.success .btn { margin-top: 24px; }
@media (max-width: 920px) { .ea .wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }


/* ---------- How it works: three stages ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.stage { padding-top: 22px; border-top: 2px solid var(--accent); min-width: 0; }
.stage .num { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.stage h3 { font-size: 22px; font-weight: 700; line-height: 1.22; text-wrap: balance; }
.stage p { color: var(--muted); margin-top: 12px; font-size: 16px; }
@media (max-width: 820px) { .stages { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Who it's for: checklist ---------- */
.who h2 { text-wrap: balance; }
.who .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.text-link { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--accent-ink); }
.text-link svg { width: 16px; height: 16px; vertical-align: -3px; margin-left: 6px; transition: transform .15s; }
.text-link:hover svg { transform: translateX(3px); }
.checklist { list-style: none; margin: 0; padding: 4px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.checklist li:first-child { border-top: 0; }
.checklist .check { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.checklist b { display: block; color: var(--fg); font-weight: 600; font-size: 17.5px; margin-bottom: 4px; }
@media (max-width: 920px) { .who .wrap { grid-template-columns: 1fr; } .checklist { padding: 4px 20px; } }

/* ---------- Early access: what happens next ---------- */
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.steps li b { color: var(--fg); font-weight: 600; display: block; }
