/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Theme tokens */
  --bg-body:      #0d0f17;
  --bg-section:   #111320;
  --bg-section-alt:#0f1119;
  --bg-card:      #181b2a;
  --bg-card-hover:#1e2236;
  --bg-terminal:  #0c0e18;
  --bg-nav:       rgba(13,15,23,.85);

  --text-primary:   #e8eaf0;
  --text-secondary: #9da3b4;
  --text-muted:     #6b7084;

  --accent:         #00dcc7;
  --accent-glow:    rgba(0,220,199,.25);
  --accent-hover:   #00f5de;

  --border:         #23263a;
  --border-light:   #2c3049;

  --radius:     14px;
  --radius-sm:  8px;
  --radius-xs:  4px;

  --container:  1120px;
  --nav-h:      64px;

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: rgba(0,220,199,.08);
  padding: .15em .35em;
  border-radius: var(--radius-xs);
}

/* Reset code styling inside terminals */
.terminal-body code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

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

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  padding: .6rem 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #0d0f17;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0d0f17;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-nav {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-nav:hover {
  background: var(--accent);
  color: #0d0f17 !important;
}

.btn-lg { font-size: 1.1rem; padding: .75rem 2rem; }

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--bg-section-alt);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-align: center;
  letter-spacing: -.02em;
}
.section-title.left { text-align: left; }
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-headline {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero-subhead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.trust-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.trust-pills li {
  font-size: .85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .9rem;
}

/* ===== Terminal ===== */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  margin-left: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.terminal-body {
  padding: 1.25rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.terminal-body.hidden { display: none; }
.term-comment { color: var(--text-muted); }
.term-prompt  { color: var(--accent); font-weight: 700; }
.term-output  { color: #f59e0b; }

/* Terminal tabs */
.terminal-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.tab {
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: .25rem .65rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  background: rgba(0,220,199,.12);
  color: var(--accent);
}

/* ===== Capability Grid ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.cap-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.cap-icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
}
.cap-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.cap-flags {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.cap-why {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Stepper ===== */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 2.5rem 0 2rem;
}
.step {
  text-align: center;
  flex: 0 1 260px;
}
.step-num {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0f17;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.step p {
  font-size: .9rem;
  color: var(--text-secondary);
}
.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: var(--border-light);
  align-self: 22px;
  margin-top: 22px;
}

/* Callout */
.callout {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--accent);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  background: rgba(0,220,199,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== Run Modes ===== */
.run-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.run-modes-copy p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.feature-bullets {
  list-style: none;
}
.feature-bullets li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  color: var(--text-secondary);
}
.feature-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Reports ===== */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.reports-copy p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .85rem;
  padding: .4rem .85rem;
  border-radius: 999px;
}
.chip small { color: var(--text-muted); }
.chip-highlight {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Security ===== */
.security-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.security-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-top: 1.5rem;
}
.security-list li {
  padding: .5rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-secondary);
  font-size: .95rem;
}
.security-list li::before {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none"%3E%3Cdefs%3E%3ClinearGradient id="g" x1="0" y1="0" x2="64" y2="64" gradientUnits="userSpaceOnUse"%3E%3Cstop offset="0%25" stop-color="%2300dcc7"/%3E%3Cstop offset="100%25" stop-color="%2300a89a"/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d="M32 4L8 16v16c0 14.4 10.24 27.84 24 32 13.76-4.16 24-17.6 24-32V16L32 4z" fill="url(%23g)"/%3E%3Cpath d="M28 34l-6-6-2.8 2.8L28 39.6l16-16L41.2 20.8 28 34z" fill="%230d0f17"/%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: .6rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 2rem auto 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .15s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}
.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: .93rem;
}

/* ===== CTA Strip ===== */
.cta-strip {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(0,220,199,.08), rgba(0,220,199,.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content {
  text-align: center;
}
.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-disclaimer {
  margin-top: .5rem;
  font-size: .78rem;
}

/* ===== Mock Report Embed (LP-006) ===== */
.sg-report-embed {
  --sg-bg-primary: #1a1a2e;
  --sg-bg-secondary: #16213e;
  --sg-bg-tertiary: #0f3460;
  --sg-text-primary: #e8e8e8;
  --sg-text-secondary: #b8b8b8;
  --sg-accent: #00d4ff;
  --sg-risk-low: #22c55e;
  --sg-risk-high: #ef4444;
  --sg-risk-critical: #dc2626;
  --sg-sev-critical: #dc2626;
  --sg-sev-high: #f97316;
  --sg-sev-medium: #eab308;
  --sg-sev-low: #3b82f6;
  --sg-sev-info: #9ca3af;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sg-text-primary);
  line-height: 1.6;
  background: var(--sg-bg-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  max-height: 620px;
  overflow-y: auto;
}

/* Scrollbar styling for report embed */
.sg-report-embed::-webkit-scrollbar {
  width: 10px;
}
.sg-report-embed::-webkit-scrollbar-track {
  background: var(--sg-bg-tertiary);
  border-radius: 5px;
}
.sg-report-embed::-webkit-scrollbar-thumb {
  background: var(--accent, #00dcc7);
  border-radius: 5px;
  transition: background .2s;
}
.sg-report-embed::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover, #00f5de);
}
.sg-report-embed * { box-sizing: border-box; }
.sg-report-embed .container { max-width: 100%; margin: 0; padding: 0; }
.sg-report-embed header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sg-accent);
}
.sg-report-embed header h1 {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--sg-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sg-report-embed .meta-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--sg-text-secondary);
  font-size: .78rem;
  flex-wrap: wrap;
}
.sg-report-embed .card {
  background: var(--sg-bg-secondary);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.3);
}
.sg-report-embed .card h2 {
  color: var(--sg-accent);
  margin-bottom: .75rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--sg-bg-tertiary);
  padding-bottom: .4rem;
}
.sg-report-embed .risk-meter {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sg-report-embed .risk-score {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--sg-risk-critical);
}
.sg-report-embed .risk-bar-container {
  flex: 1;
  background: var(--sg-bg-tertiary);
  border-radius: 6px;
  height: 18px;
  overflow: hidden;
}
.sg-report-embed .risk-bar {
  height: 100%;
  border-radius: 6px;
  background: var(--sg-risk-critical);
}
.sg-report-embed .risk-label {
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sg-risk-critical);
}
.sg-report-embed .severity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  text-align: center;
}
.sg-report-embed .severity-item {
  background: var(--sg-bg-tertiary);
  padding: .6rem .5rem;
  border-radius: 6px;
}
.sg-report-embed .severity-count { font-size: 1.4rem; font-weight: bold; }
.sg-report-embed .severity-label { font-size: .72rem; color: var(--sg-text-secondary); }
.sg-report-embed .severity-critical .severity-count { color: var(--sg-sev-critical); }
.sg-report-embed .severity-high .severity-count { color: var(--sg-sev-high); }
.sg-report-embed .severity-medium .severity-count { color: var(--sg-sev-medium); }
.sg-report-embed .severity-low .severity-count { color: var(--sg-sev-low); }
.sg-report-embed .severity-info .severity-count { color: var(--sg-sev-info); }
.sg-report-embed .capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
}
.sg-report-embed .capability-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  background: var(--sg-bg-tertiary);
  border-radius: 6px;
}
.sg-report-embed .capability-icon { font-size: 1.2rem; }
.sg-report-embed .capability-present .capability-icon { color: var(--sg-risk-high); }
.sg-report-embed .capability-name { font-weight: 500; font-size: .88rem; }
.sg-report-embed .capability-evidence { font-size: .72rem; color: var(--sg-text-secondary); }
.sg-report-embed .findings-list { list-style: none; padding: 0; }
.sg-report-embed .finding-item {
  background: var(--sg-bg-tertiary);
  border-radius: 6px;
  padding: .75rem;
  margin-bottom: .5rem;
  border-left: 4px solid;
}
.sg-report-embed .finding-item.severity-critical { border-left-color: var(--sg-sev-critical); }
.sg-report-embed .finding-item.severity-high { border-left-color: var(--sg-sev-high); }
.sg-report-embed .finding-item.severity-medium { border-left-color: var(--sg-sev-medium); }
.sg-report-embed .finding-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.sg-report-embed .finding-severity {
  font-weight: bold;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .72rem;
  text-transform: uppercase;
}
.sg-report-embed .finding-severity.severity-critical { background: var(--sg-sev-critical); color: #fff; }
.sg-report-embed .finding-severity.severity-high { background: var(--sg-sev-high); color: #fff; }
.sg-report-embed .finding-severity.severity-medium { background: var(--sg-sev-medium); color: #111; }
.sg-report-embed .finding-rule { font-weight: 600; color: var(--sg-accent); font-size: .88rem; }
.sg-report-embed .finding-location { color: var(--sg-text-secondary); font-size: .8rem; }
.sg-report-embed .finding-message { margin: .35rem 0; font-size: .88rem; }
.sg-report-embed .finding-snippet {
  background: var(--sg-bg-primary);
  padding: .5rem;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: .78rem;
  overflow-x: auto;
  margin-top: .35rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.sg-report-embed .finding-recommendation {
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--sg-text-secondary);
  font-style: italic;
}

@media (max-width: 768px) {
  .sg-report-embed .severity-grid { grid-template-columns: repeat(3, 1fr); }
  .sg-report-embed .meta-info { flex-direction: column; gap: .25rem; }
}

/* ===== Focus styles (accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Scroll-reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary::after { transition: none; }
}

/* ===== Button hover shimmer ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .4s ease;
}
.btn-primary:hover::after {
  left: 100%;
}

/* ===== Responsive ===== */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .hero-grid,
  .run-modes-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .trust-pills {
    justify-content: center;
  }
  .section-title.left {
    text-align: center;
  }
  .run-modes-copy {
    text-align: center;
  }
  .feature-bullets {
    display: inline-block;
    text-align: left;
  }
  .reports-copy {
    text-align: center;
  }
  .chips {
    justify-content: center;
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    width: 2px;
    height: 32px;
    flex: 0 0 auto;
    margin-top: 0;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .hero {
    padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  }
}

/* --- Mobile nav (≤ 768px) --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: .75rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  /* Animate hamburger to X when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Small mobile (≤ 600px) --- */
@media (max-width: 600px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 1.65rem;
  }
  .hero-subhead {
    font-size: .95rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section {
    padding: 2.5rem 0;
  }
  .hero {
    padding: calc(var(--nav-h) + 1.5rem) 0 2.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    justify-content: center;
    text-align: center;
  }
  .trust-pills {
    flex-direction: column;
    gap: .5rem;
  }
  .trust-pills li {
    text-align: center;
  }
  .terminal-body {
    font-size: .72rem;
    padding: .75rem;
    line-height: 1.55;
  }
  .terminal-body code {
    font-size: .72rem;
  }
  .tab {
    font-size: .65rem;
    padding: .2rem .45rem;
  }
  .terminal-tabs {
    gap: 1px;
  }
  .run-modes-grid {
    gap: 1.5rem;
  }
  .reports-grid {
    gap: 1.5rem;
  }
  .cta-strip {
    padding: 2.5rem 0;
  }
  .cta-content h2 {
    font-size: 1.5rem;
  }
  .callout {
    font-size: .9rem;
    padding: .6rem 1rem;
  }
  .step {
    flex: 0 1 100%;
  }
  .step h3 {
    font-size: 1rem;
  }
  .step p {
    font-size: .85rem;
    max-width: 280px;
    margin: 0 auto;
  }
  /* Report embed sizing */
  .sg-report-embed {
    padding: 1rem;
    max-height: 450px;
  }
  .sg-report-embed header h1 {
    font-size: 1.1rem;
  }
  .sg-report-embed .card {
    padding: .75rem;
  }
  .sg-report-embed .card h2 {
    font-size: .88rem;
  }
  .sg-report-embed .risk-score {
    font-size: 1.6rem;
  }
  .sg-report-embed .severity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sg-report-embed .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .sg-report-embed .finding-snippet {
    font-size: .68rem;
  }
  .sg-report-embed .finding-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
  .security-list li {
    font-size: .88rem;
  }
  .faq-item summary {
    font-size: .9rem;
    padding: .85rem 1rem;
  }
  .faq-item p {
    font-size: .85rem;
    padding: 0 1rem .85rem;
  }
  .chip {
    font-size: .78rem;
    padding: .3rem .7rem;
  }
  .feature-bullets li {
    font-size: .88rem;
  }
  .cap-card {
    padding: 1.25rem;
  }
  .cap-card h3 {
    font-size: .95rem;
  }
  .cap-flags {
    font-size: .82rem;
  }
  .cap-why {
    font-size: .78rem;
  }
  .footer-inner {
    font-size: .78rem;
  }
  .footer-disclaimer {
    font-size: .72rem;
  }
}
