:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #64748B;
  --color-white: #FFFFFF;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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 30px 60px -20px rgba(49, 46, 129, 0.28);
}

/* === 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.6;
  color: var(--color-text);
  background: var(--color-white);
  -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); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; margin: 0 0 .75em; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .75em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-white); box-shadow: 0 10px 25px -10px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 35px -10px rgba(99, 102, 241, 0.7); color: var(--color-white); }
.btn-accent {
  background: var(--color-accent); color: var(--color-white);
  box-shadow: 0 10px 25px -10px rgba(34, 197, 94, 0.55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 35px -10px rgba(34, 197, 94, 0.65); color: var(--color-white); }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -10px rgba(49, 46, 129, 0.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark); padding: .5rem; border-radius: 10px; cursor: pointer;
  display: inline-flex;
}
.primary-nav { display: none; flex-direction: column; gap: .25rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500; padding: .6rem .25rem;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { color: var(--color-primary); font-weight: 600; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 2rem; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a:not(.nav-cta)::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:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta { padding: .55rem 1.15rem; border-radius: 999px; background: var(--color-primary); color: var(--color-white); }
  .primary-nav .nav-cta:hover { background: var(--color-neutral-dark); }
}

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  padding-block: 4rem 3rem; text-align: center;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(129, 140, 248, 0.25), transparent 60%),
              linear-gradient(180deg, var(--color-neutral-light) 0%, var(--color-white) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 300px; pointer-events: none;
  background: radial-gradient(600px 200px at 80% 100%, rgba(34, 197, 94, 0.08), transparent 70%);
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; font-weight: 600; color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08); padding: .4rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  max-width: 55ch; margin: 1.25rem auto 2rem;
  font-size: 1.15rem; color: var(--color-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual {
  margin: 0 auto; max-width: 1000px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.hero-visual img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

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

/* === Sections === */
.section { padding-block: 4rem; }
.section.alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.intro { text-align: center; }
.intro p { font-size: 1.08rem; color: var(--color-text); }
@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

/* === Cards grid === */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--color-white); 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), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, 0.35); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; font-size: .97rem; }
.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.12), rgba(34, 197, 94, 0.12));
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial {
  position: relative; margin: 0; padding: 2.5rem 1.5rem;
  text-align: center; font-size: 1.15rem; line-height: 1.65;
  color: var(--color-neutral-dark);
}
.testimonial .quote-mark { color: var(--color-primary); opacity: .35; margin-bottom: .5rem; }
.testimonial p { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 60ch; margin: 0 auto 1.25rem; font-style: normal; }
.testimonial cite { display: block; font-style: normal; font-size: .95rem; color: var(--color-muted); font-family: var(--font-body); }

/* === CTA band === */
.cta-band {
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-white); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 200px at 20% 20%, rgba(255,255,255,0.18), transparent 60%),
              radial-gradient(500px 200px at 80% 80%, rgba(34,197,94,0.20), transparent 60%);
}
.cta-band > .container { position: relative; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* === Contact band === */
.contact-band-section { background: var(--color-neutral-light); text-align: center; padding-block: 3rem; }
.contact-band-section p { font-size: 1.05rem; color: var(--color-neutral-dark); }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-list details {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: rgba(99, 102, 241, 0.3); }
.faq-list summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark); font-size: 1.05rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--color-primary);
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: .75rem; color: var(--color-muted); font-size: .97rem; }

/* === Form === */
.form-section { background: var(--color-neutral-light); }
.contact-form {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--color-text);
  padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-white); 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(99, 102, 241, 0.2);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(255,255,255,0.85);
  padding-block: 3.5rem 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h4 { color: var(--color-white); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-white); }
.site-footer nav a { display: block; padding: .3rem 0; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.65); font-size: .95rem; margin-top: 1rem; max-width: 30ch; }
.legal-links { font-size: .85rem; color: rgba(255,255,255,0.65); }
.copyright { font-size: .85rem; color: rgba(255,255,255,0.55); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.logo-footer img { height: 60px; filter: brightness(0) invert(1); }

/* === 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; 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 1rem; font-size: .93rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: .55rem; }
.cookie-banner__prefs label { display: flex; gap: .55rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; }

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