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

:root {
  --bg: #ffffff;
  --surface: #f8f9fb;
  --surface-alt: #f1f3f9;
  --border: #e5e7eb;
  --border-accent: #c7d2fe;
  --text: #111827;
  --text-dim: #6b7280;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-hover: #4338ca;
  --green: #059669;
  --green-light: #ecfdf5;
  --orange: #ea580c;
  --orange-light: #fff7ed;
  --rose: #e11d48;
  --rose-light: #fff1f2;
  --blue: #0284c7;
  --blue-light: #f0f9ff;
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1040px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Nav ===== */
nav {
  position: fixed; top: 0; width: 100%; padding: 0.85rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.84rem;
  font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-cta {
  background: var(--accent); color: #fff !important; border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.page-top { padding-top: 8rem; padding-bottom: 4rem; }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ===== Typography ===== */
.label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem;
}
.title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.title-sm { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.subtitle { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; margin-top: 0.75rem; max-width: 540px; }
.gradient {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.5rem; border-radius: 10px; font-size: 0.875rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.2); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: #d1d5db; background: var(--surface); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; border-radius: 8px; }
.cta-row { display: flex; gap: 0.75rem; margin-top: 2rem; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all 0.25s;
}
.card:hover { border-color: var(--border-accent); box-shadow: 0 8px 24px rgba(79,70,229,0.06); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.1rem; font-weight: 700;
}
.icon-indigo { background: var(--accent-light); color: var(--accent); }
.icon-green { background: var(--green-light); color: var(--green); }
.icon-orange { background: var(--orange-light); color: var(--orange); }
.icon-blue { background: var(--blue-light); color: var(--blue); }
.icon-rose { background: var(--rose-light); color: var(--rose); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.65; }
.card-tag {
  display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--surface); color: var(--text-dim);
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; font-weight: 800; margin-bottom: 1rem;
  background: var(--accent-light); color: var(--accent);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.step p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 2rem; text-align: center; }
.stat h3 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.stat p { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.2rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-indigo h3 { color: var(--accent); }
.stat-green h3 { color: var(--green); }
.stat-orange h3 { color: var(--orange); }

/* ===== Two-col ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.8; margin-bottom: 0.85rem; }

/* ===== Feature list ===== */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
}
.feature-list li:last-child { border-bottom: none; }
.check {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; margin-top: 0.1rem;
  background: var(--green-light); color: var(--green);
}

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; background: var(--bg); position: relative;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-badge {
  position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.75rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-card .price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0 0.25rem; }
.price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-dim); }
.price-card .desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 2rem; }
.price-card li { font-size: 0.85rem; color: var(--text-dim); padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.8rem; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== Contact form ===== */
.form-grid { display: grid; gap: 1rem; max-width: 480px; }
.form-grid label { font-size: 0.8rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 0.3rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.875rem; font-family: inherit;
  background: var(--bg); color: var(--text); transition: border-color 0.2s;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.form-grid textarea { resize: vertical; min-height: 100px; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #eef2ff, #faf5ff, #fdf2f8);
  border: 1px solid #e0e7ff; border-radius: var(--radius-lg);
  padding: 3.5rem; text-align: center;
}
.cta-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ===== Legal ===== */
.legal-body { max-width: 640px; }
.legal-body h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 0.75rem; }
.legal-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-body li { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 0.4rem; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.5rem; max-width: 260px; line-height: 1.6; }
.footer-cols { display: flex; gap: 3rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 0.65rem; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.8rem; margin-bottom: 0.35rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; font-size: 0.73rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; margin-left: 1.25rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.78rem; }
  .two-col, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn { justify-content: center; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-cols { gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .footer-bottom a { margin-left: 0; margin-right: 1rem; }
  .title { font-size: 1.75rem; }
}

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
