/* Fonts */
:root {
  --bg: #F8F5F0;
  --bg-alt: #F0EDE7;
  --fg: #1A1A1A;
  --fg-muted: #6B6560;
  --accent: #E8830A;
  --accent-hover: #D17508;
  --border: #E0DCD5;
  --white: #FFFFFF;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: sticky;
  top: 0;
  background: rgba(248, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-left { max-width: 520px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 48px;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* INBOX MOCKUP */
.hero-right { display: flex; justify-content: flex-end; }
.inbox-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--fg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.r { background: #FF5F57; }
.mockup-dot.y { background: #FFBD2E; }
.mockup-dot.g { background: #27C93F; }
.mockup-title { font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 8px; }
.mockup-search {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg);
  margin: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mockup-list { padding: 0 0 8px; }
.email-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.email-item:hover { background: var(--bg); }
.email-item.archived { opacity: 0.4; }
.email-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.email-body { flex: 1; min-width: 0; }
.email-from {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.email-subject { font-size: 12px; color: var(--fg-muted); margin: 2px 0; }
.email-preview { font-size: 11px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-badge {
  font-size: 9px;
  background: #E8830A;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.flag-badge {
  font-size: 9px;
  background: var(--fg);
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.archived-badge {
  font-size: 9px;
  background: var(--border);
  color: var(--fg-muted);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.ai-pulse {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mockup-count { font-size: 11px; color: var(--fg-muted); }

/* MANIFESTO */
.manifesto {
  background: var(--fg);
  color: var(--white);
  padding: 80px 48px;
}
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.manifesto-text em { color: var(--accent); font-style: normal; }
.manifesto-attribution {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* FEATURES */
.features {
  padding: 96px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 56px;
  line-height: 1.15;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* HOW IT WORKS */
.how-it-works {
  background: var(--bg-alt);
  padding: 96px 48px;
}
.how-it-works .section-headline { max-width: 600px; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
}
.step {
  flex: 1;
  max-width: 280px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-connector {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* CLOSING */
.closing {
  padding: 120px 48px;
  background: var(--fg);
  color: var(--white);
}
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.closing p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  padding: 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-tagline { font-size: 14px; color: var(--fg-muted); margin-bottom: 4px; }
.footer-copy { font-size: 12px; color: var(--fg-muted); }

/* MOBILE */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 64px;
    gap: 48px;
  }
  .hero-left { max-width: none; }
  .hero-right { justify-content: flex-start; }
  .inbox-mockup { max-width: 100%; }
  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .manifesto, .closing { padding: 64px 24px; }
  .how-it-works { padding: 64px 24px; }
}