/* ================================================
   Mailgen — Landing Page
   Professional, clean, no gradients
   ================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --green: #16a34a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.hidden { display: none !important; }

.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: 64px;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.5px;
}
.nav-logo {
  width: 36px; height: 36px; background: var(--bg-dark); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-link:hover { color: var(--text); }
.nav-btn {
  display: inline-block; padding: 9px 22px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.nav-btn:hover { background: var(--accent-hover); }
.nav-mobile-btn { display: none; color: var(--text); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 8px 0; }

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px; background: var(--bg-alt);
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 60px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent); font-size: 13px;
  font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: 52px; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 18px;
}
.hero-sub {
  font-size: 18px; color: var(--text-2); max-width: 480px;
  margin-bottom: 30px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.btn-primary-lg {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.btn-primary-lg:hover { background: var(--accent-hover); }
.btn-outline-lg {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  border: 1.5px solid var(--border); color: var(--text); font-size: 15px;
  font-weight: 600; transition: all .15s;
}
.btn-outline-lg:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; gap: 36px; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-3); font-weight: 500; }

/* Carousel */
.hero-visual { flex: 1; max-width: 440px; }
.carousel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px; position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.carousel-track { position: relative; min-height: 180px; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .5s ease; display: flex;
  flex-direction: column; align-items: center; text-align: center;
  gap: 14px; justify-content: center;
}
.carousel-slide.active { opacity: 1; position: relative; }
.slide-icon { color: var(--accent); }
.carousel-slide h3 { font-size: 20px; font-weight: 700; color: var(--text); }
.carousel-slide p { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 320px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  border: none; cursor: pointer; transition: all .2s;
}
.dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--bg); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent); font-size: 13px;
  font-weight: 600; margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.section-head p { font-size: 16px; color: var(--text-2); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px; transition: all .2s;
}
.feature-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(37,99,235,.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how { padding: 100px 0; background: var(--bg-alt); }
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; }
.step {
  flex: 1; max-width: 260px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 24px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 18px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.step-arrow { color: var(--text-3); flex-shrink: 0; }

/* ===== CTA ===== */
.cta { padding: 80px 0; background: var(--bg); }
.cta-box {
  background: var(--bg-dark); border-radius: 20px; padding: 60px 40px;
  text-align: center; color: #fff;
}
.cta-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { font-size: 16px; color: #94a3b8; margin-bottom: 28px; }
.cta-box .btn-primary-lg { background: #fff; color: var(--bg-dark); }
.cta-box .btn-primary-lg:hover { background: #e2e8f0; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content { align-items: center; display: flex; flex-direction: column; }
  .hero-sub { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 100%; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; gap: 24px; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 18px; align-items: center; }
  .hero-stat { align-items: center; }
  .carousel { padding: 28px 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 20px; }
  .section-head { padding: 0 8px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .hero { padding: 90px 0 50px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .btn-primary-lg, .btn-outline-lg { width: 100%; padding: 14px 18px; }
  .feature-card { padding: 22px 18px; }
  .step { padding: 24px 18px; }
  .pricing-hero, .faq-section, .footer-cta { padding: 50px 16px; }
  .carousel { padding: 22px 18px; }
}
