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

:root {
  --bg: #0d0d14;
  --surface: #13131f;
  --surface2: #1a1a2e;
  --border: #2a2a3e;
  --text: #e0e0e8;
  --text2: #888;
  --accent: #ff2d55;
  --warn: #f5a623;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
code { font-family: var(--mono); background: var(--surface2); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

/* Nav */
.top-nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 56px; justify-content: space-between; }
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text2); font-size: 0.9rem; }
.nav-links a.active { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 80px 24px 60px; max-width: 700px; margin: 0 auto; }
.badge { display: inline-block; background: rgba(255,45,85,0.15); color: var(--accent); font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 12px; }
.tagline { font-size: 1.2rem; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.subtitle { color: var(--text2); font-size: 1rem; margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e0264b; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Docs shell */
.docs-shell { display: flex; max-width: 1200px; margin: 0 auto 60px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); min-height: 600px; }

.sidebar { width: 260px; background: var(--bg); border-right: 1px solid var(--border); padding: 20px 0; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 0 20px 16px; font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sidebar-icon { margin-right: 6px; }
.sidebar-nav { list-style: none; flex: 1; }
.sidebar-nav li { padding: 6px 20px; font-size: 0.88rem; }
.sidebar-nav li a { color: var(--text2); display: block; }
.sidebar-nav li a:hover { color: var(--text); }
.sidebar-nav li.active a { color: var(--accent); font-weight: 500; }
.sidebar-nav li.highlight a { color: var(--accent); }
.section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); margin-top: 16px; font-weight: 600; }
.sidebar-footer { padding: 16px 20px 0; border-top: 1px solid var(--border); margin-top: auto; }
.regen-badge { font-size: 0.75rem; color: #4ade80; }

.docs-content { flex: 1; padding: 32px 40px; overflow-x: auto; }
.breadcrumb { font-size: 0.8rem; color: var(--text2); margin-bottom: 20px; }
.breadcrumb span { color: var(--text); }
.docs-content h2 { font-size: 1.6rem; margin-bottom: 8px; }
.docs-content h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.auto-tag { font-size: 0.82rem; color: var(--text2); margin-bottom: 24px; }

/* Diagram */
.diagram-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 24px 0; }
.diagram-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin-bottom: 12px; }
.threat-diagram { width: 100%; max-width: 700px; height: auto; }

/* Threat list */
.threat-list { display: flex; flex-direction: column; gap: 12px; }
.threat-item { display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; align-items: flex-start; }
.threat-item p { color: var(--text2); font-size: 0.88rem; margin-top: 4px; }
.severity { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; font-family: var(--mono); }
.threat-item.high .severity { background: rgba(255,45,85,0.15); color: var(--accent); }
.threat-item.medium .severity { background: rgba(245,166,35,0.15); color: var(--warn); }
.threat-item.low .severity { background: rgba(74,222,128,0.15); color: #4ade80; }

.feature-list { padding-left: 20px; color: var(--text2); }
.feature-list li { margin-bottom: 6px; }

/* Waitlist */
.waitlist-section { text-align: center; padding: 60px 24px; background: var(--surface); border-top: 1px solid var(--border); }
.waitlist-section h2 { font-size: 1.8rem; margin-bottom: 10px; }
.waitlist-section p { color: var(--text2); margin-bottom: 24px; }

footer { text-align: center; padding: 32px 24px; color: var(--text2); font-size: 0.82rem; }

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .docs-shell { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px; }
  .sidebar-nav li { padding: 4px 10px; }
  .section-title { display: none; }
  .sidebar-footer { display: none; }
  .docs-content { padding: 24px 16px; }
}
