/* Base */
:root {
  --bg: #f6f7fb;
  --text: #1b1d25;
  --muted: #4d5562;
  --brand: #5b6cff;
  --brand-dark: #3942c2;
  --accent: #ff7a59;
  --panel: #ffffff;
  --border: #e3e6ef;
  --shadow: 0 8px 24px rgba(27, 29, 37, 0.08);
}

*,
*::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 {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--panel);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li {
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: var(--brand-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: rgba(91, 108, 255, 0.08);
}

/* Header */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(280px, 80%);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 90px 24px 24px;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  transform: translateX(0);
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
}

.nav-toggle {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 29, 37, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  font-size: 20px;
}

.card .meta {
  font-size: 14px;
  color: var(--muted);
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-row img {
  width: 34px;
  height: 34px;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-item img {
  width: 40px;
  height: 40px;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat span {
  font-size: 28px;
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial {
  background: #fff7f4;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial strong {
  color: var(--text);
}

/* Panels */
.panel {
  background: var(--panel);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel.highlight {
  background: #eef1ff;
}

/* Split */
.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 18px 16px;
  display: none;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 36px 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #cbd5f5;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* Cookie banner & modal */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 92%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

#cookie-banner.is-visible {
  display: flex;
}

#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

#cookie-modal.is-visible {
  display: flex;
}

.cookie-modal-content {
  width: min(640px, 92%);
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cookie-option input {
  width: 18px;
  height: 18px;
}

/* Tables */
.table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

/* Utilities */
.muted {
  color: var(--muted);
}

.divider {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.spacing-top {
  margin-top: 20px;
}

/* Responsive */
@media (min-width: 720px) {
  .hero-grid {
    flex-direction: row;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(50% - 18px);
  }

  .stats {
    flex-direction: row;
  }

  .stat {
    flex: 1;
  }

  .split {
    flex-direction: row;
    align-items: flex-start;
  }

  .split > * {
    flex: 1;
  }

  .testimonials {
    flex-direction: row;
  }

  .testimonial {
    flex: 1;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    transform: none;
    gap: 18px;
    background: transparent;
  }

  .nav-backdrop {
    display: none;
  }

  .hero {
    flex-direction: row;
    align-items: center;
  }

  .hero-panel {
    flex: 1.1;
  }

  .hero-visual {
    flex: 0.9;
  }
}
