/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-text-muted: #4C4A78;
  --color-surface: #FFFFFF;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --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 30px 80px -30px rgba(49, 46, 129, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
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); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-heading); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 1rem; }
.section { padding-block: 4rem; }
.section--tint { background: var(--color-neutral-light); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section__lede { color: var(--color-text-muted); font-size: 1.05rem; }

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

/* === 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-io), border-color .25s var(--ease-io), box-shadow .25s var(--ease-io);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--color-border); border-radius: 12px;
  color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 1rem; right: 1rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow-md);
}
.primary-nav a {
  font-family: var(--font-heading); font-weight: 500; color: var(--color-text);
  padding: .6rem .25rem; position: relative;
}
.primary-nav a.is-current { color: var(--color-primary); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding: .55rem 1.1rem; border-radius: 999px; text-align: center;
}
.primary-nav .nav-cta:hover { color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 1.75rem; padding: 0; background: transparent; border: 0; box-shadow: none;
  }
  .primary-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; 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.is-current::after { transform: scaleX(1); }
  .primary-nav .nav-cta::after { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: .98rem;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-io), box-shadow .2s var(--ease-io), background .2s var(--ease-io), color .2s var(--ease-io);
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.7); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); color: var(--color-neutral-dark); }
.btn--on-dark { background: var(--color-accent); color: #06210F; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.6); }
.btn--on-dark:hover { color: #06210F; box-shadow: 0 16px 40px -12px rgba(34, 197, 94, 0.7); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (centered) === */
.hero { position: relative; padding-block: 3.5rem 2.5rem; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 520px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 20%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(40% 40% at 80% 30%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(40% 40% at 20% 40%, rgba(129, 140, 248, 0.16), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__inner h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 48ch; margin: 0 auto 2rem; font-size: 1.15rem; color: var(--color-text-muted); }
.hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__figure { margin: 0 auto; max-width: 1080px; }
.hero__figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .hero { padding-block: 5rem 3rem; }
}

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

.card {
  display: block; padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-io), box-shadow .25s var(--ease-io), border-color .25s var(--ease-io);
  color: inherit;
}
.card h3 { margin-top: .5rem; }
.card p { color: var(--color-text-muted); margin: 0; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(34, 197, 94, 0.14));
  color: var(--color-primary);
}
.card-link { text-decoration: none; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, 0.35); color: inherit; }

/* === Testimonial === */
.testimonial {
  margin: 0; padding: 2.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-neutral-light), #F5F7FF);
  border: 1px solid var(--color-border);
  position: relative;
}
.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: var(--color-text-muted);
}
@media (min-width: 768px) {
  .testimonial { padding: 3rem 3.5rem; }
  .testimonial p { font-size: 1.35rem; }
}

/* === CTA band === */
.cta-band {
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 46ch; margin-inline: auto; }

/* === FAQ === */
.faq details {
  border: 1px solid var(--color-border); border-radius: 14px;
  background: var(--color-surface); padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease-io);
}
.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; padding-right: 2rem; 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.4rem; color: var(--color-primary); transition: transform .2s var(--ease-io);
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: .75rem 0 0; color: var(--color-text-muted); }

/* === Form === */
.contact-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm);
}
.form-row { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text);
  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 4px rgba(99, 102, 241, 0.18);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.form-consent input { margin-top: .25rem; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }

/* === Footer === */
.site-footer {
  margin-top: 3rem;
  background: var(--color-neutral-dark); color: rgba(238, 242, 255, 0.85);
  padding-top: 3.5rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(238, 242, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(238, 242, 255, 0.7); }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.logo--footer img { height: 64px; filter: brightness(0) invert(1); }
.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem; font-size: .9rem; color: rgba(238, 242, 255, 0.7);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; color: rgba(238, 242, 255, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn { padding: .55rem 1rem; font-size: .9rem; }
.cookie-banner__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner__actions .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; align-self: flex-start; padding: .55rem 1rem; font-size: .9rem; }

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