:root {
  color-scheme: dark;
  --bg: #07100f;
  --bg-alt: #0b1512;
  --panel: #101816;
  --panel-strong: #16231f;
  --paper: #e7dfca;
  --paper-muted: #c8bea7;
  --text: #f5ead2;
  --muted: #9aa89f;
  --line: #31413b;
  --line-strong: #516057;
  --accent: #d2bc74;
  --signal: #91b987;
  --danger: #e05757;
  --orange: #d8843b;
  --warning: #d6ae58;
  --shadow-cut: #020504;
  --max: 1080px;
  --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 10px;
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

code,
pre,
.eyebrow,
.card-kicker,
.score-card span,
.finding span,
.finding small,
.flow-list span,
.nav-links,
.site-footer nav,
.button,
.terminal-bar {
  font-family: var(--font-mono);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 22px;
  top: 16px;
  z-index: 30;
  transform: translateY(-140%);
  padding: 9px 12px;
  border: 2px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--shadow-cut);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.brand-mark::before {
  left: 9px;
  right: 9px;
  top: 6px;
  height: 18px;
}

.brand-mark::after {
  left: 14px;
  top: 18px;
  width: 12px;
  height: 4px;
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.hero {
  padding: clamp(64px, 9vw, 108px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
  gap: clamp(36px, 6vw, 72px);
}

.hero-copy,
.hero-panel,
.terminal-card,
.code-block,
.screenshot-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--font-body);
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lede {
  max-width: 580px;
  color: var(--paper-muted);
  font-size: 1.08rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.button.primary {
  color: #05100c;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--shadow-cut);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow-cut);
  color: #05100c;
}

.button.secondary {
  color: var(--paper);
  background: transparent;
}

.terminal-card,
.code-block {
  border: 1px solid var(--line);
  background: #050a09;
  box-shadow: 8px 8px 0 var(--shadow-cut);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 18px;
  height: 8px;
  background: var(--danger);
}

.terminal-bar span:nth-child(2) {
  background: var(--warning);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 2px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 12px 12px 0 var(--shadow-cut);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.hero-panel::before {
  content: "SCAN SHEET";
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 9px;
  background: var(--paper);
  color: var(--bg);
  font: 900 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.score-card,
.finding {
  border: 1px solid var(--line);
  background: var(--panel);
}

.score-card {
  padding: 22px;
}

.score-card span,
.finding span,
.card-kicker {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.score-card strong {
  display: block;
  margin: 6px 0;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.score-card small,
.finding small {
  color: var(--muted);
  font-size: 0.8rem;
}

.finding-list {
  display: grid;
  gap: 10px;
}

.finding {
  padding: 14px 16px;
  border-left: 6px solid var(--accent);
}

.finding.critical { border-left-color: var(--danger); }
.finding.high { border-left-color: var(--orange); }
.finding.medium { border-left-color: var(--warning); }

.finding strong {
  display: block;
  margin: 4px 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid div {
  padding: 24px clamp(14px, 3vw, 22px);
  border-left: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 1px solid var(--line);
}

.stats-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.stats-grid span,
.section-heading p,
.split-grid p,
.feature-card p,
.check-stack p,
.flow-list p,
.install-grid p,
.faq-grid p,
.site-footer p,
figcaption span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

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

.feature-card,
.check-stack article,
.flow-list li,
.faq-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow-cut);
}

.feature-card {
  padding: 22px;
}

.accent-card {
  background: var(--paper);
  color: var(--bg);
  border-color: var(--paper);
  box-shadow: 7px 7px 0 #cfc3a8;
}

.accent-card p,
.accent-card .card-kicker {
  color: #4d574f;
}

.split-section,
.install-section {
  border-block: 1px solid var(--line);
  background: var(--paper);
  color: var(--bg);
}

.split-section .eyebrow,
.install-section .eyebrow,
.split-section .check-stack strong {
  color: #73551e;
}

.split-section p,
.install-section p,
.split-section .section-heading p,
.install-section .install-grid p {
  color: #445149;
}

.split-section .check-stack article {
  background: #f3ecd8;
  color: var(--bg);
  border-color: #b6aa8f;
  box-shadow: 7px 7px 0 #cfc3a8;
}

.split-section .check-stack p {
  color: #445149;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.check-stack {
  display: grid;
  gap: 12px;
}

.check-stack article {
  padding: 20px;
}

.check-stack strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dark-section {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.screenshot-card {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 9px 9px 0 var(--shadow-cut);
}

.screenshot-card img {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 16px 18px;
}

figcaption strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  padding: 22px;
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.flow-list li strong {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.2;
}

.flow-list code,
.faq-grid code {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: 0.08rem 0.35rem;
}

.install-section {
  border-top: 0;
}

.install-section .button.primary {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--paper);
}

.install-section .button.secondary {
  border-color: #7c735f;
  color: var(--bg);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.code-block pre {
  padding: clamp(18px, 3vw, 28px);
}

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

.faq-grid article {
  padding: 20px;
}

.faq-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #050a09;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer p {
  max-width: 300px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body::before {
    width: 6px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-panel {
    box-shadow: 7px 7px 0 var(--shadow-cut);
  }

  .feature-grid,
  .flow-list,
  .faq-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div,
  .stats-grid div:last-child {
    border-inline: 0;
    border-bottom: 1px solid var(--line);
  }

  figcaption {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}

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