:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --fg: #e8e6e3;
  --fg-dim: #8a8a8e;
  --fg-muted: #555558;
  --accent-red: #e63946;
  --accent-red-glow: rgba(230, 57, 70, 0.15);
  --accent-blue: #00b4d8;
  --accent-blue-glow: rgba(0, 180, 216, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-main: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--accent-red); }
.hero h1 .accent-blue { color: var(--accent-blue); }
.hero h1 .accent-dim { color: var(--fg-dim); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* HUD Elements */
.hero-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hud-element {
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 220px;
}

.hud-label {
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-status.active {
  color: #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
}

.hud-value { color: var(--accent-blue); }

.hud-1 { border-left: 2px solid var(--accent-red); }
.hud-2 { border-left: 2px solid var(--accent-blue); }
.hud-3 { border-left: 2px solid var(--fg-muted); }

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === STATS === */
.stats {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 0.3rem;
  max-width: 200px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-safety:hover { border-color: rgba(230, 57, 70, 0.4); }
.feature-capture:hover { border-color: rgba(0, 180, 216, 0.4); }
.feature-content:hover { border-color: rgba(255, 255, 255, 0.15); }

.feature-icon {
  margin-bottom: 1.2rem;
  color: var(--fg-dim);
}

.feature-safety .feature-icon { color: var(--accent-red); }
.feature-capture .feature-icon { color: var(--accent-blue); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.feature-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* === HOW === */
.how {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  min-width: 40px;
  padding-top: 0.2rem;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.step-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  margin-left: 19px;
  opacity: 0.4;
}

/* === CLOSING === */
.closing {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.closing-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.closing h2 .accent { color: var(--accent-red); }
.closing h2 .accent-blue { color: var(--accent-blue); }

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* === FOOTER === */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 2.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hud-element {
    min-width: auto;
    flex: 1;
    min-width: 140px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step {
    gap: 1.2rem;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    top: -10%;
    right: -20%;
  }

  .closing-glow {
    width: 350px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.75rem;
  }

  .hud-element {
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
  }
}