/* === VARIABLES === */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #21262d;
  --border: #30363d;
  --accent: #00e5c4;
  --accent-dim: rgba(0, 229, 196, 0.1);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-faint: #6e7681;
  --font-mono: 'DM Mono', 'Fira Mono', monospace;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --max-w: 1100px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* === HERO === */
.hero {
  padding: 80px 24px 72px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* === EMAIL MOCKUP === */
.hero-mockup {
  display: flex;
  justify-content: center;
}
.email-window {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.email-window-bar {
  background: var(--surface-2);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.email-body {
  padding: 20px;
}
.email-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.email-logo {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.email-sender {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.email-time {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.email-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.email-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}
.email-section {
  margin-bottom: 14px;
}
.email-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.email-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.email-item--alert .email-item-text {
  color: #ff7b72;
}
.email-item-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.02em;
}
.badge-pr { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }
.badge-issue { background: rgba(139, 148, 158, 0.15); color: #8b949e; }
.badge-anomaly { background: rgba(255, 123, 114, 0.15); color: #ff7b72; }

/* === FEATURES === */
.features {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 32px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.howitworks-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 96px 24px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.closing-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.closing-sep {
  color: var(--border);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-mockup {
    order: -1;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}