:root {
  --bg: #061118;
  --bg-alt: #0c1a24;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --border: rgba(34, 211, 238, 0.15);
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.logo .dot { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: var(--bg);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border);
}
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  color: var(--cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--rose); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 32rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 700;
}
.hero-stats span { font-size: 0.8rem; color: var(--muted); }
.scan-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.scan-stage {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}
.scan-stage.raw { background: rgba(251, 113, 133, 0.12); color: var(--rose); }
.scan-stage.denoise { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.scan-stage.detect { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.scan-arrow { color: var(--muted); }
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section.alt { background: var(--bg-alt); max-width: 100%; }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.cards.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: rgba(12, 26, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}
.card .step {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.card h3 { margin: 0.75rem 0; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--muted);
}
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.feature-list a { color: var(--cyan); }
.code-block pre {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
.cta { text-align: center; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; }
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }
.site-footer p + p { margin-top: 0.5rem; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
