/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-surface: #f9fafb;
  --color-border: #e5e7eb;
  --radius: 8px;
  --max-w: 1120px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       color: var(--color-text); background: var(--color-bg); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 2px solid transparent;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }
.btn--lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ── Header / Nav ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  max-width: var(--max-w); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.5rem; }
.nav__links { display: flex; gap: 1.5rem; align-items: center; }
.nav__links a { color: var(--color-muted); font-weight: 500; }
.nav__links a:hover { color: var(--color-text); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}
.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero__sub {
  max-width: 540px; margin: 1.5rem auto;
  color: var(--color-muted); font-size: 1.125rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ── Features ─────────────────────────────────────────────────────── */
.features {
  background: var(--color-surface); padding: 5rem 1.5rem;
}
.features h2 {
  text-align: center; font-size: 1.75rem; font-weight: 700;
  margin-bottom: 3rem; max-width: var(--max-w); margin-inline: auto;
}
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.feature-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
}
.feature-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--color-muted); font-size: 0.9rem; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing { padding: 5rem 1.5rem; max-width: var(--max-w); margin: 0 auto; }
.pricing h2 { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 3rem; }
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pricing-card {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem;
}
.pricing-card--featured {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.pricing-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.pricing-card__price span { font-size: 1rem; color: var(--color-muted); }
.pricing-card ul { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pricing-card li { color: var(--color-muted); font-size: 0.9rem; }
.pricing-card li::before { content: '✓  '; color: var(--color-primary); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  flex-wrap: wrap; gap: 1rem;
  color: var(--color-muted); font-size: 0.875rem;
}
.footer__nav { display: flex; gap: 1.5rem; }
.footer__nav a:hover { color: var(--color-text); }
