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

:root {
  /* Navy / Electric Blue Palette */
  --bg-dark: #0F172A;
  --bg-surface: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --border-color: rgba(148, 163, 184, 0.12);
  --border-highlight: rgba(2, 132, 199, 0.4);

  --primary: #0284C7;
  --primary-hover: #0369A1;
  --primary-light: #38BDF8;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.2);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Background Glow */
.bg-glow-container {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
}
.glow-orb { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.2; }
.glow-orb-1 { top: -15%; left: 15%; width: 650px; height: 650px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); }
.glow-orb-2 { bottom: 5%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%); }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(15, 23, 42, 0.96); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }

.navbar {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.brand-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text-main);
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.brand-icon svg { width: 20px; height: 20px; fill: #fff; }
.brand-name span { color: var(--primary-light); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link {
  text-decoration: none; color: var(--text-muted); font-weight: 500;
  font-size: 0.9rem; transition: var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm); text-decoration: none;
  cursor: pointer; transition: var(--transition); border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(2, 132, 199, 0.45); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.btn-coming-soon {
  background: rgba(255,255,255,0.04); color: var(--text-subtle);
  border-color: var(--border-color); cursor: default; position: relative;
}
.btn-coming-soon::after {
  content: 'Coming Soon'; position: absolute; top: -8px; right: -8px;
  background: var(--accent-amber); color: #000; padding: 0.1rem 0.4rem;
  border-radius: 4px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
}
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* ─── Layout ─── */
main.site-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ─── Hero ─── */
.hero-section { padding: 5rem 0 3rem; text-align: center; position: relative; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--border-highlight); border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary-light); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3.4rem; font-weight: 900; line-height: 1.12; letter-spacing: -1.5px;
  margin-bottom: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #CBD5E1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #38BDF8 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 720px;
  margin: 0 auto 2.2rem; font-weight: 400;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ─── Trust Badges ─── */
.trust-badges {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.trust-badge {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--text-subtle); font-weight: 500;
}
.trust-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-emerald); }

/* ─── Before/After Mockup ─── */
.mockup-wrapper {
  margin-top: 3rem; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: 0 25px 60px rgba(0,0,0,0.6); backdrop-filter: blur(12px);
}
.mockup-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem 1rem; border-bottom: 1px solid var(--border-color);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; } .dot-yellow { background: #f59e0b; } .dot-green { background: #10b981; }
.mockup-url-bar {
  flex: 1; margin-left: 1rem; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color); border-radius: 6px;
  padding: 0.35rem 0.8rem; color: var(--text-subtle); font-size: 0.8rem;
}
.mockup-body { padding: 1.5rem; }
.before-after-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.ba-card { background: rgba(0,0,0,0.3); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; }
.ba-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.ba-label.before { color: var(--accent-red); }
.ba-label.after { color: var(--accent-emerald); }
.ba-size { font-size: 3rem; font-weight: 900; margin-bottom: 0.3rem; }
.ba-size.bloated { color: var(--accent-red); }
.ba-size.optimized { color: var(--accent-emerald); }
.ba-unit { font-size: 0.85rem; color: var(--text-muted); }
.ba-bar { height: 8px; border-radius: 4px; margin-top: 1rem; }
.ba-bar.full { background: linear-gradient(90deg, var(--accent-red), #F97316); width: 96%; }
.ba-bar.slim { background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan)); width: 25%; }
.ba-arrow { font-size: 2rem; color: var(--primary-light); }
.ba-savings { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-muted); }

/* ─── Section Headers ─── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; letter-spacing: -0.5px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 2rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover {
  background: var(--bg-card-hover); border-color: var(--border-highlight);
  transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.card-icon {
  width: 48px; height: 48px; background: rgba(2, 132, 199, 0.12);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.5rem;
}
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.card-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ─── Grid Layouts ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── Problem / Solution ─── */
.problem-solution { padding: 5rem 0; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.ps-card { padding: 2.5rem; display: flex; flex-direction: column; }
.ps-card.problem { border-color: rgba(239, 68, 68, 0.25); }
.ps-card.solution { border-color: rgba(16, 185, 129, 0.25); }
.ps-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.ps-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.3px; }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.ps-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
.ps-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ps-list li .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}
.ps-list li .icon.cross { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.ps-list li .icon.check { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ps-item-body { flex: 1; color: var(--text-muted); }
.ps-item-title { color: var(--text-main); font-weight: 700; margin-right: 0.35rem; display: inline; }
.ps-item-desc { color: var(--text-muted); display: inline; }

/* ─── Steps Flow ─── */
.steps-section { padding: 5rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step-card { position: relative; padding-top: 3rem; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 2rem;
  width: 44px; height: 44px; background: var(--primary);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
}

/* ─── Comparison Table ─── */
.comparison-section { padding: 5rem 0; }
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-color);
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.comparison-table th {
  background: rgba(0,0,0,0.3); color: var(--text-muted);
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.comparison-table th:last-child { color: var(--primary-light); }
.comparison-table td { color: var(--text-muted); }
.comparison-table td:last-child { color: var(--text-main); font-weight: 600; }
.check { color: var(--accent-emerald); font-weight: 700; }
.cross { color: var(--accent-red); font-weight: 700; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--primary); background: rgba(30, 41, 59, 0.95); box-shadow: var(--shadow-glow); }
.popular-badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: #fff; padding: 0.2rem 0.7rem; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.price-tag { font-size: 2.6rem; font-weight: 900; margin: 1rem 0 0.2rem; color: var(--text-main); }
.price-tag span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.price-annual { font-size: 0.82rem; color: var(--text-subtle); margin-bottom: 0.5rem; }
.feature-list { list-style: none; margin: 1.2rem 0 1.5rem; flex: 1; }
.feature-list li {
  padding: 0.45rem 0; display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-muted); font-size: 0.88rem;
}
.feature-list li .check-icon { color: var(--accent-emerald); flex-shrink: 0; font-weight: 700; }

/* ─── FAQ ─── */
.faq-container { max-width: 800px; margin: 3rem auto 0; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); margin-bottom: 0.8rem; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1.2rem 1.4rem; background: none; border: none;
  color: var(--text-main); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-question .faq-toggle { transition: var(--transition); font-size: 1.2rem; color: var(--text-subtle); }
.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--primary-light); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--text-muted); display: none; font-size: 0.92rem; line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* ─── Edge Cases / Technical ─── */
.edge-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.edge-card .edge-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.5rem; font-size: 1rem; }
.edge-card .edge-icon { font-size: 1.2rem; }

/* ─── MSP Metrics ─── */
.metrics-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center; padding: 2rem;
}
.metric-value { font-size: 2rem; font-weight: 900; }
.metric-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ─── Audience Tabs ─── */
.audience-tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.audience-tab {
  padding: 0.6rem 1.5rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
}
.audience-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.audience-content { display: none; }
.audience-content.active { display: block; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.3rem; text-align: left; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-main); }
.form-input, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-family: inherit; font-size: 0.92rem; transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.25);
}

/* Flash Messages */
.flash-messages { margin-bottom: 1.5rem; }
.flash-alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 0.8rem; font-weight: 500; }
.flash-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-highlight); text-align: center; padding: 4rem 2rem;
}

/* ─── Footer ─── */
.site-footer {
  background: rgba(5, 8, 20, 0.95); border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 1.5rem; margin-top: 5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); margin-top: 0.8rem; max-width: 300px; font-size: 0.88rem; }
.footer-column h4 { color: var(--text-main); font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.6rem; }
.footer-column a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-column a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-subtle); font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-subtle); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .grid-3, .steps-grid, .edge-case-grid { grid-template-columns: 1fr; }
  .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .before-after-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ba-arrow { transform: rotate(90deg); }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2rem; }
  .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .trust-badges { gap: 1rem; }
  .metrics-bar { grid-template-columns: 1fr 1fr; }
}
