/* ═══════════════════════════════════════════
   GG Total Scanner — Design System
   Purple-primary, dark, technical
═══════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:          #06020f;
  --bg-alt:      #0c0718;
  --bg-card:     #100b1e;
  --bg-card-2:   #160e28;
  --bg-gh:       #0d1117;   /* GitHub dark comment bg */
  --bg-gh-card:  #161b22;

  /* Purple palette */
  --purple:      #8b5cf6;
  --purple-dim:  rgba(139, 92, 246, 0.12);
  --purple-low:  rgba(139, 92, 246, 0.06);
  --purple-bright: #a78bfa;
  --indigo:      #6366f1;

  /* Complementary */
  --pink:        #e879f9;
  --pink-dim:    rgba(232, 121, 249, 0.1);
  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34, 211, 238, 0.1);

  /* Semantic */
  --success:     #10b981;
  --warn:        #f59e0b;
  --danger:      #f43f5e;
  --orange:      #f97316;
  --info:        #38bdf8;

  /* Text */
  --text:        #e2e8f0;
  --text-soft:   #94a3b8;
  --text-muted:  #4b5563;

  /* Border */
  --border:      rgba(139, 92, 246, 0.12);
  --border-2:    rgba(139, 92, 246, 0.25);
  --border-gh:   #30363d;

  /* Radius */
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Font */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --t: 180ms ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ══════════════ UTILS ══════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }
.mono { font-family: var(--mono); font-size: .82em; }
.hl { color: var(--purple-bright); }
.gradient-text {
  background: linear-gradient(90deg, var(--purple-bright) 0%, var(--pink) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════ BUTTONS ══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-sm  { padding: 8px 16px; font-size: .8rem; }
.btn-lg  { padding: 13px 26px; font-size: .95rem; }
.btn-xl  { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 32px rgba(124, 58, 237, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--purple); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--purple-low); }

/* ══════════════ SEVERITY BADGES ══════════════ */
.sev {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 4px;
  font-family: var(--mono);
}
.sev-critical { background: rgba(244,63,94,.18); color: #f43f5e; }
.sev-high     { background: rgba(249,115,22,.15); color: #fb923c; }
.sev-medium   { background: rgba(245,158,11,.15); color: #fbbf24; }
.sev-low      { background: rgba(167,139,250,.15); color: #a78bfa; }

/* ══════════════ NAV ══════════════ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 2, 15, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-text { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.nav-links {
  display: flex; align-items: center; gap: 24px; margin-left: auto;
}
.nav-links a {
  color: var(--text-soft); font-size: .875rem; font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }
.nav-docs { color: var(--text-muted) !important; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-soft); border-radius: 2px; transition: all var(--t); }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(109,40,217,.3) 0%, transparent 70%);
  top: -200px; left: -150px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 540px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  margin-bottom: 24px;
}
.pill-github {
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.25);
  color: var(--purple-bright);
}
.hero-h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1rem; color: var(--text-soft); line-height: 1.75;
  margin-bottom: 32px; max-width: 480px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-meta span {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-muted);
}

/* ══════════════ PR META BAR ══════════════ */
.pr-meta-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-gh-card);
  border: 1px solid var(--border-gh);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  font-size: .75rem; font-family: var(--mono);
  flex-wrap: wrap;
}
.pr-meta-repo { color: var(--purple-bright); font-weight: 600; }
.pr-meta-pr   { color: var(--text-soft); }
.pr-status-dots { margin-left: auto; }
.dot-fail { color: var(--danger); font-size: .7rem; font-weight: 600; }

/* ══════════════ GH COMMENT ══════════════ */
.gh-comment {
  background: var(--bg-gh);
  border: 1px solid var(--border-gh);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
  font-size: .82rem;
}
.gh-comment-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-gh-card);
  border-bottom: 1px solid var(--border-gh);
}
.gh-avatar {
  width: 24px; height: 24px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.gh-author { font-weight: 600; color: #58a6ff; font-size: .8rem; }
.gh-bot-badge {
  display: inline-block; margin-left: 5px;
  font-size: .62rem; color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 3px; padding: 0 5px; line-height: 1.6;
}
.gh-time { color: var(--text-muted); font-size: .75rem; }
.gh-edited { color: var(--text-muted); font-size: .72rem; }
.gh-comment-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }

.gh-scanner-header {
  display: flex; align-items: center; justify-content: space-between;
}
.gh-scanner-title { font-size: .85rem; }
.gh-verdict {
  display: flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px;
}
.gh-verdict-ok   { background: rgba(16,185,129,.15); color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.gh-verdict-warn { background: rgba(245,158,11,.12); color: var(--warn);    border: 1px solid rgba(245,158,11,.3); }
.gh-verdict-fail { background: rgba(244,63,94,.12);  color: var(--danger);  border: 1px solid rgba(244,63,94,.3);  }

.gh-risk-row { display: flex; align-items: center; gap: 16px; }
.risk-gauge { position: relative; width: 90px; }
.gauge-svg { width: 90px; }
.gauge-value {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1;
}
.gauge-label {
  position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%);
  font-size: .6rem; color: var(--text-muted); white-space: nowrap;
  margin-top: 2px;
}
.gh-scan-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.gh-scan-stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.2rem; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.danger-col { color: var(--danger); }
.warn-col   { color: var(--warn); }
.info-col   { color: var(--purple-bright); }
.gh-scan-meta-foot {
  font-size: .7rem; color: var(--text-muted);
  border-left: 1px solid var(--border-gh); padding-left: 12px; line-height: 1.4;
}

/* GH tables */
.gh-table {
  width: 100%; border-collapse: collapse; font-size: .78rem;
}
.gh-table th {
  text-align: left; padding: 5px 8px;
  color: var(--text-muted); font-weight: 600; font-size: .7rem;
  border-bottom: 1px solid var(--border-gh); letter-spacing: .04em;
}
.gh-table td { padding: 5px 8px; border-bottom: 1px solid rgba(48,54,61,.5); }
.gh-table tr:last-child td { border-bottom: none; }
.gh-table td.mono { color: #79c0ff; }

.gh-findings { display: flex; flex-direction: column; gap: 10px; }
.gh-finding-group { border: 1px solid var(--border-gh); border-radius: 6px; overflow: hidden; }
.gh-group-header {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: rgba(22,27,34,.8);
  border-bottom: 1px solid var(--border-gh);
  font-size: .78rem; font-weight: 600;
}
.gh-group-icon { font-size: .9rem; }
.gh-group-title { flex: 1; }
.badge-count {
  font-size: .68rem; font-weight: 700;
  background: var(--purple-dim);
  color: var(--purple-bright);
  padding: 1px 7px; border-radius: 999px;
}
.collapsed-row td { color: var(--text-muted); font-size: .75rem; padding: 7px 8px; }
.show-more { color: var(--purple-bright); cursor: pointer; }
.gh-footer-note {
  font-size: .72rem; color: var(--text-muted); padding-top: 4px;
}
.gh-footer-note a { color: var(--purple-bright); }

/* ══════════════ STATS BAR ══════════════ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
  padding: 28px 0;
}
.stats-inner {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-v { display: block; font-size: 1.8rem; font-weight: 900; color: var(--purple-bright); letter-spacing: -.03em; }
.stat-l { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ══════════════ SECTIONS ══════════════ */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-alt); }
.section-hd {
  text-align: center; max-width: 640px; margin: 0 auto 64px;
}
.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: var(--purple-bright); text-transform: uppercase; margin-bottom: 12px;
}
.section-hd h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em;
  color: #fff; margin-bottom: 14px; line-height: 1.2;
}
.section-hd p { font-size: .95rem; color: var(--text-soft); line-height: 1.75; }

/* ══════════════ PIPELINE ══════════════ */
.pipeline {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  justify-content: center;
}
.pipe-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  width: 160px; text-align: center;
  transition: all var(--t);
}
.pipe-step:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pipe-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--purple-dim); color: var(--purple-bright);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.pipe-icon-multi { background: linear-gradient(135deg, var(--purple-dim), var(--pink-dim)); }
.pipe-icon-verdict { background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(244,63,94,.15)); color: var(--success); }
.pipe-step h4 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pipe-step p  { font-size: .73rem; color: var(--text-muted); line-height: 1.5; }
.pipe-engines { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.engine-chip {
  font-size: .65rem; font-weight: 600; padding: 2px 7px; border-radius: 4px;
}
.chip-cred { background: rgba(244,63,94,.12); color: #f43f5e; }
.chip-sast { background: rgba(139,92,246,.15); color: var(--purple-bright); }
.chip-sca  { background: rgba(34,211,238,.1); color: var(--cyan); }
.pipe-arrow { flex-shrink: 0; padding: 0 4px; margin-top: -20px; }

/* ══════════════ ENGINES ══════════════ */
.engines-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.engine-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px;
  position: relative; overflow: hidden;
  transition: all var(--t);
}
.engine-card:hover { border-color: var(--border-2); }
.engine-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
  pointer-events: none;
}
.engine-featured {
  border-color: rgba(139,92,246,.3);
  box-shadow: 0 0 40px rgba(139,92,246,.08);
  background: linear-gradient(160deg, rgba(109,40,217,.12) 0%, var(--bg-card) 60%);
}
.engine-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.engine-emoji { font-size: 1.6rem; }
.engine-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.engine-tag {
  font-size: .7rem; font-weight: 600; color: var(--purple-bright);
  text-transform: uppercase; letter-spacing: .06em;
}
.engine-desc { font-size: .875rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 20px; }
.engine-detects { margin-bottom: 20px; }
.detect-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 8px; }
.detect-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detect-chips span {
  font-size: .72rem; font-family: var(--mono);
  padding: 3px 8px; border-radius: 4px;
  background: rgba(139,92,246,.08); border: 1px solid var(--border);
  color: var(--text-soft);
}
.engine-stat {
  display: flex; align-items: baseline; gap: 6px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.engine-stat-n { font-size: 1.3rem; font-weight: 800; color: var(--purple-bright); }
.engine-stat-l { font-size: .75rem; color: var(--text-muted); }

/* ══════════════ RISK SCORE ══════════════ */
.score-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.score-ring-wrap { position: relative; padding-bottom: 20px; }
.score-ring { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.score-ticks {
  display: flex; justify-content: space-between;
  padding: 0 20px; margin-top: -10px;
}
.tick { font-size: .7rem; color: var(--text-soft); font-family: var(--mono); }
.score-zones {
  display: flex; justify-content: space-between;
  padding: 6px 10px 0;
}
.zone { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.zone-low { color: var(--success); }
.zone-med { color: var(--warn); }
.zone-hi  { color: var(--danger); }

.score-formula { margin-bottom: 28px; }
.score-formula h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.formula-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.formula-row { display: flex; align-items: center; gap: 12px; }
.formula-sev { width: 80px; flex-shrink: 0; }
.formula-bar { flex: 1; height: 5px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.formula-fill { height: 100%; border-radius: 4px; }
.formula-pts { font-size: .78rem; font-family: var(--mono); color: var(--text-soft); white-space: nowrap; }
.formula-note { font-size: .78rem; color: var(--text-muted); line-height: 1.6; }

.verdict-examples { display: flex; flex-direction: column; gap: 10px; }
.verdict-ex {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.verdict-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono);
}
.verdict-approved { background: rgba(16,185,129,.15); color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.verdict-review   { background: rgba(245,158,11,.12);  color: var(--warn);    border: 1px solid rgba(245,158,11,.3); }
.verdict-rejected { background: rgba(244,63,94,.12);   color: var(--danger);  border: 1px solid rgba(244,63,94,.3); }
.verdict-desc { font-size: .82rem; color: var(--text-soft); }

/* ══════════════ MODES ══════════════ */
.modes-grid {
  display: flex; gap: 0; align-items: stretch; justify-content: center;
}
.mode-card {
  flex: 1; max-width: 460px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 32px;
}
.mode-card-featured {
  background: linear-gradient(160deg, rgba(109,40,217,.15) 0%, var(--bg-card) 70%);
  border-color: rgba(139,92,246,.3);
  box-shadow: 0 0 48px rgba(139,92,246,.1);
}
.mode-vs {
  display: flex; align-items: center; justify-content: center;
  width: 60px; flex-shrink: 0;
}
.mode-vs span {
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.mode-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.mode-badge-audit   { background: rgba(34,211,238,.1); color: var(--cyan); border: 1px solid rgba(34,211,238,.2); }
.mode-badge-enforce { background: var(--purple-dim); color: var(--purple-bright); border: 1px solid var(--border-2); }
.mode-card h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.mode-desc { font-size: .875rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 20px; }
.mode-list {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.mode-list li {
  font-size: .855rem; color: var(--text-soft);
  padding-left: 18px; position: relative;
}
.mode-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--purple); font-size: .75rem;
}
.mode-check-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .78rem; font-family: var(--mono);
  border: 1px solid var(--border-gh);
  background: var(--bg-gh);
  color: var(--text-soft);
}
.mode-check-green { border-color: rgba(16,185,129,.2); }
.mode-check-red   { border-color: rgba(244,63,94,.2); }

.modes-dashboard-note {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 32px; font-size: .85rem; color: var(--text-soft);
  padding: 14px 20px; border-radius: var(--r);
  background: var(--purple-low); border: 1px solid var(--border);
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* ══════════════ REPORT ══════════════ */
.report-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start;
}
.report-features { display: flex; flex-direction: column; gap: 24px; }
.report-feat { display: flex; gap: 16px; }
.rf-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: var(--purple-dim);
  color: var(--purple-bright);
  display: flex; align-items: center; justify-content: center;
}
.report-feat h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.report-feat p  { font-size: .82rem; color: var(--text-soft); line-height: 1.6; }

/* Full comment (report section) */
.gh-comment-full { border-radius: var(--r-lg) !important; }
.comment-block { margin-bottom: 12px; }
.code-block {
  display: block; white-space: pre;
  font-family: var(--mono); font-size: .78rem;
  background: var(--bg-gh-card); padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--border-gh); line-height: 1.8;
}
.cb-line { display: block; }
.cb-icon { margin-right: 6px; }
.cb-verdict-reject { color: var(--danger); }
.cb-dim { color: var(--text-muted); }
.comment-section { margin-bottom: 10px; }
.cs-header {
  font-size: .8rem; font-weight: 700;
  padding: 7px 10px; border-radius: 6px 6px 0 0;
  border: 1px solid var(--border-gh); border-bottom: none;
  background: var(--bg-gh-card);
}
.cs-header-cred { color: #f43f5e; }
.cs-header-sast { color: var(--purple-bright); }
.cs-header-sca  { color: var(--cyan); }
.gh-table-full {
  border: 1px solid var(--border-gh); border-radius: 0 0 6px 6px;
  border-top: none; width: 100%;
}

/* ══════════════ INSTALL ══════════════ */
.install-steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 720px; margin: 0 auto;
}
.install-step {
  display: flex; gap: 24px; padding: 32px 0;
  border-left: 2px solid var(--border);
  padding-left: 32px; margin-left: 20px;
  position: relative;
}
.install-num {
  position: absolute; left: -20px; top: 32px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,.4);
  flex-shrink: 0;
}
.install-step:last-child { border-left-color: transparent; }
.install-content { flex: 1; }
.install-content h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.install-content p  { font-size: .88rem; color: var(--text-soft); line-height: 1.7; }
.install-connector { width: 2px; background: var(--border); }

.install-code {
  margin-top: 16px;
  border: 1px solid var(--border-gh);
  border-radius: var(--r);
  overflow: hidden;
}
.code-file-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-gh-card);
  border-bottom: 1px solid var(--border-gh);
  font-size: .75rem; color: var(--text-muted);
}
.code-file-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple-dim); border: 1px solid var(--border-2);
}
.code-content {
  font-family: var(--mono); font-size: .8rem;
  padding: 14px 16px; line-height: 2;
  background: var(--bg-gh);
}
.code-repo { color: #79c0ff; }
.code-mode-enforce { color: var(--purple-bright); }
.code-mode-audit   { color: var(--cyan); }

.install-check-preview {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: .8rem; color: var(--text-soft); font-family: var(--mono);
}
.install-check-preview a { color: var(--purple-bright); }

.install-cta {
  text-align: center; margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.install-note { font-size: .8rem; color: var(--text-muted); }

/* ══════════════ FOOTER ══════════════ */
.footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.3); }
.footer-inner {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 80px; padding: 56px 24px 40px;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; max-width: 180px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); transition: color var(--t); display: flex; }
.footer-social a:hover { color: var(--purple-bright); }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-soft); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: .83rem; color: var(--text-muted); transition: color var(--t);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 24px;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom span { font-size: .78rem; color: var(--text-muted); }
.footer-bottom-right { font-style: italic; }

/* ══════════════ SCROLL ANIMATIONS ══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp .5s ease both; }
.anim-1 { animation-delay: .1s; }
.anim-2 { animation-delay: .2s; }
.anim-3 { animation-delay: .3s; }

/* ══════════════ SCROLLBAR ══════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.45); }

/* ══════════════ MODAL ══════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,2,15,.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 16px;
  padding: 40px;
  width: 100%; max-width: 560px;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 6px; line-height: 1;
  transition: color var(--t); border-radius: 6px;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.modal-header { margin-bottom: 28px; }
.modal-header h2 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.modal-header p { font-size: .875rem; color: var(--text-soft); }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { /* spans both cols in form-row context — set in grid parent */ }
.modal-form > .form-field-full { width: 100%; }
.form-field label { font-size: .78rem; font-weight: 600; color: var(--text-soft); letter-spacing: .03em; text-transform: uppercase; }
.form-optional { text-transform: none; font-weight: 400; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--t);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.form-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-submit { margin-top: 4px; width: 100%; justify-content: center; }
.modal-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px 0; gap: 12px;
}
.modal-success h3 { font-size: 1.3rem; font-weight: 800; color: #fff; }
.modal-success p { color: var(--text-soft); font-size: .9rem; line-height: 1.6; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-demo { max-width: 600px; }
  .engines-grid { grid-template-columns: 1fr; }
  .score-layout { grid-template-columns: 1fr; }
  .score-ring-wrap { max-width: 320px; margin: 0 auto; }
  .report-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .pipeline { flex-direction: column; align-items: stretch; gap: 12px; }
  .pipe-step { width: 100%; }
  .pipe-arrow { transform: rotate(90deg); margin: 0 auto; }
  .modes-grid { flex-direction: column; }
  .mode-vs { padding: 8px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-card); padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px; z-index: 99;
  }
  .nav-toggle { display: flex; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stats-inner { gap: 24px; }
  .stat-sep { display: none; }
  .footer-cols { gap: 32px; }
}

@media (max-width: 600px) {
  /* Hide hero demo on small screens — the PR mockup is too wide */
  .hero-demo { display: none; }

  /* Stats: wrap into 2×2 */
  .stats-inner { flex-wrap: wrap; justify-content: center; }
  .stat-item { flex: 1 1 42%; text-align: center; }

  /* Tables: horizontal scroll instead of overflow */
  .gh-finding-group,
  .comment-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gh-table { min-width: 420px; }

  /* Truncate long file paths in table cells */
  .gh-table td.mono {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Code blocks: scroll horizontally */
  .install-code,
  .code-block,
  pre.code-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Verdict examples: stack */
  .verdict-examples { gap: 10px; }
  .verdict-ex { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Smaller section padding */
  .section { padding: 64px 0; }
  .section-hd { margin-bottom: 40px; }

  /* Mode cards: smaller padding */
  .mode-card { padding: 24px 20px; }

  /* Install steps: no horizontal connector */
  .install-connector { height: 24px; }

  /* Score ring: smaller */
  .score-ring { max-width: 240px; }
  .score-ticks { padding: 0 10px; }
  .score-zones { padding: 4px 4px 0; }

  /* Modal on small screens */
  .modal-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
