/* Base */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5a6b7a;
  --primary: #0b6cff;
  --primary-dark: #0852c2;
  --accent: #00b3a4;
  --border: #e4e9ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 108, 255, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(11, 108, 255, 0.08);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(247, 249, 251, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: none;
  gap: 18px;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--muted);
  font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--text);
}

.mobile-menu.is-open {
  display: flex;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 16px 0;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-card li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--primary);
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
}

.testimonial p {
  margin: 0 0 12px;
  color: var(--muted);
}

.testimonial span {
  font-weight: 600;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Contact */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
}

.contact-card h3 {
  margin-top: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  width: min(560px, 94%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  cursor: pointer;
}

.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.toggle[aria-checked="true"] {
  background: var(--accent);
}

.toggle[aria-checked="true"]::after {
  transform: translateX(20px);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utilities */
.muted {
  color: var(--muted);
}

.spaced {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-grid > div {
    flex: 1;
  }

  .card-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(33% - 16px);
  }

  .contact-grid {
    flex-direction: row;
  }

  .contact-card {
    flex: 1;
  }

  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
