:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #71717a;
  --text-soft: #a1a1aa;
  --border: #e7e5e4;
  --border-strong: #d4d4d8;
  --critical: #dc2626;
  --critical-bg: #fee2e2;
  --high: #ea580c;
  --high-bg: #ffedd5;
  --medium: #b45309;
  --medium-bg: #fef3c7;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

nav.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

nav.top .inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.top .brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav.top .brand .dot {
  color: var(--critical);
}

nav.top ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.top a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.12s ease;
}

nav.top a:hover { color: var(--text); }

nav.top a.active {
  color: var(--text);
  font-weight: 600;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 32px 140px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

h1.hero {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 32px;
}

h1.hero .em {
  color: var(--critical);
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 48px;
}

.lede strong { color: var(--text); font-weight: 600; }

h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 96px 0 24px;
  line-height: 1.15;
}

h2.first { margin-top: 64px; }

h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p { margin-bottom: 16px; max-width: 720px; }
p:last-child { margin-bottom: 0; }

.tldr {
  background: #0a0a0a;
  color: #fafaf9;
  padding: 40px 44px;
  border-radius: 14px;
  margin: 48px 0 24px;
  position: relative;
}

.tldr .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 16px;
}

.tldr p {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 0;
  color: #fafaf9;
  max-width: none;
}

.tldr strong { color: #fff; font-weight: 600; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 64px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.08);
}

.card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.card .desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
}

.card .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin-top: auto;
}

.card .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--critical-bg);
  color: var(--critical);
}

.card .pill.high { background: var(--high-bg); color: var(--high); }

.card .arrow {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 18px;
  transition: transform 0.15s ease;
}

.card:hover .arrow { transform: translateX(4px); color: var(--text); }

.finding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  margin-bottom: 20px;
  scroll-margin-top: 96px;
}

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

.severity {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.severity.critical { background: var(--critical-bg); color: var(--critical); }
.severity.high { background: var(--high-bg); color: var(--high); }
.severity.medium { background: var(--medium-bg); color: var(--medium); }

.cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.finding h3 {
  margin-bottom: 24px;
  margin-top: 4px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 24px 0 10px;
}

.section-label:first-of-type { margin-top: 0; }

.quote {
  border-left: 3px solid var(--border-strong);
  padding: 6px 0 6px 20px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
  margin: 4px 0 4px;
  max-width: 720px;
}

.solution {
  background: var(--ok-bg);
  border-left: 3px solid var(--ok);
  padding: 18px 22px;
  border-radius: 6px;
  margin-top: 8px;
  max-width: 720px;
}

.solution p { margin-bottom: 12px; }
.solution p:last-child { margin-bottom: 0; }
.solution strong { color: var(--ok); }

.problem p { max-width: 720px; }

.trap {
  background: #0a0a0a;
  color: #fafaf9;
  border-radius: 14px;
  padding: 40px;
  margin: 32px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.95;
  overflow-x: auto;
}

.trap .arrow { color: var(--critical); margin: 0 12px; }
.trap .label { color: #a1a1aa; }

.steps {
  margin: 32px 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding-top: 2px;
}

.step .body h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.step .body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}

.q .marker {
  width: 24px; height: 24px;
  border: 2px solid var(--text);
  border-radius: 50%;
  margin-top: 2px;
}

.q .text { font-size: 16px; line-height: 1.5; }
.q .text strong { font-weight: 600; }
.q .text .why { color: var(--text-muted); font-size: 14px; display: block; margin-top: 6px; }

.toc-list {
  margin: 24px 0 64px;
  border-top: 1px solid var(--border);
}

.toc-item {
  display: grid;
  grid-template-columns: 100px 1fr 90px;
  gap: 24px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.toc-item:hover { background: rgba(0, 0, 0, 0.02); }

.toc-item .cite-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.toc-item .title {
  font-size: 15px;
  font-weight: 500;
}

.toc-item .sev {
  justify-self: end;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

footer .mono {
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 720px) {
  nav.top .inner { padding: 14px 20px; }
  nav.top ul { gap: 18px; }
  .container { padding: 48px 20px 80px; }
  .cards { grid-template-columns: 1fr; }
  .finding { padding: 28px 24px; }
  .tldr { padding: 32px 28px; }
  .trap { font-size: 12px; padding: 28px 20px; }
  .toc-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .toc-item .sev { grid-column: 1 / -1; justify-self: start; margin-top: -4px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
}
