:root {
  color-scheme: dark;
  --ink: #eef2eb;
  --muted: #a9b6ac;
  --line: #2a372e;
  --accent: #a1c69b;
  --soft: #111712;
  --tint: #172119;
  --high: #f0b28e;
  --base: #0b0e0c;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 100%/1.55 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--base);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--base); }
h1, h2, h3, p, pre, dl, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(80rem, calc(100% - 5rem)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: inline-block; margin: .5rem; }
.top { border-bottom: 1px solid var(--line); background: #0a0d0b; }
.nav, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.65rem; }
.nav nav { display: flex; flex-wrap: wrap; gap: .45rem 1.65rem; }
.nav nav a, .nav-repo, .footer > a:last-child { font-size: .9375rem; color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav-repo:hover, .footer > a:last-child:hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: .95rem; }
.nav-report { border: 1px solid #405447; padding: .46rem .75rem; border-radius: .22rem; color: var(--ink); font-size: .875rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-report:hover { background: var(--tint); }
.brand { display: inline-flex; align-items: center; gap: .63rem; text-decoration: none; color: var(--ink); font-size: 1.125rem; font-weight: 720; white-space: nowrap; letter-spacing: -.035em; }
.mark, .brand-mark { display: inline-block; flex: none; width: 1.68rem; height: 1.68rem; position: relative; color: var(--accent); }
.mark::before, .brand-mark::before { content: ""; position: absolute; inset: 0; background: currentColor; clip-path: polygon(0 23%, 22% 0, 45% 0, 45% 14%, 28% 14%, 14% 28%, 14% 72%, 28% 86%, 45% 86%, 45% 100%, 22% 100%, 0 77%, 0 23%, 100% 23%, 100% 77%, 78% 100%, 55% 100%, 55% 86%, 72% 86%, 86% 72%, 86% 28%, 72% 14%, 55% 14%, 55% 0, 78% 0, 100% 23%); }
.mark::after, .brand-mark::after { content: ""; position: absolute; inset: 30% 21%; background: currentColor; clip-path: polygon(0 0, 22% 0, 22% 36%, 78% 36%, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 64%, 22% 64%, 22% 100%, 0 100%); }
.hero { background: var(--base); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(3.6rem, 6.4vw, 6.45rem); }
.hero-copy { min-width: 0; }
h1 { font-size: clamp(3rem, 5.5vw, 5.25rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 690; text-wrap: balance; }
.lede { max-width: 33rem; margin-top: 1.55rem; color: #bfc9be; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .5rem 1.03rem; border: 1px solid transparent; border-radius: .22rem; font-weight: 680; font-size: .9375rem; text-decoration: none; }
.button.primary { background: var(--accent); color: #101911; }
.button.primary:hover { background: #bbdab4; }
.button.quiet { border-color: #465b49; color: var(--ink); background: #101711; }
.button.quiet:hover { background: var(--tint); }
.hero-stage { min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--soft); }
.example-heading, .example-finding-meta { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
.example-heading { padding: .75rem 1.15rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; font-weight: 620; }
.example-code, .example-finding { border-left: 2px solid transparent; }
.example-code { display: grid; gap: .5rem; padding: 1rem 1.15rem; background: #0d120e; }
.example-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; color: var(--muted); font-size: .875rem; }
.example-file code { color: var(--ink); }
.example-code pre { min-width: 0; overflow-x: auto; padding: .65rem .7rem; background: #211d16; color: var(--high); font-size: clamp(.75rem, 1.2vw, .9375rem); }
.example-finding { display: grid; gap: .5rem; padding: 1.05rem 1.15rem 1.2rem; border-top: 1px solid var(--line); }
.example-finding-meta a { color: var(--muted); }
.example-finding h2 { font-size: 1.23rem; letter-spacing: -.025em; }
.example-finding p { color: var(--muted); font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .example-code { animation: scan-source 5.8s ease-in-out infinite; }
  .example-finding { animation: scan-finding 5.8s ease-in-out infinite; }
}
@keyframes scan-source {
  0%, 35%, 100% { border-left-color: transparent; }
  12%, 25% { border-left-color: var(--accent); }
}
@keyframes scan-finding {
  0%, 35%, 100% { border-left-color: transparent; }
  52%, 83% { border-left-color: var(--high); }
}
.scope { border-bottom: 1px solid var(--line); background: #111712; }
.scope .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2.5rem; padding-block: 1.1rem; }
.scope h2 { color: var(--muted); font-size: .875rem; font-weight: 570; letter-spacing: normal; }
.scope ul { display: flex; flex-wrap: wrap; gap: .75rem 1.8rem; list-style: none; padding: 0; margin: 0; }
.scope li { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 620; white-space: nowrap; }
.scope img { display: block; flex: none; width: 1.5rem; height: 1.5rem; object-fit: contain; color-scheme: dark; }
.section { padding-block: clamp(3.6rem, 7vw, 6.5rem); }
.section-heading { max-width: 41rem; }
h2 { font-size: clamp(2.25rem, 4.15vw, 3.95rem); line-height: 1.06; letter-spacing: -.063em; font-weight: 710; text-wrap: balance; }
.section-heading > p { margin-top: .8rem; color: var(--muted); font-size: 1.0625rem; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.85rem; border: 1px solid var(--line); }
.case { display: grid; grid-template-rows: auto auto auto 1fr auto; align-items: start; gap: .78rem; padding: clamp(1rem, 2.1vw, 1.65rem); background: var(--soft); min-width: 0; }
.case + .case { border-left: 1px solid var(--line); }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: .45rem; color: var(--accent); font: .875rem/1.4 var(--mono); }
h3 { font-size: 1.18rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 690; }
.case pre { color: #c2d9be; padding: .65rem .72rem; background: #0a100c; border-left: 2px solid #557858; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 4.55rem; }
code, pre { font-family: var(--mono); font-size: .875em; }
pre code { font-size: 1em; }
.case p, .source { color: var(--muted); }
.source { font: .77rem/1.5 var(--mono); overflow-wrap: anywhere; }
.severity { color: var(--high); font-size: .875rem; font-weight: 650; }
.severity.review-label { color: var(--muted); }
.section-actions { margin-top: 1.1rem; }
.fleet-section { border-block: 1px solid var(--line); background: #111812; }
.fleet-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.fleet-sample { min-width: 0; overflow: hidden; border: 1px solid #3b4b3e; background: #0d130f; }
.preview-top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .9rem 1.1rem; background: #1b291d; color: var(--ink); border-bottom: 1px solid var(--line); }
.sample { color: var(--muted); font: .78rem/1.5 var(--mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.preview-table { width: 100%; border-collapse: collapse; text-align: left; }
.preview-table th, .preview-table td { padding: .8rem 1rem; font-size: .875rem; }
.preview-table th { color: var(--ink); font-weight: 630; }
.preview-table td { color: var(--muted); }
.preview-table tbody tr { border-top: 1px solid var(--line); }
.fleet-state { font-weight: 670; white-space: nowrap; }
.fleet-state.complete { color: var(--accent); }
.fleet-state.attention { color: var(--high); }
.fleet-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.3rem; }
.fleet-workflow dt { font-weight: 700; }
.fleet-workflow dd { color: var(--muted); margin-top: .3rem; }
.deployment { background: var(--base); }
.deploy-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.deploy-detail { min-width: 0; }
.terminal { margin-top: .4rem; background: #0b120d; color: var(--ink); border: 1px solid #3a513d; border-radius: .22rem; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; min-height: 2.65rem; gap: .5rem; padding-inline: .85rem; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); background: var(--tint); }
.terminal button { font: inherit; color: var(--ink); border: 1px solid #526853; border-radius: .2rem; padding: .15rem .43rem; background: transparent; cursor: pointer; }
.terminal button:hover { background: #293e2b; }
.terminal pre { padding: .9rem .85rem; overflow-x: auto; color: #c4dfbe; }
.deploy-options { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.deploy-options a { display: grid; gap: .35rem; padding: .78rem; border: 1px solid var(--line); background: var(--soft); text-decoration: none; }
.deploy-options a:hover { border-color: #779575; }
.deploy-options span { color: var(--muted); font-size: .9rem; }
footer { border-top: 1px solid var(--line); background: #0a0d0b; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner { gap: 1.65rem; }
  .fleet-grid, .deploy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 3.4rem 2.1rem; }
  .hero-stage { width: min(100%, 35rem); }
  .cases { grid-template-columns: 1fr; }
  .case + .case { border-left: 0; border-top: 1px solid var(--line); }
  .case pre { min-height: auto; }
  .nav { flex-wrap: wrap; row-gap: .9rem; padding-block: .8rem; }
  .nav nav { order: 3; flex-basis: 100%; column-gap: 1.2rem; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { column-gap: .75rem; }
  .nav-tools { gap: .6rem; }
  .nav-report { padding-inline: .5rem; }
  .scope .wrap { display: grid; gap: .9rem; }
  .scope ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  h1 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  .example-heading, .example-code, .example-finding { padding-inline: .85rem; }
  .fleet-workflow, .deploy-options { grid-template-columns: 1fr; }
  .preview-top, .preview-table th, .preview-table td { padding-inline: .6rem; }
}
