:root {
  color-scheme: light;
  --paper: #fafaf8;
  --paper-strong: #ffffff;
  --ink: #1c1a22;
  --ink-soft: #625f67;
  --line: #dedcd7;
  --line-dark: #c7c3bb;
  --accent: #3945c6;
  --accent-soft: #eef0ff;
  --terminal: #11110f;
  --terminal-soft: #20201d;
  --terminal-text: #eeeee8;
  --success: #21824d;
  --warning: #9b5a10;
  --radius: 14px;
  --shadow: 0 22px 65px rgba(40, 35, 28, 0.11);
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

code,
pre,
.eyebrow,
.result-label,
.demo-kicker,
.proof-strip strong,
.workflow-steps > li > span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #4c4950;
  font-size: 14px;
  font-weight: 560;
}

nav a,
.header-cta {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: var(--paper-strong);
  font-size: 14px;
  font-weight: 650;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.page-grid,
.page-section {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  min-height: 760px;
  padding: 78px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  vertical-align: middle;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 520;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(52px, 5.3vw, 76px);
  line-height: 0.99;
}

h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.install-block > p {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.command-copy {
  width: min(100%, 560px);
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--terminal);
  color: var(--terminal-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(17, 17, 15, 0.12);
}

.command-copy code {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-copy code span {
  margin-right: 9px;
  color: #8f96ff;
}

.copy-label {
  flex: 0 0 auto;
  color: #aaa9a3;
  font-size: 12px;
}

.command-copy:hover,
.command-copy:focus-visible {
  background: #1b1b18;
}

.hero-notes {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-notes span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--success);
  font-weight: 800;
}

.demo-wrap {
  min-width: 0;
}

.demo-kicker {
  margin: 0 8px 10px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.status-light {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-light::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(33, 130, 77, 0.1);
}

.terminal-window {
  overflow: hidden;
  border: 1px solid #d8d6d0;
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.terminal-bar {
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f2;
  color: #737068;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.terminal-bar > :last-child {
  justify-self: end;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dedbd4;
}

.window-dots span:first-child {
  background: #ff765e;
}

.window-dots span:nth-child(2) {
  background: #efb44a;
}

.window-dots span:nth-child(3) {
  background: #35b867;
}

.scan-form {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.scan-form > label {
  display: block;
  margin-bottom: 8px;
  color: #5f5c56;
  font-size: 12px;
  font-weight: 700;
}

.scan-controls {
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: white;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.scan-controls:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 69, 198, 0.11);
}

.prompt {
  padding-left: 15px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.scan-controls input {
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.scan-controls button {
  align-self: stretch;
  margin: 5px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.scan-controls button:hover,
.scan-controls button:focus-visible {
  background: #2d37aa;
}

.scan-controls button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.field-help,
.field-error {
  margin: 8px 0 0;
  color: #6f6b65;
  font-size: 11px;
}

.field-error {
  color: #b52d2d;
}

.field-error:empty {
  display: none;
}

.presets {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.presets button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f8f6;
  color: #66635d;
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.presets button:hover,
.presets button:focus-visible,
.presets button[aria-pressed="true"] {
  border-color: #afb4f0;
  background: var(--accent-soft);
  color: var(--accent);
}

.terminal-output {
  min-height: 116px;
  padding: 16px 20px;
  background: var(--terminal);
  color: var(--terminal-text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
}

.command-line {
  display: flex;
  gap: 9px;
  color: #d9d8d2;
}

.command-line > span {
  color: #8f96ff;
}

.terminal-lines {
  min-height: 52px;
  margin-top: 6px;
  color: #aaa9a3;
}

.terminal-line {
  display: flex;
  gap: 8px;
  animation: terminal-in 180ms ease both;
}

.terminal-line .ok {
  color: #61c98a;
}

.terminal-line .dim {
  color: #92928c;
}

.terminal-line .accent {
  color: #9fa5ff;
}

.terminal-cursor::after {
  content: "▋";
  margin-left: 5px;
  color: #9fa5ff;
  animation: blink 900ms steps(1) infinite;
}

.result-panel {
  min-height: 320px;
  padding: 20px;
  background: var(--paper-strong);
  transition: opacity 180ms ease, transform 180ms ease;
}

.result-panel.is-loading {
  opacity: 0.42;
  transform: translateY(3px);
}

.result-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.result-label {
  color: #6f6b65;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-head h2 {
  margin: 2px 0 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.result-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f1;
}

.result-tabs button {
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #77736d;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.result-tabs button[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 26, 34, 0.08);
}

.findings-list {
  border-top: 1px solid var(--line);
}

.finding {
  min-height: 49px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.finding-category {
  color: #7a766f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.finding-provider {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-meta {
  color: #74716b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
}

.finding-meta.high {
  color: var(--success);
}

.finding-meta.medium {
  color: var(--warning);
}

.evidence-callout {
  margin-top: 15px;
  padding: 11px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
}

.evidence-callout span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}

.evidence-callout p {
  margin: 0;
  color: #514f62;
  font-size: 10px;
  line-height: 1.5;
}

.json-view {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--terminal);
}

.json-view pre {
  max-height: 230px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #c9c8c2;
  font-size: 10px;
  line-height: 1.55;
}

.json-copy {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 6px 8px;
  border: 1px solid #393936;
  border-radius: 6px;
  background: #20201d;
  color: #b8b7b1;
  cursor: pointer;
  font-size: 9px;
}

.json-copy:hover,
.json-copy:focus-visible {
  border-color: #777cdb;
  color: white;
}

.proof-strip {
  width: 100%;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-strip > div {
  min-height: 116px;
  padding: 25px 7vw;
  display: flex;
  align-items: center;
  gap: 18px;
}

.proof-strip > div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  color: var(--accent);
  font-size: 31px;
  font-weight: 500;
}

.proof-strip span {
  max-width: 190px;
  color: var(--ink-soft);
  font-size: 12px;
}

.page-section {
  padding: 130px 0;
}

.section-intro {
  max-width: 730px;
  margin-bottom: 64px;
}

.section-intro h2,
.closing h2 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
}

.section-intro > p:last-child,
.closing > p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 18px;
}

.workflow-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.workflow-steps li {
  min-height: 116px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 24px;
  transition: padding-left 180ms ease, background 180ms ease;
}

.workflow-steps li:hover {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.workflow-steps > li > span {
  color: var(--accent);
  font-size: 13px;
}

.workflow-steps h3 {
  margin-bottom: 5px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.workflow-steps p {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.signals {
  border-top: 1px solid var(--line);
}

.signal-table {
  border-top: 1px solid var(--line-dark);
}

.signal-row {
  min-height: 74px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.7fr;
  align-items: center;
  gap: 22px;
}

.signal-row code {
  font-size: 12px;
}

.signal-header {
  min-height: 48px;
  color: #7b7770;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.confidence {
  display: inline-block;
  min-width: 102px;
  padding: 5px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.confidence.high {
  color: var(--success);
}

.confidence.medium {
  color: var(--warning);
}

.closing {
  margin-bottom: 88px;
  padding: 90px 7vw;
  border-radius: 18px;
  background: var(--terminal);
  color: var(--terminal-text);
}

.closing .eyebrow {
  color: #9fa5ff;
}

.closing > p {
  color: #aaa9a3;
}

.closing > a {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid #9fa5ff;
  color: #c5c9ff;
  font-size: 14px;
  font-weight: 650;
}

footer {
  min-height: 150px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  color: #6e6a64;
  font-size: 11px;
}

footer p {
  margin: 0;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid #e0b56d;
  border-radius: 9px;
  background: #fff7e7;
  color: #6d4813;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.docs-page {
  background: #f7f7f5;
}

.docs-page .site-header {
  position: sticky;
  top: 0;
}

.docs-page nav a[aria-current="page"] {
  color: var(--accent);
}

.docs-shell {
  width: min(1320px, calc(100vw - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 78px;
  height: calc(100dvh - 78px);
  padding: 52px 0 36px;
}

.docs-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.docs-sidebar-inner > p {
  margin-bottom: 19px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.docs-toc {
  display: grid;
  gap: 2px;
}

.docs-toc a {
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: #65615c;
  font-size: 12px;
  line-height: 1.35;
}

.docs-toc a:hover,
.docs-toc a:focus-visible,
.docs-toc a[aria-current="location"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  display: grid;
  gap: 4px;
}

.sidebar-note strong {
  font-size: 11px;
}

.sidebar-note span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.sidebar-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 2px;
}

.sidebar-note a:hover,
.sidebar-note a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.docs-content {
  min-width: 0;
  max-width: 900px;
  padding: 76px 0 120px;
}

.docs-hero {
  min-height: min(620px, calc(100dvh - 78px));
  padding: 42px 0 72px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.docs-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(54px, 6.6vw, 88px);
  line-height: 0.97;
}

.docs-hero > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.docs-primary-action,
.docs-secondary-action {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.docs-primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
}

.docs-secondary-action {
  border: 1px solid var(--line-dark);
  background: white;
  color: var(--ink);
}

.docs-primary-action:hover,
.docs-primary-action:focus-visible {
  background: #2d37aa;
}

.docs-secondary-action:hover,
.docs-secondary-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.docs-primary-action:active,
.docs-secondary-action:active,
.code-block-head button:active {
  transform: translateY(1px);
}

.docs-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.docs-section:last-child {
  border-bottom: 0;
}

.docs-section-heading {
  max-width: 700px;
  margin-bottom: 38px;
}

.docs-section-heading > span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.docs-section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
}

.docs-section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.docs-section > h3 {
  margin: 40px 0 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.docs-section > p {
  max-width: 720px;
  color: var(--ink-soft);
}

.docs-section code {
  padding: 0.12em 0.3em;
  border-radius: 4px;
  background: #ececea;
  color: #34313a;
  font-size: 0.88em;
}

.code-block {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid #2d2d29;
  border-radius: 12px;
  background: var(--terminal);
  color: var(--terminal-text);
  box-shadow: 0 14px 34px rgba(28, 26, 22, 0.08);
}

.code-block-head {
  min-height: 42px;
  padding: 0 13px 0 16px;
  border-bottom: 1px solid #30302c;
  background: #1b1b18;
  color: #aaa9a3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.code-block-head button {
  padding: 6px 8px;
  border: 1px solid #3e3e39;
  border-radius: 6px;
  background: #242420;
  color: #d2d1ca;
  cursor: pointer;
  font-size: 9px;
}

.code-block-head button:hover,
.code-block-head button:focus-visible {
  border-color: #8f96ff;
  color: white;
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.65;
}

.code-block code,
.docs-section .code-block code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.docs-callout {
  margin: 30px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}

.docs-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
}

.docs-callout p {
  margin: 0;
  color: #514f62;
  font-size: 13px;
  line-height: 1.6;
}

.option-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.option-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.option-group h3 {
  margin-bottom: 18px;
  font-size: 16px;
}

.option-group dl,
.option-group dd {
  margin: 0;
}

.option-group dl {
  display: grid;
  gap: 18px;
}

.option-group dl > div {
  display: grid;
  gap: 5px;
}

.option-group dt {
  font-size: 12px;
}

.option-group dd {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.exit-codes {
  margin-top: 32px;
  padding: 22px;
  border-radius: 12px;
  background: #eeeeeb;
}

.exit-codes h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.exit-codes > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 12px;
}

.exit-codes > div + div {
  margin-top: 10px;
}

.docs-example-grid {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.docs-example-grid > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.docs-example-grid span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.docs-example-grid code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-clusters {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 42px;
}

.field-clusters article {
  padding-top: 16px;
  border-top: 2px solid var(--line-dark);
}

.field-clusters h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

.field-clusters p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.evidence-levels {
  display: grid;
  gap: 12px;
}

.evidence-levels article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 24px;
  align-items: center;
}

.evidence-levels article > div {
  display: grid;
  gap: 3px;
}

.evidence-levels span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.evidence-levels strong {
  font-size: 14px;
}

.evidence-levels p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.relationship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.relationship-grid > div {
  min-width: 0;
  padding: 16px;
  border-radius: 10px;
  background: #eeeeeb;
}

.relationship-grid code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 10px;
}

.relationship-grid p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.safety-columns {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.safety-columns article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.safety-columns h3 {
  margin-bottom: 16px;
  font-size: 17px;
}

.safety-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.safety-columns li + li {
  margin-top: 8px;
}

.limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.limit-grid article {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.limit-grid strong {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 34px;
  font-weight: 500;
}

.limit-grid span {
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.caveat-list {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 42px;
}

.caveat-list article {
  padding-top: 15px;
  border-top: 1px solid var(--line-dark);
}

.caveat-list h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.caveat-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.docs-end {
  margin-top: 72px;
  padding: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.docs-end h2 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.docs-end a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid rgba(57, 69, 198, 0.28);
  outline-offset: 3px;
}

@keyframes terminal-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .demo-wrap {
    width: min(100%, 720px);
  }

  .proof-strip > div {
    padding-inline: 4vw;
  }

  .docs-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }

  .relationship-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --page: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 48px;
    gap: 42px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .terminal-bar {
    grid-template-columns: 1fr auto;
  }

  .terminal-bar > :last-child {
    display: none;
  }

  .scan-controls {
    grid-template-columns: auto 1fr;
  }

  .scan-controls button {
    grid-column: 1 / -1;
    min-height: 40px;
    margin-top: 0;
  }

  .finding {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 9px;
  }

  .finding-meta {
    grid-column: 2;
    padding-bottom: 9px;
  }

  .evidence-callout {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip > div {
    min-height: 86px;
    padding: 20px 24px;
  }

  .proof-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-section {
    padding: 88px 0;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-intro h2,
  .closing h2 {
    font-size: 43px;
  }

  .workflow-steps li {
    grid-template-columns: 48px 1fr;
  }

  .signal-header {
    display: none;
  }

  .signal-row {
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signal-row > span:nth-child(2) {
    font-weight: 650;
  }

  .closing {
    width: calc(100% - 32px);
    margin-bottom: 48px;
    padding: 64px 24px;
  }

  footer {
    padding: 32px 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .docs-page .site-header {
    position: relative;
  }

  .docs-shell {
    width: 100%;
    display: block;
  }

  .docs-sidebar {
    position: sticky;
    z-index: 5;
    top: 0;
    height: auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 247, 245, 0.96);
    backdrop-filter: blur(16px);
  }

  .docs-sidebar-inner > p,
  .sidebar-note {
    display: none;
  }

  .docs-toc {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .docs-toc::-webkit-scrollbar {
    display: none;
  }

  .docs-toc a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .docs-toc a[aria-current="location"] {
    border-color: var(--accent);
  }

  .docs-content {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 0 0 76px;
  }

  .docs-hero {
    min-height: auto;
    padding: 64px 0 72px;
  }

  .docs-hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .docs-hero > p:not(.eyebrow) {
    font-size: 16px;
  }

  .docs-section {
    padding: 72px 0;
    scroll-margin-top: 56px;
  }

  .docs-section-heading h2 {
    font-size: 40px;
  }

  .option-groups,
  .field-clusters,
  .safety-columns,
  .limit-grid,
  .caveat-list {
    grid-template-columns: 1fr;
  }

  .docs-example-grid,
  .evidence-levels article {
    grid-template-columns: 1fr;
  }

  .docs-example-grid code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .code-block {
    margin-inline: -4px;
  }

  .code-block pre {
    padding: 16px;
    font-size: 11px;
  }

  .docs-end {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
