/* ═══════════════════════════════════════════════════════════
   SwiftMail Landing — Premium Pre-Launch Waitlist
   ═══════════════════════════════════════════════════════════ */

:root {
  --dark: #0b1325;
  --dark-surface: #131b2e;
  --dark-surface-2: #1a2744;
  --orange: #ea580c;
  --orange-dark: #cc4900;
  --orange-light: #ff8c42;
  --light: #f7f9fb;
  --gray: #f2f4f6;
  --white: #ffffff;
  --text-dark: #dbe2fb;
  --text-muted-dark: #94a3b8;
  --text-light: #191c1e;
  --text-muted-light: #64748b;
  --ghost-border: rgba(255, 255, 255, 0.06);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text-light); background: var(--dark); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11, 19, 37, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ghost-border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 1.375rem; font-weight: 800;
  font-style: italic; color: var(--white); letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted-dark); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 0.5rem 1.25rem; background: #c24b08; color: #fff;
  border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 700;
  border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3); }
.nav-mobile-toggle { display: none; background: none; border: none; flex-direction: column; gap: 4px; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ── Section base ──────────────────────────────────────── */
.section { padding: 7rem 0; position: relative; overflow: hidden; }
.section-light { background: var(--white); color: var(--text-light); }
.section-gray { background: var(--gray); color: var(--text-light); }
.section-dark { background: var(--dark); color: var(--text-dark); }
.section-cta { background: linear-gradient(135deg, var(--dark) 0%, #1a0533 100%); color: var(--text-dark); text-align: center; }

.section-label {
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading); font-size: 2.75rem; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 3.5rem;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 6rem; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-surface) 100%);
}
.hero-grid-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500;
  color: var(--orange-light); background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.2); margin-bottom: 2rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }

.hero-title {
  font-family: var(--font-heading); font-size: 4.25rem; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1875rem; color: var(--text-muted-dark); margin-bottom: 2.5rem;
  line-height: 1.65; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-subtitle strong { color: var(--white); }

.hero-form {
  display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1.5rem;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.hero-input {
  flex: 1; padding: 0.875rem 1.25rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.625rem;
  color: var(--white); font-size: 0.9375rem; outline: none; transition: border-color 0.3s, background 0.3s;
}
.hero-input::placeholder { color: var(--text-muted-dark); }
.hero-input:focus { border-color: var(--orange); background: rgba(255,255,255,0.08); }

.hero-trust { font-size: 0.8125rem; color: var(--text-muted-dark); margin-bottom: 1rem; }
.hero-counter { font-size: 0.9375rem; color: var(--text-muted-dark); }
.hero-counter strong { color: var(--white); font-size: 1.125rem; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border: none; border-radius: 0.625rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.3s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-glow { box-shadow: 0 0 30px rgba(234, 88, 12, 0.3); }
.btn-glow:hover { box-shadow: 0 0 40px rgba(234, 88, 12, 0.5); }

/* ── Comparison Table ─────────────────────────────────── */
.comparison-table {
  background: var(--white); border-radius: 1rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.comparison-header {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--gray); padding: 1.25rem 2rem;
}
.comparison-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  padding: 1.25rem 2rem; align-items: center;
  border-bottom: 1px solid #f0f0f5; transition: background 0.2s;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover { background: #fafbfc; }
.comparison-col { display: flex; flex-direction: column; gap: 0.25rem; }
.comparison-col--feature { flex-direction: row; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 0.9375rem; color: var(--text-light); }
.comparison-col--them { text-align: center; align-items: center; }
.comparison-col--us { text-align: center; align-items: center; }
.comparison-col-label { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 800; }
.comparison-col-sub { font-size: 0.75rem; color: var(--text-muted-light); }
.comparison-row-icon { font-size: 1.25rem; color: var(--orange); }
.comparison-bad { font-size: 0.9375rem; font-weight: 600; color: #94a3b8; }
.comparison-good { font-size: 0.9375rem; font-weight: 700; color: var(--text-light); }
.comparison-tag {
  display: inline-block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--orange); background: rgba(234,88,12,0.08);
  padding: 0.125rem 0.5rem; border-radius: 9999px; margin-top: 0.125rem;
}

/* ── Features ─────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--white); border-radius: 1rem; padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light)); opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; color: var(--orange); margin-bottom: 1rem; display: block; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted-light); font-size: 0.9375rem; line-height: 1.5; }

/* ── Persona ──────────────────────────────────────────── */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.persona-card {
  background: var(--gray); border-radius: 1rem; padding: 2.5rem 2rem; text-align: center;
  transition: transform 0.3s;
}
.persona-card:hover { transform: translateY(-4px); }
.persona-icon { font-size: 2.5rem; color: var(--orange); margin-bottom: 1rem; display: block; }
.persona-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; margin-bottom: 0.5rem; }
.persona-card p { color: var(--text-muted-light); font-size: 0.9375rem; }

/* ── Stats ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; margin-bottom: 2rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; color: var(--white); line-height: 1; }
.stat-unit { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--orange); }
.stat-label { font-size: 0.8125rem; color: var(--text-muted-dark); margin-top: 0.5rem; }
.stats-subtext { text-align: center; color: var(--text-muted-dark); font-size: 0.9375rem; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid #e8eaef; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; background: none; border: none; font-size: 1.0625rem;
  font-weight: 600; color: var(--text-light); text-align: left; cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon { transition: transform 0.3s; color: var(--text-muted-light); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.5rem; }
.faq-answer p { color: var(--text-muted-light); font-size: 0.9375rem; line-height: 1.65; }

/* ── CTA Section ──────────────────────────────────────── */
.cta-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--white); margin-bottom: 1rem; letter-spacing: -0.03em; }
.cta-subtitle { font-size: 1.125rem; color: var(--text-muted-dark); margin-bottom: 2.5rem; }
.cta-subtitle strong { color: var(--orange-light); }
.cta-form { max-width: 480px; }
.cta-meta { font-size: 0.875rem; color: var(--text-muted-dark); margin-top: 1.5rem; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--dark); color: var(--text-muted-dark); padding: 4rem 0 2rem; border-top: 1px solid var(--ghost-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; font-style: italic; color: var(--white); display: block; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.875rem; line-height: 1.5; }
.footer-col-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted-dark); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-muted-dark); margin-bottom: 0.625rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--ghost-border); font-size: 0.8125rem; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: none; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; background: #22c55e; color: var(--white);
  border-radius: 0.75rem; font-size: 0.9375rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3); animation: slideInUp 0.4s ease;
}
.toast.show { display: flex; }
.toast .material-symbols-outlined { font-size: 1.25rem; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .comparison-grid, .features-grid, .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-form { flex-direction: column; }
  .hero-input { width: 100%; }
  .comparison-grid, .features-grid, .persona-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 2.5rem; }
  .cta-title { font-size: 2rem; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(11,19,37,0.95); backdrop-filter: blur(20px); padding: 1rem 2rem; gap: 0.75rem; border-bottom: 1px solid var(--ghost-border); }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}
