:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4B5479;
  --color-white: #ffffff;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Sora', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 20px rgba(31, 27, 90, 0.06);
  --shadow-lift: 0 20px 60px -20px rgba(49, 46, 129, 0.35);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  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 1rem;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
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: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-neutral-dark); color: var(--color-white);
  padding: .5rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 242, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px -18px rgba(49, 46, 129, 0.45);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }

.primary-nav { display: none; }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem;
  padding: .5rem .25rem; position: relative;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: var(--color-white);
  padding: .55rem 1rem; border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); }

.primary-nav.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-white);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-white);
}
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-neutral-light); }
.btn-accent {
  background: var(--color-accent); color: var(--color-white);
}
.btn-accent:hover { background: #16a34a; }

/* === Hero === */
.hero {
  position: relative;
  padding-block: 3rem 4rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(129, 140, 248, 0.05) 60%, transparent);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -10%; right: -10%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-grid.single { grid-template-columns: 1fr; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-primary); margin-bottom: 1rem;
  padding: .35rem .75rem; background: rgba(79, 70, 229, 0.08); border-radius: 999px;
}
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4/5; object-fit: cover; width: 100%;
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-tinted { background: var(--color-neutral-light); }
.section-dark { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(238, 242, 255, 0.75); }
.center { text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
.split-visual img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}

/* === Grid & Cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(79, 70, 229, 0.35); }
a.card-link { color: inherit; text-decoration: none; }
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: rgba(79, 70, 229, 0.1); color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Stats === */
.stats .stat {
  padding: 1.5rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(238, 242, 255, 0.12);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--color-accent);
  margin-bottom: .5rem; line-height: 1.1;
}
.section-dark .stat p { color: rgba(238, 242, 255, 0.8); }

/* === Testimonial === */
.testimonial {
  margin: 0; padding: 2rem; border-left: 3px solid var(--color-accent);
  background: var(--color-neutral-light); border-radius: var(--radius-md);
}
.testimonial p {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 1.2rem; line-height: 1.5; color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block; margin-top: .75rem;
  font-style: normal; font-size: .9rem; color: var(--color-muted);
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-white);
  padding-block: 4rem; text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(238, 242, 255, 0.85); max-width: 640px; margin: 0 auto 1.75rem; }

.contact-band-text {
  text-align: center; max-width: 720px; margin: 0 auto 1.5rem;
  font-size: 1.05rem; color: var(--color-muted);
}
.section-dark .contact-band-text { color: rgba(238, 242, 255, 0.85); }

/* === Contact form === */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-white); color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--color-muted); line-height: 1.4;
  flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }

/* === FAQ === */
.faq details {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark); font-size: 1rem;
  padding-block: .35rem; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-primary); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h3 {
  color: var(--color-white); font-size: .9rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 1rem;
}
.site-footer a { color: rgba(238, 242, 255, 0.85); }
.site-footer a:hover { color: var(--color-white); }
.tagline { color: rgba(238, 242, 255, 0.7); font-size: .95rem; }
.logo-footer img { height: 60px; width: auto; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact address { font-style: normal; line-height: 1.7; color: rgba(238, 242, 255, 0.85); }
.legal-nav { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; font-size: .88rem; }
.copyright {
  border-top: 1px solid rgba(238, 242, 255, 0.15);
  padding-top: 1.25rem; text-align: center;
  font-size: .85rem; color: rgba(238, 242, 255, 0.6);
}

/* === 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.25rem 1.5rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-body); font-weight: 500; font-size: .9rem;
  padding: .55rem 1rem; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background .2s var(--ease);
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: var(--color-white); }
.cookie-banner [data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner [data-cookie-reject], .cookie-banner [data-cookie-settings] {
  background: transparent; color: var(--color-neutral-light);
  border-color: rgba(238, 242, 255, 0.3);
}
.cookie-banner [data-cookie-reject]:hover, .cookie-banner [data-cookie-settings]:hover {
  background: rgba(238, 242, 255, 0.1);
}
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(238, 242, 255, 0.2);
  display: flex; flex-direction: column; gap: .5rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner [data-cookie-save] {
  align-self: flex-start; margin-top: .5rem;
  background: var(--color-primary); color: var(--color-white);
}

/* === Reveal === */
.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; }
}

/* === Responsive === */
@media (min-width: 640px) {
  .grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo-footer img { height: 72px; }
  .hero { padding-block: 5rem 6rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-grid.single { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding-block: 5.5rem; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; align-items: center; gap: 1.5rem;
    position: static; padding: 0; background: transparent; box-shadow: none; border: 0;
  }
}

@media (min-width: 1024px) {
  .grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: clamp(2.75rem, 4.5vw, 4.25rem); }
}
