:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(49, 46, 129, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(49, 46, 129, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-io); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Container === */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 242, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(49, 46, 129, 0.08);
  transition: box-shadow .3s var(--ease-io), background .3s var(--ease-io);
}
.site-header.scrolled { background: rgba(255,255,255,0.85); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 1.25rem; max-width: 1280px; margin-inline: auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 1px solid rgba(49,46,129,0.15);
  color: var(--color-neutral-dark); padding: .5rem; border-radius: 10px; cursor: pointer;
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative; padding: .4rem 0; font-weight: 500; font-size: .95rem;
  color: var(--color-neutral-dark);
}
.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-io);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; padding: .55rem 1.1rem; border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.primary-nav.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
  padding: 1rem; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.primary-nav.is-open a { padding: .6rem .5rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: transform .2s var(--ease-io), box-shadow .2s var(--ease-io), background .2s var(--ease-io);
  text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 8px 24px -8px rgba(99,102,241,0.55); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(99,102,241,0.6); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(34,197,94,0.5); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(49,46,129,0.2); }
.btn-ghost:hover { border-color: var(--color-neutral-dark); background: rgba(49,46,129,0.04); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Hero (split) === */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(129,140,248,0.15), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(34,197,94,0.10), transparent 50%),
    linear-gradient(135deg, #ffffff 0%, var(--color-neutral-light) 100%);
  padding-block: 3.5rem;
}
.hero-inner {
  max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
.hero-inner.single { grid-template-columns: 1fr; text-align: center; }
.hero-copy .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .78rem; color: var(--color-primary); font-weight: 600; margin-bottom: 1rem; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: rgba(49,46,129,0.75); max-width: 52ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.center-copy { margin-inline: auto; max-width: 640px; }
.center-copy .hero-ctas { justify-content: center; }

/* === Sections === */
.section { padding-block: 4rem; }
.section-tinted { background: linear-gradient(180deg, #ffffff 0%, var(--color-neutral-light) 100%); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.section-head p { color: rgba(49,46,129,0.7); }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(49,46,129,0.06);
  transition: transform .25s var(--ease-io), box-shadow .25s var(--ease-io);
  display: block; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; }
.card-link h3 { color: var(--color-neutral-dark); }
.card p { color: rgba(49,46,129,0.75); margin-bottom: 0; }
.card-icon {
  display: inline-flex; padding: .6rem; margin-bottom: 1rem;
  color: var(--color-primary); background: var(--color-neutral-light); border-radius: 12px;
  width: 48px; height: 48px; box-sizing: content-box;
}

/* === Testimonial === */
.testimonial { margin: 0; padding: 2rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); position: relative; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.55; color: var(--color-neutral-dark); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-size: .95rem; color: rgba(49,46,129,0.65); }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 4rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(238,242,255,0.9); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-accent { color: #fff; }
.contact-inline { font-size: .95rem; color: rgba(238,242,255,0.95); }
.contact-inline a { color: #fff; text-decoration: underline; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem; padding: .75rem 1rem;
  border: 1.5px solid rgba(49,46,129,0.15); border-radius: 10px;
  background: #fff; color: var(--color-neutral-dark); transition: border-color .2s var(--ease-io), box-shadow .2s var(--ease-io);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: rgba(49,46,129,0.8); }
.form-consent input { margin-top: .25rem; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid rgba(49,46,129,0.08); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); color: var(--color-neutral-dark); list-style: none; padding-right: 1.5rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--color-primary); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .75rem 0 0; color: rgba(49,46,129,0.75); }

/* === Footer === */
.site-footer { background: var(--color-neutral-light); padding-top: 3rem; margin-top: 3rem; color: rgba(49,46,129,0.85); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.footer-grid h4 { font-family: var(--font-heading); font-size: .95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .35rem; }
.footer-grid a { color: var(--color-neutral-dark); }
.footer-grid a:hover { color: var(--color-primary); }
.footer-grid address { font-style: normal; font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }
.legal-links li { margin: 0; }
.muted { color: rgba(49,46,129,0.65); font-size: .9rem; }
.copyright { border-top: 1px solid rgba(49,46,129,0.1); padding-block: 1.25rem; font-size: .85rem; color: rgba(49,46,129,0.6); text-align: center; }

/* === 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); 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: .9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: inherit; font-size: .88rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; border: none;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(238,242,255,0.4); }
.cookie-banner [data-cookie-settings] { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(238,242,255,0.4); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.cookie-banner [data-cookie-save] { align-self: flex-start; background: var(--color-primary); color: #fff; margin-top: .3rem; }

/* === Reveal on scroll === */
.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-3 { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner__actions { flex-wrap: nowrap; }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .hero { padding-block: 6rem; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .primary-nav {
    display: flex; align-items: center; gap: 1.25rem;
    position: static; padding: 0; background: transparent; box-shadow: none;
  }
  .nav-toggle { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .section { padding-block: 5.5rem; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: clamp(2.75rem, 4.5vw, 4rem); }
}
