/* Base */
:root {
  --bg: #f8f7f4;
  --text: #1d2026;
  --muted: #5a6470;
  --primary: #3f5efb;
  --primary-dark: #2f49c2;
  --accent: #ff8a4c;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --border: #d9dee6;
  --success: #1f8f5f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--surface-alt);
}

.section.dark {
  background: var(--text);
  color: #f7f7f7;
}

.section.dark a {
  color: #f7f7f7;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.title {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: var(--primary-dark);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.light {
  background: #fff;
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.card.highlight {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(63, 94, 251, 0.18);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(63, 94, 251, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(63, 94, 251, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  font-size: 20px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  position: absolute;
  top: 70px;
  right: 20px;
  width: 220px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.15);
}

.nav-links.is-open {
  display: flex;
}

.menu-toggle {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* Hero */
.hero {
  padding: 64px 0 72px;
}

.hero .row {
  gap: 32px;
}

.hero .card {
  background: linear-gradient(135deg, rgba(63, 94, 251, 0.12), rgba(255, 138, 76, 0.12));
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Feature blocks */
.feature-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Services */
.service-card h3 {
  margin: 0;
}

.price {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Testimonials */
.testimonial {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 600;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-row strong {
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background: #10121a;
  color: #c9ced6;
  padding: 40px 0;
}

.footer .row {
  gap: 24px;
}

.footer a {
  color: #c9ced6;
}

.footer .brand {
  color: #fff;
}

/* Cookie banner & modal */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.2);
  display: none;
  z-index: 30;
}

.cookie-banner.is-visible {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 26, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal .modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.toggle button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Utilities */
.muted {
  color: var(--muted);
}

.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--success);
}

@media (min-width: 768px) {
  .row {
    flex-direction: row;
  }

  .grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .grid > * {
    flex: 1 1 calc(33.333% - 16px);
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
  }

  .menu-toggle {
    display: none;
  }

  .hero-stats {
    flex-direction: row;
  }

  .stats {
    flex-direction: row;
  }

  .stat {
    flex: 1;
  }

  .split {
    flex-direction: row;
  }

  .comparison-row {
    flex-direction: row;
    justify-content: space-between;
  }
}
