:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-bg: #ffffff;
  --color-text: #1e1b4b;
  --color-muted: #4b5170;
  --color-border: rgba(49, 46, 129, 0.12);
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(49, 46, 129, 0.20);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* === Base === */
* { 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-bg);
  -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.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 .75rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10000; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: .6rem 1rem; border-radius: 8px; }

/* === 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.85); box-shadow: 0 8px 30px -18px rgba(49,46,129,0.28); border-bottom-color: var(--color-border); }
.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; }
.logo-footer img { height: 64px; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.primary-nav a { position: relative; display: inline-block; padding: .35rem 0; font-family: var(--font-heading); font-weight: 500; font-size: .98rem; color: var(--color-neutral-dark); }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.primary-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-md); }
.primary-nav.is-open { display: block; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: transparent; border: 0; padding: 0; box-shadow: none; }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; }
}

/* === Hero (centered) === */
.hero { position: relative; padding-block: 3.5rem 2rem; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%); }
.hero-glow { position: absolute; inset: -20% 10% auto 10%; height: 60%; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.28), transparent 70%); filter: blur(30px); pointer-events: none; }
.hero-inner { position: relative; }
.hero-inner h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 1rem auto 1.5rem; font-size: 1.1rem; color: var(--color-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 0; }
.hero-figure { margin: 2rem auto 0; max-width: 1080px; padding-inline: 1.25rem; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
@media (min-width: 768px) {
  .hero { padding-block: 5.5rem 3rem; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 24px -12px rgba(99,102,241,0.65); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(99,102,241,0.75); }
.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); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; }

.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.05rem; }

/* === Cards grid === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: .98rem; margin: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(129,140,248,0.15)); color: var(--color-primary); margin-bottom: 1rem; }

/* === Testimonial === */
.testimonial { background: var(--color-neutral-light); }
.testimonial blockquote { margin: 0; text-align: center; position: relative; padding: 1rem 0; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--color-neutral-dark); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; position: relative; overflow: hidden; }
.cta-band-inner { text-align: center; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35); }
.cta-band .btn-primary:hover { color: var(--color-primary); }

/* === Contact band === */
.contact-band { background: var(--color-neutral-light); }
.contact-band-inner { text-align: center; }
.contact-band address { font-style: normal; color: var(--color-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }

/* === FAQ === */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; padding: 1rem 1.25rem; margin-bottom: .75rem; transition: box-shadow .2s var(--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; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-heading); font-size: .92rem; font-weight: 600; color: var(--color-neutral-dark); margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; padding: .75rem 1rem; font: inherit; color: var(--color-text); background: var(--color-neutral-light); border: 1px solid var(--color-border); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); background: #fff; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--color-muted); margin: .5rem 0 1.5rem; line-height: 1.5; }
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-block: 3.5rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }
.site-footer .footer-tag { color: rgba(238,242,255,0.75); margin: 1rem 0 0; }
.footer-h { font-size: 1rem; color: #fff; margin: 0 0 1rem; font-family: var(--font-heading); }
.site-footer nav ul, .legal-links { list-style: none; padding: 0; margin: 0; }
.site-footer nav li, .legal-links li { margin-bottom: .5rem; }
.site-footer a { color: rgba(238,242,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; color: rgba(238,242,255,0.85); line-height: 1.8; margin: 0 0 1rem; }
.legal-links { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(238,242,255,0.15); }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(238,242,255,0.15); color: rgba(238,242,255,0.6); font-size: .88rem; }

/* === 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); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .85rem; font-size: .93rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(238,242,255,0.25); background: transparent; color: var(--color-neutral-light); font: inherit; font-size: .88rem; cursor: pointer; font-family: var(--font-heading); font-weight: 500; transition: background .15s, transform .15s; }
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #052e13; font-weight: 600; }
.cookie-banner__prefs { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(238,242,255,0.15); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .35rem; background: var(--color-neutral-light); color: var(--color-neutral-dark); }

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