/* Armadius company profile. Tokens follow /app (assistant/src/index.css):
   near-white paper, solid ink, color reserved for status. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-opsz-normal-BwkfbSeq.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-opsz-normal-DpK-iCPk.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fefefe;
  --surface: #f7f7f7;
  --surface-2: #f0f0f0;
  --line: #e8e8e8;
  --line-strong: #d4d4d4;
  --ink: #1a1a1a;
  --ink-2: #525252;
  --ink-3: #8a8a8a;

  --live: #16a34a;
  --live-soft: #e8f6ed;
  --work: #2563eb;
  --work-soft: #eaf0fd;
  --wait: #b45309;
  --wait-soft: #fbf1e4;
  --err: #dc2626;

  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --t-xs: 13px;
  --t-sm: 14px;
  --t-base: 15px;
  --t-lg: 17px;
  --t-xl: 22px;
  --t-2xl: 32px;
  --t-3xl: 48px;

  --sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-md);
  font-size: var(--t-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-md);
  font: 500 var(--t-sm)/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #333; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-sm { height: 34px; padding: 0 14px; font-size: var(--t-xs); }
.btn-lg { height: 46px; padding: 0 22px; font-size: var(--t-base); }
.arrow { transition: transform .15s; }
a:hover > .arrow { transform: translateX(2px); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink);
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Status ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
.dot.live { background: var(--live); box-shadow: 0 0 0 3px var(--live-soft); }
.dot.work { background: var(--work); box-shadow: 0 0 0 3px var(--work-soft); }
.dot.wait { background: var(--wait); box-shadow: 0 0 0 3px var(--wait-soft); }
.dot.err { background: var(--err); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill.live { background: var(--live-soft); color: #11803a; }
.pill.work { background: var(--work-soft); color: #1d4fc4; }
.pill.wait { background: var(--wait-soft); color: var(--wait); }
.pill .dot { width: 6px; height: 6px; box-shadow: none; background: var(--ink-3); }
.pill.live .dot { background: var(--live); }
.pill.work .dot { background: var(--work); }
.pill.wait .dot { background: var(--wait); }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: .02em;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 254, 254, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-word { font-weight: 650; font-size: 15px; letter-spacing: .14em; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-right: auto; }
.nav-links a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px;
  font-size: var(--t-sm); color: var(--ink-2); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .i-close { display: none; }
.nav.open .nav-toggle .i-open { display: none; }
.nav.open .nav-toggle .i-close { display: block; }
.nav-panel { display: contents; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px -24px rgba(0,0,0,.25);
  }
  .nav.open .nav-panel { display: block; }
  .nav-links { flex-direction: column; gap: 0; margin: 0 0 16px; }
  .nav-links a { display: flex; height: 48px; padding: 0 4px; font-size: var(--t-lg); color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:hover { background: none; }
  .nav-cta .btn { width: 100%; height: 44px; font-size: var(--t-base); }
  .nav-cta { flex-direction: column; align-items: stretch; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--ink); border-radius: 1px; }
.h2 { font-size: var(--t-3xl); }
.h2 .muted { color: var(--ink-3); }
.lead { margin-top: 18px; font-size: var(--t-lg); color: var(--ink-2); max-width: 600px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: var(--t-xs); color: var(--ink-2);
}
.hero h1 { margin-top: 24px; font-size: 60px; max-width: 12ch; }
.hero h1 .muted { display: block; color: var(--ink-3); }
.hero-sub { margin-top: 24px; max-width: 480px; font-size: var(--t-lg); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--ink-3); }

/* Flow canvas */
.canvas {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background-color: var(--surface);
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 9px 9px;
  padding: 18px;
}
.canvas-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 4px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.canvas-bar .run { display: inline-flex; align-items: center; gap: 8px; }
.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 40px; column-gap: 14px; padding: 6px 4px 8px; }
.flow-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-edges path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-edges path.on { stroke: var(--ink-3); }
.flow-edges path.flowing { stroke: var(--work); }
.flow-edges path.done { stroke: var(--live); }

.node {
  position: relative; z-index: 1;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 6px 18px -12px rgba(0,0,0,.12);
  transition: border-color .25s, box-shadow .25s, opacity .25s;
}
.node[data-state="work"] { border-color: #b9cdf7; box-shadow: 0 0 0 3px var(--work-soft), 0 6px 18px -12px rgba(0,0,0,.12); }
.node[data-state="live"] { border-color: #bfe3cc; }
.node-head { display: flex; align-items: center; gap: 10px; }
.node-icon {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
}
.node-icon.ink { background: var(--ink); color: var(--paper); }
.node-icon svg { width: 15px; height: 15px; }
.node-title { font-size: var(--t-sm); font-weight: 600; line-height: 1.2; }
.node-kind { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.node-state { margin-left: auto; }
.node-head > div { min-width: 0; }
.node-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Tool nodes are narrow: status shown as a dot only (legend explains colors). */
.n-tool1 .node-state, .n-tool2 .node-state { width: 22px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
.n-tool1 .node-state .dot, .n-tool2 .node-state .dot { width: 8px; height: 8px; }
.node-body {
  margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface);
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2); min-height: 2.9em;
}
.node-body b { color: var(--ink); font-weight: 600; }
.n-in { grid-column: 1 / span 4; }
.n-agent { grid-column: 2 / span 4; }
.n-tool1 { grid-column: 1 / span 3; }
.n-tool2 { grid-column: 4 / span 3; }
.n-out { grid-column: 2 / span 5; }
.canvas-foot {
  display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 4px 0; margin-top: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.canvas-foot span { display: inline-flex; align-items: center; gap: 6px; }
.canvas-foot .dot { width: 6px; height: 6px; box-shadow: none; }

/* Dashed live links, as in /app */
@keyframes link-flow { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.link-live { stroke-dasharray: 2 6; animation: link-flow 1.4s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper);
  overflow: hidden; transition: border-color .2s;
}
.card:hover { border-color: var(--line-strong); }
.card-visual {
  position: relative; height: 240px; border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
  display: grid; place-items: center; padding: 24px; overflow: hidden;
}
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-text { color: var(--ink-2); max-width: 46ch; }
.card .link { margin-top: auto; padding-top: 8px; }
.card .link::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

/* Mini mockups */
.mini {
  width: 100%; max-width: 340px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.2); font-size: 12px;
}
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-label { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.mini-strong { font-weight: 600; font-size: 13px; }

/* Assistant mini: chip -> agent */
.m-assist { display: flex; align-items: center; gap: 0; width: 100%; max-width: 360px; }
.m-chip {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 12px;
}
.m-chip .av { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.m-chip .av svg { width: 13px; height: 13px; }
.m-link { flex: 1; height: 12px; min-width: 24px; }
.m-link line { stroke: var(--live); stroke-width: 2; stroke-linecap: round; }
.m-agent { flex: none; width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.2); }
.m-agent .top { display: flex; align-items: center; gap: 8px; }
.m-agent .glyph { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.m-agent .pill { margin-top: 10px; }
.m-agent .meta { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* Enterprise mini: capability grid */
.m-ent { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 340px; }
.m-ent .cap { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.m-ent .cap b { display: block; font-size: 12.5px; font-weight: 600; }
.m-ent .cap span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.m-ent .sector { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 12px; color: var(--ink-2); background: rgba(254,254,254,.7); }

/* Flow debugger mini: trace rows */
.m-trace { width: 100%; max-width: 360px; }
.m-trace .tr { display: grid; grid-template-columns: 92px 1fr 20px; align-items: center; gap: 10px; padding: 7px 12px; }
.m-trace .tr + .tr { border-top: 1px solid var(--line); }
.m-trace .nm { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-trace .bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); }
.m-trace .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--ink-3); }
.m-trace .bar i.w { background: var(--work); }
.m-trace .bar i.a { background: var(--wait); }
.m-trace .bar i.l { background: var(--live); }

/* Virtual office mini */
.m-office { width: 100%; max-width: 340px; }
.m-office svg { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); image-rendering: pixelated; shape-rendering: crispEdges; }
.m-office .cap-live { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--paper); }
.step { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.step p { color: var(--ink-2); }
.step-visual { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-height: 132px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; }
.opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.opt.sel .radio { border: 4px solid var(--ink); }
.opt .mono { color: var(--ink-3); font-size: 10.5px; }
.qr-row { display: flex; align-items: center; gap: 12px; }
.qr { width: 64px; height: 64px; flex: none; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); padding: 5px; }
.qr svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.token { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.bubble.in { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.bubble-meta { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

.catalog { margin-top: 16px; display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.catalog > div { padding: 22px 24px; }
.catalog > div + div { border-left: 1px solid var(--line); }
.catalog .intro { background: var(--surface); }
.catalog h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.catalog p { margin-top: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.catalog .glyph { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.byok { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--t-sm); color: var(--ink-2); }
.byok .badge { background: var(--paper); }

/* ---------- Enterprise ---------- */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.cap-card .ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.cap-card .ic svg { width: 18px; height: 18px; }
.cap-card h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; }
.cap-card p { font-size: var(--t-sm); color: var(--ink-2); }
.sectors { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--surface); }
.sectors h3 { font-size: var(--t-lg); font-weight: 600; }
.sectors p { margin-top: 4px; font-size: var(--t-sm); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: var(--t-sm); }
.section-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-cta .mono { color: var(--ink-3); }

/* ---------- Governance grid ---------- */
.gov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gov-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 30px 34px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.gov-cell.wide { grid-column: span 2; }
.gov-cell .ic { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: var(--paper); }
.gov-cell .ic svg { width: 18px; height: 18px; }
.gov-cell h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; }
.gov-cell p { font-size: var(--t-sm); color: var(--ink-2); max-width: 46ch; }
.gov-cell .src { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.iso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.iso .box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px; background: var(--surface); }
.iso .box .mono { color: var(--ink-3); font-size: 10.5px; }
.iso .inst { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; font-weight: 500; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- Closing CTA ---------- */
.closing { padding: 136px 0; border-top: 1px solid var(--line); text-align: center; background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.closing h2 { font-size: var(--t-3xl); max-width: 18ch; margin: 0 auto; }
.closing p { margin: 20px auto 0; max-width: 520px; color: var(--ink-2); font-size: var(--t-lg); }
.closing .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .tagline { margin-top: 14px; color: var(--ink-2); max-width: 32ch; }
.footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer .brand { color: var(--ink); }
.footer .brand:hover { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: var(--t-xs); }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 104px; }
.legal .col { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: var(--t-3xl); }
.legal .updated { margin-top: 16px; color: var(--ink-3); }
.legal .intro { margin-top: 24px; font-size: var(--t-lg); color: var(--ink-2); }
.legal .toc { margin: 36px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.legal .toc h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.legal .toc ol { list-style: decimal; padding-left: 20px; columns: 2; column-gap: 32px; font-size: var(--t-sm); }
.legal .toc li { margin: 3px 0; break-inside: avoid; color: var(--ink-3); }
.legal .toc a { color: var(--ink-2); text-decoration: none; }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }
.legal article h2 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal article h3 { font-size: var(--t-base); font-weight: 600; margin: 20px 0 6px; }
.legal article p, .legal article li { color: var(--ink-2); line-height: 1.7; }
.legal article p + p { margin-top: 12px; }
.legal article ul, .legal article ol { padding-left: 22px; margin: 10px 0; }
.legal article li { margin: 6px 0; }
.legal article li b, .legal article p b { color: var(--ink); font-weight: 600; }
.legal article a { color: var(--ink); text-underline-offset: 3px; }
.legal .callout { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: var(--t-sm); }
.legal .callout.warn { background: var(--wait-soft); border-color: #f0dcc0; color: #7a3d06; }
.legal .callout.warn b { color: #7a3d06; }
.legal .disclaimer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 52px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog .intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .catalog > div:nth-child(2) { border-left: 0; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .gov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gov-cell.wide { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .h2, .closing h2, .legal h1 { font-size: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero { padding: 48px 0 72px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: var(--t-base); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .h2, .closing h2, .legal h1 { font-size: var(--t-2xl); }
  .lead, .closing p, .legal .intro { font-size: var(--t-base); }
  .canvas { padding: 12px; border-radius: var(--r-lg); }
  .flow { column-gap: 8px; row-gap: 30px; padding: 4px 0 6px; }
  .n-in, .n-agent, .n-out { grid-column: 1 / -1; }
  .n-tool1 { grid-column: 1 / span 3; }
  .n-tool2 { grid-column: 4 / span 3; }
  .node { padding: 10px; }
  .node-icon { width: 24px; height: 24px; }
  .node-head { gap: 8px; }
  .n-tool1 .node-body, .n-tool2 .node-body { font-size: 11.5px; }
  .n-tool1 .node-icon, .n-tool2 .node-icon { display: none; }
  .card-visual { height: 210px; padding: 16px; }
  .card-body { padding: 20px; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .catalog .intro { border-bottom: 0; }
  .gov { grid-template-columns: minmax(0, 1fr); }
  .gov-cell { min-height: 0; padding: 26px 22px; }
  .iso { grid-template-columns: minmax(0, 1fr); }
  .closing { padding: 88px 0; }
  .closing .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal { padding: 48px 0 72px; }
  .legal .toc ol { columns: 1; }
  .m-agent { width: 124px; padding: 10px; }
  .m-chip { padding: 7px 8px; }
  .m-chip .av { display: none; }
  .m-link { min-width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-live, .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
