/* ============================================================
   Claude Code Skills Study - Styles
   Dark theme, zinc tokens, Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --surface-3: #27272a;
  --border: #2e2e33;
  --border-bright: #3f3f46;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #3b82f6;
  --accent-dim: #1d4ed8;
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.12);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-2);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo:hover { text-decoration: none; }
.nav-icon { color: var(--accent); font-size: 18px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-inner > h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.sub-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 24px;
  letter-spacing: -0.01em;
}

/* ---- Comparison Grid ---- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.comp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.comp-icon { font-size: 20px; color: var(--accent); }
.comp-header h3 { font-size: 16px; font-weight: 700; }
.comp-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.comp-card li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.comp-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}
.comp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
}
.comp-tag--green { background: var(--green-dim); color: var(--green); }
.comp-tag--blue { background: var(--blue-dim); color: var(--blue); }
.comp-tag--purple { background: var(--purple-dim); color: var(--purple); }
.comp-tag--dim { background: var(--surface-3); color: var(--text-3); }

/* ---- Code Anatomy ---- */
.code-anatomy {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-filename {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-left: 8px;
}
.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}
.hl-delim { color: var(--text-3); }
.hl-key { color: var(--accent); }
.hl-val { color: var(--green); }
.hl-num { color: var(--orange); }
.hl-comment { color: var(--text-3); font-style: italic; }

.anatomy-labels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.anatomy-label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.anatomy-arrow { color: var(--accent); font-size: 18px; margin-top: 2px; }
.anatomy-label strong { display: block; font-size: 13px; font-weight: 600; }
.anatomy-label small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- Progressive Disclosure Stages ---- */
.stages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.stage {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: start;
}
.stage-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.stage-content p { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.stage-meter {
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  position: relative;
  margin-bottom: 12px;
}
.meter-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transition: width 0.6s ease;
}
.meter-label {
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.stage-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stage-detail code {
  font-size: 11px;
}
.stage-detail span { font-size: 12px; color: var(--text-3); }
.stage-trigger {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  padding-top: 4px;
}
.stage-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}
.connector-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  margin-top: -4px;
}

/* ---- Context Savings ---- */
.savings-box {
  max-width: 680px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.savings-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.savings-bars { display: flex; flex-direction: column; gap: 16px; }
.savings-row {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 12px;
  align-items: center;
}
.savings-label { font-size: 13px; color: var(--text-2); }
.savings-bar {
  height: 20px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.savings-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}
.savings-fill--red { background: var(--red); opacity: 0.7; }
.savings-fill--yellow { background: var(--yellow); opacity: 0.7; }
.savings-fill--green { background: var(--green); opacity: 0.7; }
.savings-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

/* ---- Pipeline Dual ---- */
.pipeline-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pipeline-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.pipeline-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pipeline-header--orange { border-top: 3px solid var(--orange); }
.pipeline-header--blue { border-top: 3px solid var(--accent); }
.pipeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pipeline-meta span {
  font-size: 12px;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 4px;
}
.pipeline-steps { padding: 16px 24px; }
.pipe-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pipe-step:last-child { border-bottom: none; }
.pipe-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pipe-step strong { display: block; font-size: 14px; font-weight: 600; }
.pipe-step small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- Boost Table ---- */
.boost-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.boost-row {
  display: grid;
  grid-template-columns: 160px 80px 1fr;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
}
.boost-row:last-child { border-bottom: none; }
.boost-row--header {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.boost-val {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}
.boost-val--green { color: var(--green); }
.boost-val--blue { color: var(--accent); }
.boost-val--orange { color: var(--orange); }
.boost-val--red { color: var(--red); }
.boost-row span:last-child { color: var(--text-2); font-size: 13px; }

/* ---- Prompt Signal Scoring ---- */
.scoring-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.scoring-row {
  display: grid;
  grid-template-columns: 80px auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.scoring-row:last-child { border-bottom: none; }
.scoring-type {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.scoring-type--red { color: var(--red); }
.scoring-blocks { display: flex; gap: 6px; }
.scoring-block {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
}
.scoring-block--6 { background: var(--green-dim); color: var(--green); }
.scoring-block--4 { background: var(--blue-dim); color: var(--blue); }
.scoring-block--1 { background: var(--yellow-dim); color: var(--yellow); }
.scoring-block--cap { background: var(--surface-3); color: var(--text-3); font-weight: 500; font-style: italic; }
.scoring-block--none { background: var(--red-dim); color: var(--red); }
.scoring-desc { font-size: 13px; color: var(--text-3); }
.scoring-threshold {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scoring-threshold > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.threshold-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--green) 100%);
  border-radius: 3px;
  position: relative;
}
.threshold-marker {
  position: absolute;
  top: -24px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  transform: translateX(-50%);
}
.threshold-marker::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--orange);
  border-radius: 1px;
}
.threshold-hint { font-size: 12px; color: var(--text-3); }

/* ---- Lifecycle ---- */
.lifecycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.lc-phase {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lc-phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.lc-icon { font-size: 16px; color: var(--accent); }
.lc-icon--pulse { animation: pulse 2s ease-in-out infinite; color: var(--green); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.lc-items { padding: 16px 24px; }
.lc-item {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.lc-item:last-child { border-bottom: none; }
.lc-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.lc-phase--start { border-top: 3px solid var(--green); }
.lc-phase--active { border-top: 3px solid var(--accent); }
.lc-phase--events { border-top: 3px solid var(--yellow); }
.lc-phase--end { border-top: 3px solid var(--red); }

.lc-active-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 24px;
}
.lc-active-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lc-active-card strong { font-size: 14px; }
.lc-active-card small { font-size: 12px; color: var(--text-3); }
.lc-cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
}

.lc-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 24px 20px;
  padding: 14px 16px;
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
}
.lc-warning-icon { font-size: 18px; color: var(--red); flex-shrink: 0; }
.lc-warning strong { display: block; font-size: 13px; color: var(--red); }
.lc-warning div { font-size: 13px; color: var(--text-2); }

.lc-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 24px;
}
.lc-event {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lc-event code { align-self: flex-start; }
.lc-event small { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ---- Budget Layers ---- */
.budget-layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.budget-layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.budget-layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.budget-layer-header h3 { font-size: 15px; font-weight: 700; }
.budget-layer-header code { font-size: 11px; }
.budget-layer-body { padding: 20px 24px; }
.budget-visual { margin-bottom: 16px; }
.budget-bar-outer {
  height: 32px;
  background: var(--surface-3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.budget-bar-fill span {
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}
.budget-bar-fill--orange { background: linear-gradient(90deg, var(--orange), #dc2626); }
.budget-bar-fill--blue { background: linear-gradient(90deg, var(--accent), #6366f1); }
.budget-bar-cap {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.budget-rules { display: flex; flex-direction: column; gap: 8px; }
.budget-rule {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}
.budget-rule-key {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 80px;
}
.budget-rule span { color: var(--text-2); }

/* ---- Dedup ---- */
.dedup-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.dedup-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dedup-node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
}
.dedup-node strong { display: block; font-size: 14px; }
.dedup-node small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.dedup-node--check { border-color: var(--yellow); }
.dedup-node--skip { border-color: var(--red); background: var(--red-dim); }
.dedup-node--inject { border-color: var(--green); background: var(--green-dim); }
.dedup-arrow { color: var(--text-3); font-size: 20px; line-height: 1; padding-top: 8px; }
.dedup-branch {
  display: flex;
  gap: 24px;
}
.dedup-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dedup-path--yes::before {
  content: 'Yes';
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.dedup-path--no::before {
  content: 'No';
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.dedup-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dedup-reset-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.dedup-reset code { font-size: 12px; }

/* ---- Audit ---- */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.audit-card--large { grid-column: 1 / -1; }
.audit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.audit-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.audit-icon--vercel { background: var(--text); color: var(--bg); }
.audit-icon--dev { background: var(--purple-dim); color: var(--purple); }
.audit-icon--design { background: var(--green-dim); color: var(--green); }
.audit-icon--hook { background: var(--yellow-dim); color: var(--yellow); }
.audit-icon--feat { background: var(--blue-dim); color: var(--blue); }
.audit-icon--review { background: var(--orange-dim); color: var(--orange); }
.audit-card-header h3 { font-size: 16px; font-weight: 700; }
.audit-card-header small { display: block; font-size: 12px; color: var(--text-3); }
.audit-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--blue-dim);
  color: var(--accent);
  white-space: nowrap;
}
.audit-badge--dim { background: var(--surface-3); color: var(--text-3); }
.audit-categories { display: flex; flex-direction: column; gap: 12px; }
.audit-cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.audit-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 60px;
  padding-top: 4px;
  flex-shrink: 0;
}
.audit-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- Findings ---- */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.finding {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.finding-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.finding-icon--green { background: var(--green-dim); color: var(--green); }
.finding-icon--red { background: var(--red-dim); color: var(--red); }
.finding-icon--yellow { background: var(--yellow-dim); color: var(--yellow); }
.finding h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.finding p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer p { font-size: 14px; color: var(--text-2); }
.footer-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .code-anatomy { grid-template-columns: 1fr; }
  .anatomy-labels { display: none; }
  .stage { grid-template-columns: 40px 1fr; }
  .stage-trigger { display: none; }
  .pipeline-dual { grid-template-columns: 1fr; }
  .boost-row { grid-template-columns: 120px 60px 1fr; font-size: 12px; }
  .scoring-row { grid-template-columns: 60px auto 1fr; }
  .lc-active-grid { grid-template-columns: 1fr; }
  .lc-event-grid { grid-template-columns: 1fr; }
  .savings-row { grid-template-columns: 1fr; gap: 4px; }
  .audit-grid { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
}

/* ---- Animations ---- */
.section-inner > h2,
.stage,
.pipeline-card,
.budget-layer,
.lc-phase,
.audit-card,
.finding,
.comp-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}
