/* ─── Variables ─── */
:root {
  --bg: #070d1a;
  --surface: #0d1526;
  --surface-2: #111e35;
  --fg: #e8edf5;
  --fg-muted: #7a8ba8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --critical: #ef4444;
  --warning: #f59e0b;
  --ok: #22c55e;
  --border: rgba(255,255,255,0.06);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(7, 13, 26, 0.8);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 80%);
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
  font-family: var(--font-head);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  max-width: 720px;
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 20px;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.65;
}
.hero-sub em {
  font-style: normal;
  color: var(--fg);
}

/* ─── Metrics ─── */
.metrics {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.metric-card {
  background: var(--surface);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.metric-icon {
  margin-bottom: 16px;
}
.metric-value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.metric-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── How ─── */
.how {
  padding: 100px 0;
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.how-header {
  margin-bottom: 64px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 12px;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--fg);
  max-width: 560px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
}
.step-number {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin-top: 48px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--fg-muted);
  border-top: 1.5px solid var(--fg-muted);
  transform: rotate(45deg);
}

/* ─── Alerts ─── */
.alerts-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.alerts-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.alerts-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-card {
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid;
}
.alert-critical {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}
.alert-warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}
.alert-ok {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
}
.alert-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-head);
  margin-bottom: 10px;
}
.alert-critical .alert-badge { color: var(--critical); }
.alert-warning .alert-badge { color: var(--warning); }
.alert-ok .alert-badge { color: var(--ok); }
.alert-message {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.alert-action {
  font-size: 12px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-tag {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.alerts-copy {
  padding-left: 8px;
}
.alerts-copy .section-headline {
  margin-bottom: 20px;
}
.alerts-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── Closing ─── */
.closing {
  padding: 100px 0;
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 16px;
}
.stat-label {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.closing-message p {
  font-size: 22px;
  color: var(--fg);
  line-height: 1.65;
  font-family: var(--font-head);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.footer-desc {
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { width: 1px; height: 32px; margin: 0 auto; }
  .step-connector::after { display: none; }
  .alerts-inner { grid-template-columns: 1fr; gap: 40px; }
  .closing-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-inner { padding: 60px 24px; }
  .hero-headline { font-size: 40px; letter-spacing: -1px; }
  .hero-sub { font-size: 17px; }
}