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

:root {
  --bg: #0b0f1a;
  --bg-card: #111827;
  --bg-card-ai: #0d1f14;
  --bg-card-generic: #1a1122;
  --fg: #f0f4f8;
  --fg-muted: #8899a8;
  --accent: #0aff9d;
  --accent-dim: rgba(10, 255, 157, 0.08);
  --border: rgba(255,255,255,0.07);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-head);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav__tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === HERO === */
.hero { padding: 80px 32px 96px; }
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--accent-dim);
  border: 1px solid rgba(10,255,157,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }
.hero__sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat__value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === EMAIL COMPARE === */
.email-compare { display: flex; flex-direction: column; gap: 0; }
.email-compare__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-head);
  margin-bottom: 8px;
  margin-top: 16px;
}
.email-compare__label:first-child { margin-top: 0; }
.email-compare__vs {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  padding: 4px 0;
  font-family: var(--font-head);
}
.email-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
}
.email-card--ai {
  border-color: rgba(10,255,157,0.25);
  background: var(--bg-card-ai);
}
.email-card--generic {
  border-color: rgba(255,100,100,0.15);
  background: var(--bg-card-generic);
}
.email-card__subject {
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--fg);
}
.email-card__body { color: var(--fg-muted); margin-bottom: 10px; }
.email-card__sig { color: var(--fg); }
.email-card__meta {
  font-size: 11px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

/* === SCIENCE === */
.science { padding: 80px 32px; border-top: 1px solid var(--border); }
.science__inner { max-width: 1200px; margin: 0 auto; }
.science__headline {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 560px;
}
.science__comparison { max-width: 680px; }
.comparison-bar {
  display: flex;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.comparison-bar__segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 16px;
  flex: 1;
  position: relative;
}
.comparison-bar__segment--bad { background: #1a1a2e; }
.comparison-bar__segment--mid { background: #1a2a1a; }
.comparison-bar__segment--good { background: rgba(10,255,157,0.12); border-left: 2px solid var(--accent); }
.comparison-bar__pct {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}
.comparison-bar__segment--good .comparison-bar__pct { color: var(--accent); }
.comparison-bar__desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.2;
}
.science__note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === FEATURES === */
.features { padding: 80px 32px; border-top: 1px solid var(--border); }
.features__inner { max-width: 1200px; margin: 0 auto; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.feature:hover { border-color: rgba(10,255,157,0.2); }
.feature__icon { color: var(--accent); margin-bottom: 16px; }
.feature__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-head);
}
.feature__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* === HOW IT WORKS === */
.howitworks { padding: 80px 32px; border-top: 1px solid var(--border); }
.howitworks__inner { max-width: 1200px; margin: 0 auto; }
.steps {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}
.step { flex: 1; }
.step__number {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-head);
}
.step__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.step__arrow {
  font-size: 24px;
  color: var(--fg-muted);
  flex-shrink: 0;
  font-family: var(--font-head);
}

/* === CLOSING === */
.closing { padding: 96px 32px; border-top: 1px solid var(--border); }
.closing__inner { max-width: 1200px; margin: 0 auto; }
.closing__headline {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.closing__sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}
.closing__quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 20px;
  max-width: 540px;
}
.closing__quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.6;
  font-family: var(--font-head);
}
.closing__note {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === FOOTER === */
.footer { padding: 48px 32px 32px; border-top: 1px solid var(--border); }
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer__tagline { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.footer__links { display: flex; gap: 64px; }
.footer__col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--fg); }
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__right { order: -1; }
  .hero { padding: 48px 20px 64px; }
  .features__grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 16px; }
  .step__arrow { transform: rotate(90deg); }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .science, .features, .howitworks, .closing { padding: 48px 20px; }
  .nav__inner { padding: 12px 20px; }
  .nav__tagline { display: none; }
  .comparison-bar { flex-direction: column; height: auto; }
  .comparison-bar__segment { padding: 12px 16px; }
}
