:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #22C55E;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #EFF6FF;
  --ink: #0F1E4A;
  --muted: #4b5b7a;
  --border: rgba(30, 58, 138, 0.14);
  --shadow-sm: 0 2px 20px rgba(30, 58, 138, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(30, 58, 138, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(30, 58, 138, 0.35);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(30, 64, 175, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(30, 64, 175, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(30, 64, 175, 0.35);
}
.btn-ghost:hover { background: var(--color-neutral-light); }
:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.55); outline-offset: 3px; border-radius: 6px; }

/* === Header (glass) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(239, 246, 255, 0.72);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 24px -14px rgba(30, 58, 138, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 60px; }

.nav-toggle {
  background: transparent; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.primary-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: .6rem .25rem;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-align: center;
}
.primary-nav .nav-cta:hover { text-decoration: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 1.5rem; padding: 0; border: 0; background: transparent;
  }
  .primary-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
    height: 2px; background: var(--color-primary);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .logo img { height: 96px; }
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 3.5rem 2.5rem;
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 90%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.14), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero--compact { padding-block: 3rem 1rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-secondary); margin: 0 0 0.9rem; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy--center { text-align: center; margin-inline: auto; max-width: 780px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 1.75rem; }
.hero-copy--center .lede { margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-copy--center .cta-row { justify-content: center; }
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(30, 58, 138, 0.35);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.proof-strip {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .hero { padding-block: 5rem 3.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* === Grids === */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* === Cards === */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: block;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card h3 { color: var(--color-neutral-dark); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { text-decoration: none; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 197, 94, 0.15));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, var(--color-neutral-light));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--color-neutral-dark);
  line-height: 1.5;
}
.testimonial cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* === CTA band === */
.cta-band {
  padding-block: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #ffffff;
  text-align: center;
}
.cta-band h2, .cta-band p { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: var(--color-accent); box-shadow: 0 10px 24px -10px rgba(34, 197, 94, 0.6); }
.cta-band .btn-primary:hover { box-shadow: 0 18px 30px -12px rgba(34, 197, 94, 0.7); }
.contact-inline { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }
.contact-inline a { color: #ffffff; text-decoration: underline; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px)  { .pricing-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute; top: -14px; right: 16px;
  background: var(--color-accent); color: #ffffff;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
  padding: .35rem .75rem; border-radius: 999px;
  letter-spacing: 0.04em;
}
.pricing-card__plan { margin-bottom: 0.25rem; }
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem;
  line-height: 1.1;
}
.pricing-card__lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.pricing-card__features {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.pricing-card__features li {
  display: flex; gap: .55rem; align-items: flex-start;
  color: var(--ink); font-size: 0.98rem;
}
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; text-align: center; }

/* === FAQ === */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: #ffffff;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--color-secondary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: .75rem; color: var(--muted); }

/* === Contact form === */
.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-row label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-neutral-dark);
  margin-bottom: .4rem;
}
.form-row input, .form-row select, .form-row textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer {
  margin-top: 4rem;
  background: var(--color-neutral-dark);
  color: rgba(239, 246, 255, 0.85);
  padding-block: 3rem 1.5rem;
}
.site-footer h4 { color: #ffffff; font-size: 1rem; margin-bottom: .85rem; }
.site-footer a { color: rgba(239, 246, 255, 0.85); }
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .35rem; }
.logo--footer { display: inline-block; margin-bottom: .75rem; }
.logo--footer img { filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .88rem; text-align: center; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.5; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: .85rem;
  border: 1px solid rgba(239, 246, 255, 0.28);
  background: transparent;
  color: var(--color-neutral-light);
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-banner__actions button:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent); color: #ffffff;
}
.cookie-banner__actions [data-cookie-accept]:hover { background: #1ba84c; border-color: #1ba84c; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cookie-banner__prefs label { font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: .85rem;
  background: var(--color-neutral-light); color: var(--color-neutral-dark);
  border: 0; padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  margin-top: .4rem;
}

/* === Reveal animations === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
