/* MarginMax Bundles — Design System */
:root {
  --brand: #1e3a8a;
  --brand-mid: #1d4ed8;
  --brand-light: #60a5fa;
  --profit: #064e3b;
  --profit-mid: #059669;
  --profit-light: #34d399;
  --alert: #7f1d1d;
  --alert-light: #f87171;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: var(--brand-light);       /* text/border on dark bg */
  --accent-strong: var(--brand);      /* fill for buttons */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .875rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.1rem; color: var(--brand);
  text-decoration: none;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; border: none; transition: all .2s;
}
.btn-primary {
  background: var(--accent-strong); color: #fff;
}
.btn-primary:hover { background: var(--brand-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,138,.3); }
.btn-outline {
  background: transparent; color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-profit {
  background: var(--profit); color: #fff;
}
.btn-profit:hover { background: var(--profit-mid); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: 10px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 60%, #2563eb 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .35rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 span { color: var(--profit-light); }
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.85);
  max-width: 580px; margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-social-proof {
  margin-top: 3rem; display: flex; align-items: center; justify-content: center;
  gap: 1rem; color: rgba(255,255,255,.7); font-size: .85rem;
}
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  margin-left: -8px;
}
.hero-avatars img:first-child { margin-left: 0; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.stats-bar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem;
}
.stat-item { text-align: center; }
.stat-item .value { font-size: 1.75rem; font-weight: 800; color: var(--brand); }
.stat-item .label { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ── Section ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--profit-mid);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--brand);
  margin-bottom: 1rem; line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(30,58,138,.1); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #eff6ff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--brand);
}
.feature-icon.profit { background: #ecfdf5; color: var(--profit-mid); }
.feature-icon.alert { background: #fef2f2; color: #dc2626; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ── Comparison table ── */
.comparison { margin-top: 3rem; overflow-x: auto; }
.comparison table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparison th, .comparison td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison th { background: var(--brand); color: #fff; font-weight: 600; }
.comparison th:first-child { border-radius: 8px 0 0 0; }
.comparison th:last-child { border-radius: 0 8px 0 0; }
.comparison tr:hover td { background: #f1f5f9; }
.check { color: var(--profit-mid); font-weight: 700; }
.cross { color: #dc2626; }

/* ── Testimonials ── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
}
.testimonial-text { font-size: .95rem; color: #334155; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 700; font-size: .9rem; }
.testimonial-author .role { font-size: .8rem; color: var(--muted); }
.stars { color: #f59e0b; font-size: .85rem; margin-bottom: .75rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pricing-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: box-shadow .25s;
}
.pricing-card.popular {
  border-color: var(--brand); position: relative;
  box-shadow: 0 8px 32px rgba(30,58,138,.15);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  padding: .25rem .875rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-desc { font-size: .85rem; color: var(--muted); margin: .75rem 0 1.25rem; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; padding: .35rem 0; border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg { flex-shrink: 0; margin-top: 2px; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 100%);
  color: #fff; text-align: center; padding: 5rem 1.5rem;
}
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-section .btn-white {
  background: #fff; color: var(--brand); font-weight: 700;
}
.cta-section .btn-white:hover { background: #f0f9ff; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links .nav-hide { display: none; }
  .hero { padding: 3.5rem 1rem 3rem; }
}
