:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --text: #14161f;
  --text-muted: #5b5f6d;
  --border: #e6e8ee;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-tint: #eef0ff;
  --accent: #16a34a;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 22, 31, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.btn-secondary:hover { background: #e2e2ff; }

.btn-lg {
  padding: 17px 34px;
  font-size: 18px;
}

.btn-header { display: inline-flex; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--primary-tint), transparent 60%);
}

.hero-inner {
  text-align: center;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 620px;
}

.hero-cta { margin-bottom: 44px; }

.hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stats strong {
  font-size: 24px;
  font-weight: 800;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* ---------- Feature cards ---------- */
.features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.steps h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: left;
}

.price-card-highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0;
}

.price-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.price {
  font-size: 40px;
  font-weight: 800;
  margin: 8px 0 0;
}
.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 24px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-list li {
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.price-card .btn {
  width: 100%;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.review-text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.review-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}
.review-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Final CTA ---------- */
.cta-final {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  text-align: center;
}
.cta-final-inner {
  max-width: 620px;
}
.cta-final h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
}
.cta-final p {
  margin: 0 0 32px;
  opacity: 0.92;
  font-size: 17px;
}
.cta-final .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.cta-final .btn-primary:hover {
  background: #f4f4ff;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.open {
    max-height: 320px;
  }
  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .btn-header { display: none; }
  .burger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .section-sub { margin-bottom: 36px; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .btn-lg { width: 100%; }
  .hero-cta .btn-lg { width: 100%; }
}
