/* Solvane design system: dark, evidence-first, amber accent. */
:root {
  --bg: #060a13;
  --bg-2: #0a111e;
  --surface: #0e1726;
  --surface-2: #132034;
  --surface-3: #192a43;
  --line: #1e2c45;
  --line-2: #2a3c5c;
  --ink: #e9eef6;
  --ink-2: #b6c2d6;
  --muted: #7d8aa2;
  --sun: #ffb547;
  --sun-2: #ffd08a;
  --sun-ink: #241500;
  --sun-glow: rgba(255, 181, 71, 0.16);
  --teal: #38d9b4;
  --ok: #38d9b4;
  --warn: #ffb547;
  --bad: #ff6b6b;
  --crit: #ff4d8d;
  --info: #6ea8ff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  /* legacy aliases used by the app */
  --night: var(--bg);
  --night-2: var(--surface);
  --night-line: var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, canvas, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
select, input, textarea { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
::selection { background: var(--sun); color: var(--sun-ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.amber { color: var(--sun); }
.grad { background: linear-gradient(100deg, var(--sun) 10%, #ff8a5c 60%, var(--crit)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(6, 10, 19, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.2px; }
.brand span { color: var(--sun); font-weight: 600; }
.brand-mark { width: 28px; height: 28px; }
.nav-main { display: flex; gap: 22px; }
.nav-main a, .nav-side a.link { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-main a:hover, .nav-main a.active, .nav-side a.link:hover { color: #fff; }
.nav-side { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 11px; }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 30px rgba(255, 181, 71, 0.25); }
.btn-sun:hover { background: var(--sun-2); }
.btn-ghost, .btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover, .btn-line:hover { background: var(--surface-2); border-color: #3a5078; }
.btn-dark { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { background: #22375a; }
.btn-text { padding: 11px 6px; color: var(--ink); }
.btn-text:hover { color: var(--sun); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(19, 32, 52, 0.7); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 340px at 50% 30%, rgba(255, 181, 71, 0.18), transparent 70%),
    radial-gradient(700px 400px at 80% 60%, rgba(255, 77, 141, 0.10), transparent 70%),
    radial-gradient(800px 500px at 15% 70%, rgba(110, 168, 255, 0.10), transparent 70%);
}
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; margin: 22px auto 22px; max-width: 980px; font-weight: 700; letter-spacing: -0.035em; }
.hero p.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 680px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-art { position: relative; margin: 56px auto 0; max-width: 1240px; padding: 0 24px; }
.float-tag { position: absolute; z-index: 3; font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(6,10,19,0.88); border: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.float-tag b { background: var(--sun); color: var(--sun-ink); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.float-tag.alt b { background: var(--crit); color: #2b0012; }

.app-window { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02); overflow: hidden; text-align: left; }
.app-window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.app-window-bar .dots { display: flex; gap: 6px; }
.app-window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-window-bar .live { color: var(--teal); font-family: var(--mono); font-size: 12px; }
.app-window-bar .live::before { content: "●"; margin-right: 6px; }
.app-window iframe { width: 100%; height: 640px; border: 0; display: block; background: var(--bg); }
.caption { color: var(--muted); font-size: 13.5px; text-align: center; margin: 14px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(255,255,255,0.03); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.06; margin: 14px 0 16px; font-weight: 700; letter-spacing: -0.03em; }
.section p.sub, .section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.prose p { color: var(--ink-2); font-size: 19px; line-height: 1.65; margin: 0 0 20px; }
.prose p:first-child { color: var(--ink); font-size: 22px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--sun); }
.card .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--sun-glow); border: 1px solid rgba(255,181,71,0.3); display: grid; place-items: center; color: var(--sun); font-weight: 700; font-family: var(--mono); font-size: 13px; }
.card .q { font-family: var(--display); font-size: 18px; color: #fff; margin: 10px 0; line-height: 1.3; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--sun); text-decoration: none; font-size: 14px; font-weight: 600; }

/* Problem diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.flow-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.flow-item b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); font-size: 13px; }
.flow-core { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, rgba(255,181,71,0.25), rgba(255,181,71,0.04) 65%, transparent 70%); border: 1px solid rgba(255,181,71,0.35); box-shadow: 0 0 80px rgba(255,181,71,0.15); }
.flow-core b { font-family: var(--display); font-size: 20px; display: block; }
.flow-core span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-out .flow-item { border-color: rgba(255,181,71,0.25); }
.flow-note { color: var(--muted); font-size: 13.5px; margin-top: 22px; font-family: var(--mono); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.step { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; }
.step .n { font-family: var(--mono); color: var(--sun); font-size: 13px; }
.step h3 { margin: 10px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.step::after { content: "→"; position: absolute; right: -12px; top: 22px; color: var(--line-2); font-size: 16px; }
.step:last-child::after { display: none; }

/* ---------- Workflow demo (homepage) ---------- */
.demo { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.demo-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.demo-step { background: none; border: 0; color: var(--muted); padding: 14px 14px; text-align: left; border-right: 1px solid var(--line); position: relative; }
.demo-step:last-child { border-right: 0; }
.demo-step .n { font-family: var(--mono); font-size: 11.5px; display: block; }
.demo-step .t { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.demo-step.active { background: var(--sun-glow); }
.demo-step.active .n { color: var(--sun); }
.demo-step.active .t { color: #fff; }
.demo-step .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--sun); width: 0; }
.demo-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 470px; }
.demo-media { background: #03060c; border-right: 1px solid var(--line); display: flex; align-items: center; }
.demo-stage { position: relative; width: 100%; }
.demo-stage canvas { width: 100%; height: auto; }
.demo-panel { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.demo-panel h3 { margin: 0; font-size: 21px; }
.demo-panel .hint { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; }

.overlay-box { position: absolute; border: 2px solid var(--sun); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 0 18px rgba(255,181,71,0.35); transition: opacity 0.3s ease; }
.overlay-box .tag { position: absolute; top: -22px; left: -2px; background: var(--sun); color: var(--sun-ink); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; font-family: var(--mono); }
.overlay-box.sev-critical { border-color: var(--crit); box-shadow: 0 0 18px rgba(255,77,141,0.4); }
.overlay-box.sev-critical .tag { background: var(--crit); color: #2b0012; }
.overlay-box.sev-high { border-color: #ff8a5c; }
.overlay-box.sev-high .tag { background: #ff8a5c; color: #2b0a00; }
.overlay-box.dim { opacity: 0.25; }
.overlay-box.hl { box-shadow: 0 0 0 3px rgba(255,255,255,0.85); }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--sun), transparent); box-shadow: 0 0 18px var(--sun); top: 0; }

.mini-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 13.5px; }
.mini-card .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini-card .title { font-weight: 600; color: #fff; }
.mini-card .meta { color: var(--muted); font-size: 12.5px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td { padding: 7px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip-low, .chip-resolved, .chip-confirmed { background: rgba(56,217,180,0.12); color: #6ee9cb; border-color: rgba(56,217,180,0.25); }
.chip-medium, .chip-persisting { background: rgba(255,181,71,0.12); color: var(--sun-2); border-color: rgba(255,181,71,0.28); }
.chip-high { background: rgba(255,138,92,0.14); color: #ffab8a; border-color: rgba(255,138,92,0.3); }
.chip-critical { background: rgba(255,77,141,0.14); color: #ff8fb7; border-color: rgba(255,77,141,0.32); }
.chip-new { background: rgba(110,168,255,0.14); color: #a9c8ff; border-color: rgba(110,168,255,0.3); }
.chip-proposed { background: var(--surface-3); color: var(--ink-2); }
.chip-dismissed { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.chip-p1 { background: var(--crit); color: #2b0012; }
.chip-p2 { background: #ff8a5c; color: #2b0a00; }
.chip-p3 { background: var(--sun); color: var(--sun-ink); }
.chip-p4 { background: var(--surface-3); color: var(--ink-2); }
.chip-ai { background: var(--sun-glow); color: var(--sun); border-color: rgba(255,181,71,0.35); }
.chip-pilot { background: rgba(56,217,180,0.12); color: #6ee9cb; border-color: rgba(56,217,180,0.3); }
.chip-preview { background: rgba(110,168,255,0.12); color: #a9c8ff; border-color: rgba(110,168,255,0.3); }

/* ---------- Capability demos ---------- */
.cap { padding: 90px 0; border-top: 1px solid rgba(255,255,255,0.04); }
.cap:first-of-type { border-top: 0; }
.cap h3.cap-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin: 12px 0 14px; letter-spacing: -0.03em; }
.cap p.cap-text { color: var(--ink-2); font-size: 17px; margin: 0 0 20px; }
.cap-panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.compare-wrap { position: relative; border-radius: 12px; overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; background: #03060c; }
.compare-wrap canvas { width: 100%; height: auto; }
.compare-top { position: absolute; inset: 0; overflow: hidden; }
.compare-top canvas { height: auto; max-width: none; } /* width set in JS to the full frame */
.compare-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.6); }
.compare-handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; }
.compare-label { position: absolute; top: 10px; font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(6,10,19,0.8); border: 1px solid var(--line-2); }
.annot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.annot div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.annot i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.annot span.r { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-row div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat-row span { display: block; font-size: 12px; color: var(--muted); }
.stat-row b { font-family: var(--display); font-size: 22px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--sun); color: var(--sun-ink); font-weight: 600; }
.qa-q { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qa-q button { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; text-align: left; }
.qa-q button.on { border-color: var(--sun); color: var(--sun); }
.qa-a { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 160px; font-size: 15px; color: var(--ink-2); white-space: pre-line; }
.qa-a .cite { display: inline-block; font-family: var(--mono); font-size: 11.5px; background: var(--sun-glow); color: var(--sun); border-radius: 4px; padding: 0 5px; margin: 0 1px; }
.qa-ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0; font-size: 14px; }
.kv div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv div:nth-child(odd) { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.sitemap svg { width: 100%; height: auto; }
.sitemap .blk { cursor: pointer; transition: opacity 0.15s; }
.sitemap .blk:hover { opacity: 0.85; }
.map-detail { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.map-detail b { color: #fff; }

/* ---------- Tech passes ---------- */
.passes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pass { border-left: 2px solid var(--line-2); padding: 4px 0 4px 18px; }
.pass .num { font-family: var(--mono); color: var(--sun); font-size: 13px; }
.pass h3 { margin: 8px 0 6px; font-size: 18px; }
.pass p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.note-line { margin-top: 36px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { display: flex; flex-direction: column; gap: 8px; }
.module h3 { margin: 6px 0 0; }
.module.cta { background: linear-gradient(160deg, rgba(255,181,71,0.16), var(--surface)); border-color: rgba(255,181,71,0.35); }

/* Industries strip */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.industries div { background: var(--bg-2); padding: 18px; }
.industries b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.industries span { color: var(--muted); font-size: 13px; }

/* Shift table */
.shift { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shift-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.shift-row:last-child { border-bottom: 0; }
.shift-row > div { padding: 16px 22px; font-size: 15.5px; }
.shift-row > div:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,107,107,0.5); }
.shift-row > div:last-child { color: #fff; background: rgba(255,181,71,0.05); }
.shift-row .arrow { color: var(--sun); text-align: center; padding: 0; }
.shift-head > div { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-decoration: none !important; color: var(--muted) !important; }

/* Security grid */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sec-grid div { background: var(--surface); padding: 20px; }
.sec-grid b { display: block; font-family: var(--display); margin-bottom: 4px; }
.sec-grid span { color: var(--muted); font-size: 14px; }

/* Pilot steps */
.pilot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pilot .card .n { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--mono); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; font-size: 16px; max-width: 760px; }

/* Final CTA */
.final { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 50% 60%, rgba(255,181,71,0.18), transparent 70%); }
.final h2 { font-size: clamp(32px, 4.6vw, 58px); margin: 0 auto 26px; max-width: 900px; line-height: 1.05; }

/* Page hero (inner pages) */
.page-hero { padding: 90px 0 50px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 600px; z-index: -1; background: radial-gradient(600px 300px at 30% 40%, rgba(255,181,71,0.14), transparent 70%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; margin: 18px 0 18px; max-width: 900px; letter-spacing: -0.035em; }
.page-hero p { color: var(--ink-2); font-size: 19px; max-width: 700px; margin: 0; }
.anchor-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.anchor-nav a { text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--ink-2); }
.anchor-nav a:hover { border-color: var(--sun); color: var(--sun); }
.detail { padding: 70px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.detail h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 10px 0 14px; }
.detail p { color: var(--ink-2); font-size: 17px; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.form input, .form select, .form textarea { padding: 11px 12px; border-radius: 10px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { background: rgba(56,217,180,0.1); border: 1px solid rgba(56,217,180,0.35); color: #9ff0dc; }
.form-msg.err { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.35); color: #ffb3b3; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--bg-2); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.foot-grid a { display: block; text-decoration: none; color: var(--ink-2); margin-bottom: 8px; }
.foot-grid a:hover { color: var(--sun); }
.foot-grid p { color: var(--muted); max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin-top: 8px; }
.billing-toggle button { background: none; border: 0; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.billing-toggle button.on { background: var(--sun); color: var(--sun-ink); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plan.featured { border: 1px solid var(--sun); position: relative; box-shadow: 0 0 0 1px var(--sun), 0 30px 80px rgba(255,181,71,0.12); }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 22px; background: var(--sun); color: var(--sun-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .for { color: var(--ink-2); font-size: 14px; margin: 0; min-height: 42px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.price small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 14px; border: 1px solid var(--line); }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); }
.compare thead th { background: var(--surface-2); font-size: 13px; color: var(--ink); }
.compare .grp td { background: var(--bg-2); font-weight: 600; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--mono); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.calc input[type="range"] { width: 100%; accent-color: var(--sun); background: none; border: 0; }

/* ---------- App ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(6,10,19,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); color: var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: #fff; }
body.embed .nav { display: none; }
body.embed .app-shell { min-height: 100vh; }
body.embed .copilot { right: 12px; bottom: 12px; }

.app-shell { display: grid; grid-template-columns: 290px 1fr; min-height: calc(100vh - 60px); }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.side h4 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 500; }
.side select { width: 100%; padding: 9px 10px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi b { display: block; font-size: 19px; font-family: var(--display); }
.kpi span { font-size: 12px; color: var(--muted); }
.block-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.block-tile { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px; text-align: left; font-size: 12px; position: relative; color: var(--ink-2); }
.block-tile b { display: block; font-size: 13px; color: var(--ink); }
.block-tile.sel { outline: 2px solid var(--sun); outline-offset: 1px; }
.block-tile .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.block-tile .dot.low { background: var(--ok); } .block-tile .dot.medium { background: var(--warn); }
.block-tile .dot.high { background: #ff8a5c; } .block-tile .dot.critical { background: var(--crit); }
.block-tile .ml { font-size: 10.5px; color: var(--bad); font-weight: 700; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

.main { padding: 18px 24px 40px; min-width: 0; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.stepper button { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left; color: var(--muted); }
.stepper button .n { font-family: var(--mono); font-size: 11px; display: block; }
.stepper button b { color: var(--ink-2); font-size: 15px; }
.stepper button.on { border-color: var(--sun); background: var(--sun-glow); color: var(--sun); }
.stepper button.on b { color: #fff; }
.stepper button .count { float: right; font-size: 11px; background: var(--surface-3); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; }
.stepper button.on .count { background: var(--sun); color: var(--sun-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.panel .desc { color: var(--ink-2); margin: 0 0 14px; font-size: 14px; }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.dropzone { display: block; border: 2px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-2); background: var(--bg-2); cursor: pointer; }
.dropzone.drag { border-color: var(--sun); background: var(--sun-glow); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.thumb .body { padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.thumb select { padding: 4px 6px; }
.status { font-size: 12.5px; color: var(--muted); }
.status.err { color: var(--bad); }
.status.ok { color: var(--ok); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--sun); border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.review { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.img-stage { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.img-stage img { width: 100%; }
.findings { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow: auto; padding-right: 4px; }
.finding { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--bg-2); }
.finding.hl { border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-glow); }
.finding.dismissed { opacity: 0.55; }
.finding .top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.finding .id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.finding h4 { margin: 6px 0 4px; font-size: 15px; }
.finding p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.finding .evid { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--line-2); padding-left: 8px; }
.finding .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.finding select { padding: 4px 6px; font-size: 12.5px; }
.loss { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data td:first-child { white-space: nowrap; }
table.data th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg-2); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--mono); }
table.data select, table.data input { padding: 4px 6px; font-size: 13px; max-width: 150px; }
.score-bar { height: 6px; border-radius: 3px; background: var(--surface-3); width: 80px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--crit)); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spark { width: 100%; height: auto; }
.notice { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.notice.warn { background: rgba(255,181,71,0.08); color: var(--sun-2); border: 1px solid rgba(255,181,71,0.3); }
.notice.info { background: rgba(110,168,255,0.08); color: #c3d8ff; border: 1px solid rgba(110,168,255,0.28); }

.copilot { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 380px; max-width: calc(100vw - 32px); }
.copilot-fab { margin-left: auto; display: flex; }
.copilot-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); display: none; flex-direction: column; height: 480px; margin-bottom: 10px; overflow: hidden; }
.copilot.open .copilot-box { display: flex; }
.copilot-head { padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.copilot-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.msg { padding: 9px 12px; border-radius: 10px; max-width: 92%; white-space: pre-wrap; }
.msg.user { background: var(--sun); color: var(--sun-ink); align-self: flex-end; }
.msg.bot { background: var(--bg-2); border: 1px solid var(--line); align-self: flex-start; }
.copilot form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.copilot input { flex: 1; padding: 9px 10px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.suggest button { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }

.report { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .nav, .app-shell, .copilot { display: none !important; }
  .report { display: block; padding: 20px; }
  .report table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .report th, .report td { border: 1px solid #ccc; padding: 6px; text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 10px 24px 18px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 8px 0; text-decoration: none; color: var(--ink-2); }
  .steps, .passes { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split, .grid-2, .demo-body, .review, .calc, .cols-2, .flow { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .flow-core { margin: 0 auto; }
  .grid-3, .grid-4, .sec-grid, .pilot { grid-template-columns: 1fr 1fr; }
  .demo-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-window iframe { height: 560px; }
  .section { padding: 80px 0; }
  .float-tag { display: none; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hero-art { padding: 0 16px; }
  .nav-side .link, .nav-side .btn-ghost { display: none; }
  .steps, .passes, .grid-3, .grid-4, .sec-grid, .pilot, .modules, .plans { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .demo-steps, .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .demo-step { padding: 10px 6px; }
  .demo-step .t, .stepper button b { font-size: 11.5px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .shift-row { grid-template-columns: 1fr 24px 1fr; }
  .shift-row > div { padding: 12px 10px; font-size: 13.5px; }
  .form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 8px 6px; }
  table.data { display: block; overflow-x: auto; }
  .kv { grid-template-columns: 105px 1fr; }
  .app-window iframe { height: 520px; }
  .app-window-bar .dots, .app-window-bar b { display: none; }
  .nav .wrap { gap: 10px; }
  .nav .chip, .nav-links a, #api-status { display: none; }
  .nav-links { gap: 8px; }
  .section { padding: 64px 0; }
  .cap { padding: 64px 0; }
}
