/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #22222f;
  --border: #2a2a3a;
  --text-primary: #e8e8ed;
  --text-secondary: #b0b0c8;
  --text-muted: #7e7e96;
  --accent-red: #ff2d55;
  --accent-amber: #ffb800;
  --accent-green: #00ff88;
  --accent-blue: #0088ff;
  --accent-purple: #8855ff;
  --glow-red: 0 0 20px rgba(255, 45, 85, 0.3);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);
  --glow-blue: 0 0 20px rgba(0, 136, 255, 0.3);
  --glow-amber: 0 0 20px rgba(255, 184, 0, 0.3);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.015) 49px, rgba(255,255,255,0.015) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.015) 49px, rgba(255,255,255,0.015) 50px);
}
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, button { font-size: inherit; }
::selection { background: rgba(255, 45, 85, 0.3); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
code, .mono { font-family: var(--font-mono); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; scroll-margin-top: 70px; }
.section-title { margin-bottom: 2rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 56px; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-primary); text-decoration: none; font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo-img { width: 28px; height: 28px; }
.nav-links {
  display: flex; list-style: none; gap: 0.25rem; margin-left: auto;
}
.nav-link {
  padding: 0.4rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary); background: rgba(255,255,255,0.05);
  text-decoration: none;
}
.nav-link.active { color: var(--accent-red); }
.nav-badge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0, 255, 136, 0.1); color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
  white-space: nowrap;
}
.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px 0;
  background: var(--text-secondary); border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero { padding: 5rem 0 2rem; text-align: center; }
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-logo-img { max-height: 64px; margin: 0 auto 1rem; }
.hero-tagline {
  color: var(--text-primary); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.hero-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; }
.hero-badges { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 3px 10px; border-radius: 10px;
  border: 1px solid var(--border);
}
.badge-version { color: var(--accent-blue); border-color: rgba(0, 136, 255, 0.3); }
.badge-local { color: var(--accent-green); border-color: rgba(0, 255, 136, 0.2); }

/* ===== SCAN PANEL ===== */
.scan-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.scan-input-group { display: flex; gap: 0.75rem; }
.scan-input {
  flex: 1; padding: 0.8rem 1rem; font-size: 1rem;
  font-family: var(--font-mono); background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.scan-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}
.scan-input::placeholder { color: var(--text-muted); }
.scan-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem; border: none; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; display: inline-flex;
  align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-scan {
  background: var(--accent-red); color: #fff;
  min-width: 120px; font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3);
}
.btn-scan:hover { box-shadow: 0 6px 25px rgba(255, 45, 85, 0.4); }
.btn-scan.scanning { pointer-events: none; }
.btn-scan.scanning .btn-text { display: none; }
.btn-scan.scanning .btn-loader { display: inline-block; }
.btn-scan.idle-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.btn-loader {
  display: none; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-secondary {
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }

.btn-cancel {
  background: transparent; color: var(--accent-red);
  border: 1px solid var(--accent-red); padding: 0.5rem 1rem;
  font-size: 0.85rem; margin-top: 0.75rem;
}

/* Scan Options */
.scan-options { margin-top: 1rem; }
.scan-mode-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.toggle-label { cursor: pointer; }
.toggle-label input { display: none; }
.toggle-pill {
  display: inline-block; padding: 0.35rem 0.8rem;
  border-radius: 20px; font-size: 0.8rem;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all var(--transition);
}
.toggle-label input:checked + .toggle-pill {
  background: rgba(255, 45, 85, 0.1); border-color: var(--accent-red);
  color: var(--accent-red);
}
.module-selector {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
  padding: 0.75rem; background: var(--bg-primary); border-radius: var(--radius-sm);
}
.checkbox-label {
  font-size: 0.8rem; color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent-red); }

/* Progress */
.scan-progress { margin-top: 1.5rem; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.progress-label { font-size: 0.85rem; color: var(--text-secondary); }
.progress-pct { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-red); }
.progress-bar {
  height: 4px; background: var(--bg-primary); border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-amber));
  box-shadow: var(--glow-red);
  transition: width 0.5s ease;
}

/* Module status */
.module-status {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem;
}
.module-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.module-tag.running { border-color: var(--accent-amber); color: var(--accent-amber); }
.module-tag.complete { border-color: var(--accent-green); color: var(--accent-green); }
.module-tag.failed { border-color: var(--accent-red); color: var(--accent-red); }

/* Terminal */
.terminal {
  margin-top: 1rem; background: #08080d;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem; max-height: 300px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5;
}
.terminal-line { white-space: pre-wrap; word-break: break-all; }
.terminal-line.info { color: var(--accent-blue); }
.terminal-line.pass { color: var(--accent-green); }
.terminal-line.fail { color: var(--accent-red); }
.terminal-line.warn { color: var(--accent-amber); }
.terminal-line.error { color: var(--accent-red); font-weight: bold; }
.terminal-line.system { color: var(--text-muted); font-style: italic; }

/* ===== REPORT ===== */
.report-summary {
  display: flex; gap: 2rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.risk-gauge-container { flex-shrink: 0; }
.risk-gauge { width: 140px; height: 140px; }
.risk-gauge-bg {
  fill: none; stroke: var(--bg-secondary); stroke-width: 8;
}
.risk-gauge-fill {
  fill: none; stroke: var(--accent-green); stroke-width: 8;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  stroke-linecap: round; transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}
.risk-gauge-score {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  fill: var(--text-primary);
}
.risk-gauge-label {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500;
  fill: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}

.summary-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem; flex: 1;
}
.summary-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.summary-value {
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700;
}
.summary-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.card-pass .summary-value { color: var(--accent-green); }
.card-fail .summary-value { color: var(--accent-red); }
.card-warn .summary-value { color: var(--accent-amber); }

/* Findings */
.findings-container { margin-bottom: 2rem; }
.findings-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.findings-filters { display: flex; gap: 0.25rem; }
.filter-btn {
  padding: 0.3rem 0.7rem; font-size: 0.8rem;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

.finding-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.5rem;
  overflow: hidden; transition: border-color var(--transition);
}
.finding-card:hover { border-color: var(--text-muted); }
.finding-header {
  padding: 0.8rem 1rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.6rem;
}
.finding-header:focus { outline: 2px solid var(--accent-blue); outline-offset: -2px; }
.finding-arrow {
  color: var(--text-muted); transition: transform var(--transition);
  font-size: 0.8rem; flex-shrink: 0;
}
.finding-card.expanded .finding-arrow { transform: rotate(90deg); }
.severity-badge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
  flex-shrink: 0;
}
.severity-badge.severity-critical { background: var(--accent-red); color: #fff; }
.severity-badge.severity-high { background: var(--accent-amber); color: #000; }
.severity-badge.severity-medium { background: var(--accent-blue); color: #fff; }
.severity-badge.severity-low { background: var(--text-muted); color: var(--bg-primary); }
.severity-badge.severity-info { background: var(--border); color: var(--text-secondary); }

.finding-title { flex: 1; font-size: 0.9rem; }
.finding-cve {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-purple); flex-shrink: 0;
}

.finding-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.finding-card.expanded .finding-body { max-height: 800px; }
.finding-body-inner {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}
.finding-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 0.75rem 0; }
.finding-evidence {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  overflow-x: auto; white-space: pre-wrap; margin: 0.5rem 0;
  color: var(--accent-amber);
}
.finding-remediation {
  background: rgba(0, 255, 136, 0.05);
  border-left: 3px solid var(--accent-green);
  padding: 0.75rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.5rem;
}
.finding-remediation-title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-green); margin-bottom: 0.3rem;
}
.finding-remediation p {
  font-size: 0.85rem; color: var(--text-secondary);
  white-space: pre-wrap;
}
.copy-remediation {
  font-size: 0.7rem; background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 2px 8px; border-radius: var(--radius-sm);
  margin-top: 0.5rem; cursor: pointer;
  transition: all var(--transition);
}
.copy-remediation:hover { border-color: var(--accent-green); color: var(--accent-green); }

.report-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--border);
}

/* ===== CVE DATABASE ===== */
.cve-controls {
  display: flex; gap: 0.75rem; margin-bottom: 1rem;
  flex-wrap: wrap; align-items: center;
}
.cve-search {
  flex: 1; min-width: 200px; padding: 0.6rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.85rem;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary); outline: none;
  transition: border-color var(--transition);
}
.cve-search:focus { border-color: var(--accent-purple); }
.cve-filters { display: flex; gap: 0.25rem; }

.cve-table-wrapper { overflow-x: auto; }
.cve-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.85rem;
}
.cve-table th {
  text-align: left; padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem;
  cursor: pointer; user-select: none;
  white-space: nowrap;
}
.cve-table th:hover { color: var(--text-primary); }
.cve-table td {
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border);
}
.cve-table tbody tr {
  cursor: pointer; transition: background var(--transition);
}
.cve-table tbody tr:hover { background: var(--bg-card-hover); }
.cve-table .mono { font-family: var(--font-mono); font-size: 0.8rem; }

.cve-detail {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-top: 1rem; position: relative;
}
.cve-detail-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.cve-detail-close:hover { color: var(--text-primary); }
.cve-detail h3 { margin-bottom: 0.5rem; }
.cve-detail .cve-field { margin-bottom: 0.75rem; }
.cve-detail .cve-field-label {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.2rem;
}
.cve-detail .cve-field-value { font-size: 0.9rem; }
.cve-detail pre {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  overflow-x: auto; white-space: pre-wrap;
}

/* ===== THREAT INTEL TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem 1rem 2.5rem;
  border-left: 3px solid var(--border);
}
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg-primary);
}
.timeline-item.severity-critical { border-left-color: var(--accent-red); }
.timeline-item.severity-critical::before { background: var(--accent-red); }
.timeline-item.severity-high { border-left-color: var(--accent-amber); }
.timeline-item.severity-high::before { background: var(--accent-amber); }
.timeline-item.severity-info { border-left-color: var(--accent-blue); }
.timeline-item.severity-info::before { background: var(--accent-blue); }

.timeline-date {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.timeline-title { font-weight: 600; margin-bottom: 0.3rem; color: var(--text-primary); }
.timeline-source { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.timeline-summary { font-size: 0.9rem; color: var(--text-primary); line-height: 1.65; }
.timeline-link {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.8rem; color: var(--accent-blue);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 1rem; right: 1rem;
  z-index: 200; display: flex; flex-direction: column-reverse; gap: 0.5rem;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-size: 0.85rem; min-width: 250px; max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideInRight 0.3s ease;
}
.toast.error { border-color: var(--accent-red); }
.toast.success { border-color: var(--accent-green); }
.toast.info { border-color: var(--accent-blue); }

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem;
}
.footer p { margin-bottom: 0.25rem; }
.footer-disclaimer { color: var(--accent-amber); }
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin: 1rem 0;
}
.footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.8rem; transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* ===== STATIC PAGES (About, Privacy, Terms) ===== */
.page-container {
  max-width: 800px; margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.page-container h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.page-container h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--text-primary); }
.page-container h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.page-container p { color: var(--text-primary); line-height: 1.75; margin-bottom: 1rem; }
.page-container ul, .page-container ol {
  color: var(--text-primary); margin-bottom: 1rem;
  padding-left: 1.5rem; line-height: 1.75;
}
.page-container li { margin-bottom: 0.35rem; }
.page-container a { color: var(--accent-blue); }
.page-back {
  display: inline-block; margin-bottom: 1.5rem;
  color: var(--text-secondary); font-size: 0.85rem;
}
.page-back:hover { color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(255, 45, 85, 0.5); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(n+6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* Finding slide-in */
.finding-card { animation: slideInLeft 0.3s ease both; }
.finding-card:nth-child(1) { animation-delay: 0.05s; }
.finding-card:nth-child(2) { animation-delay: 0.1s; }
.finding-card:nth-child(3) { animation-delay: 0.15s; }
.finding-card:nth-child(4) { animation-delay: 0.2s; }
.finding-card:nth-child(5) { animation-delay: 0.25s; }
.finding-card:nth-child(n+6) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    padding: 0.5rem;
  }
  .nav-toggle { display: block; }
  .nav-badge { display: none; }
  .scan-input-group { flex-direction: column; }
  .btn-scan { width: 100%; }
  .report-summary { flex-direction: column; align-items: stretch; }
  .risk-gauge-container { text-align: center; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .findings-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 2rem 0; }
  .scan-panel { padding: 1rem; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .cve-controls { flex-direction: column; }
}

/* ===== PRINT ===== */
@media print {
  body { background: #fff; color: #000; }
  .nav, .scan-panel, .scan-progress, .report-actions,
  .scan-options, .btn, .footer, .toast-container, .hero { display: none; }
  .section { padding: 1rem 0; }
  .finding-card, .summary-card, .cve-table { border-color: #ccc; background: #f9f9f9; }
  .finding-body { max-height: none !important; }
  .severity-badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  [hidden] { display: block !important; }
  #report { display: block !important; }
}
