/* ============================================
   MailCraft Pro — Landing Page Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Design Tokens ---- */
:root {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --bg-3: #f0efec;
  --text: #37352f;
  --text-2: #6b6b6b;
  --text-3: #9b9a97;
  --accent: #2383e2;
  --accent-h: #0f73cf;
  --accent-light: #e8f1fd;
  --border: #e9e9e7;
  --border-2: #d3d1cb;
  --success: #0f7b6c;
  --warning: #d9730d;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;

  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --sh: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --sh-lg: 0 10px 25px -5px rgba(0,0,0,0.10), 0 4px 10px -3px rgba(0,0,0,0.05);
  --sh-xl: 0 20px 40px -10px rgba(0,0,0,0.12);

  --nav-h: 64px;
  --max-w: 1120px;
}

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

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border-2);
  color: var(--text-2); background: var(--bg-2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r);
  font-size: 0.9rem; font-weight: 500; border: none;
  transition: all 0.15s ease; white-space: nowrap; cursor: pointer;
  text-decoration: none;
}
.btn-sm { padding: 7px 14px; font-size: 0.825rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--r-lg); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-xs), 0 0 0 1px rgba(35,131,226,0.3);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: var(--sh-sm), 0 0 0 1px rgba(35,131,226,0.4); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-xs);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--border-2); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #1a1a1a; }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--sh-sm); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #2383e2, #0f73cf);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-links a {
  padding: 6px 12px; border-radius: var(--r);
  font-size: 0.9rem; color: var(--text-2); font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 12px; border-radius: var(--r);
  font-size: 0.95rem; font-weight: 500; color: var(--text);
}
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ---- Hero ---- */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 5px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(35,131,226,0.2);
}
.hero-badge-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: #fff;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #2383e2 0%, #0f73cf 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-2); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.hero-ctas {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-proof {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.825rem; color: var(--text-3); font-weight: 500;
}
.hero-proof span { display: flex; align-items: center; gap: 5px; }
.hero-proof .check { color: var(--success); }

/* App Mockup */
.hero-visual { position: relative; }
.mockup-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.mockup-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #fec430; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1; background: var(--bg-3); border-radius: var(--r-sm);
  padding: 4px 12px; font-size: 0.75rem; color: var(--text-3); text-align: center;
}
.mockup-body {
  display: flex; height: 380px;
}
.mockup-sidebar {
  width: 160px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.mockup-logo {
  padding: 6px 8px; margin-bottom: 8px;
  font-weight: 700; font-size: 0.75rem; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.mockup-logo-icon {
  width: 20px; height: 20px; border-radius: 4px;
  background: linear-gradient(135deg, #2383e2, #0f73cf);
  flex-shrink: 0;
}
.mockup-nav-item {
  padding: 6px 8px; border-radius: var(--r-sm);
  font-size: 0.72rem; color: var(--text-2); display: flex;
  align-items: center; gap: 6px;
}
.mockup-nav-item.active { background: var(--bg-2); color: var(--text); font-weight: 500; }
.mockup-credits {
  margin-top: auto; padding: 8px; border-radius: var(--r);
  background: var(--accent-light); border: 1px solid rgba(35,131,226,0.15);
}
.mockup-credits-label { font-size: 0.65rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.mockup-credits-bar {
  height: 4px; background: rgba(35,131,226,0.2); border-radius: 2px; overflow: hidden;
}
.mockup-credits-fill {
  height: 100%; background: var(--accent); border-radius: 2px; width: 66%;
}
.mockup-main {
  flex: 1; padding: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
}
.mockup-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.mockup-label { font-size: 0.68rem; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.mockup-select {
  width: 100%; padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); font-size: 0.72rem; color: var(--text);
  background: var(--bg); font-family: var(--font);
}
.mockup-textarea {
  width: 100%; height: 52px; padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); font-size: 0.68rem; color: var(--text-2);
  background: var(--bg); resize: none; line-height: 1.4;
}
.mockup-btn {
  padding: 7px 14px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; border: none;
  font-size: 0.72rem; font-weight: 500; font-family: var(--font);
  cursor: pointer; align-self: flex-start;
}
.mockup-output {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px; flex: 1;
  font-size: 0.65rem; color: var(--text-2); line-height: 1.5;
  overflow: hidden; position: relative;
}
.mockup-output::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(transparent, var(--bg-2));
}

/* ---- Stats Bar ---- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 20px 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; display: block;
}
.stat-label { font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }

/* ---- Section Headers ---- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--text); color: #fff; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .tag { margin-bottom: 16px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-2); max-width: 560px;
  margin: 0 auto; line-height: 1.7;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* ---- How It Works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
}
.step-number {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--accent-light); color: var(--accent);
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(35,131,226,0.2);
}
.step h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 10px;
}
.step p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ---- Professions Grid ---- */
.professions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.profession-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; flex-direction: column; gap: 10px;
}
.profession-card:hover {
  border-color: var(--accent);
  box-shadow: var(--sh);
  transform: translateY(-1px);
}
.profession-icon { font-size: 1.8rem; line-height: 1; }
.profession-name {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.profession-desc {
  font-size: 0.8rem; color: var(--text-3); line-height: 1.5;
}
.profession-count {
  font-size: 0.75rem; color: var(--accent); font-weight: 500;
  margin-top: auto;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 36px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.feature h3 {
  font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.feature p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--sh-lg);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.price-name {
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.price-amount {
  font-size: 3rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px;
}
.price-amount sup { font-size: 1.5rem; vertical-align: super; font-weight: 600; }
.price-amount .period { font-size: 1rem; font-weight: 400; color: var(--text-2); }
.price-desc { font-size: 0.875rem; color: var(--text-2); margin-bottom: 28px; line-height: 1.5; }
.price-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text);
}
.price-feature-icon {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.price-feature-icon.check {
  background: rgba(15,123,108,0.1); color: var(--success);
}
.price-feature-icon.cross {
  background: var(--bg-2); color: var(--text-3);
}
.price-cta { width: 100%; justify-content: center; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 14px; }
.testimonial-text {
  font-size: 0.9rem; color: var(--text); line-height: 1.65;
  margin-bottom: 20px; font-style: italic;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; color: #fff;
}
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 0.775rem; color: var(--text-3); }

/* ---- FAQ ---- */
.faq { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 20px 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q svg { flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none; padding-bottom: 20px;
  font-size: 0.9rem; color: var(--text-2); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA Section ---- */
.cta-section {
  text-align: center; padding: 96px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(35,131,226,0.3) 0%, transparent 60%);
}
.cta-section .container { position: relative; }
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.05rem; color: rgba(255,255,255,0.7);
  margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.cta-section .btn-primary {
  font-size: 1rem; padding: 14px 32px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 20px rgba(35,131,226,0.4);
}
.cta-note {
  margin-top: 16px; font-size: 0.825rem; color: rgba(255,255,255,0.4);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.875rem; color: var(--text-2); margin-top: 12px;
  max-width: 280px; line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem; color: var(--text-2);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.825rem; color: var(--text-3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-3); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .professions-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .professions-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid-4 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .professions-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s ease infinite; }
