:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4C4A78;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.28);
}

/* === 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.6;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -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-secondary); }
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 1rem; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { background: rgba(245, 243, 255, 0.92); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { display: inline-flex; background: transparent; border: 0; color: var(--color-neutral-dark); padding: 0.5rem; cursor: pointer; border-radius: 8px; }
.nav-toggle:hover { background: rgba(99, 102, 241, 0.08); }
.primary-nav { display: none; flex-direction: column; gap: 0.25rem; width: 100%; padding: 1rem 0; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); font-weight: 500; padding: 0.5rem 0; }
.primary-nav a.is-active { color: var(--color-primary); }
.primary-nav.is-open { display: flex; }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; width: auto; padding: 0; gap: 1.75rem; }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
    background: var(--color-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 3.5rem 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.10), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(129, 140, 248, 0.18), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), #ffffff);
}
.hero__inner { text-align: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin: 0 auto 1.75rem; color: var(--color-muted); font-size: 1.125rem; }
.hero__cta { margin: 0 0 3rem; }
.hero__figure { margin: 2rem 0 0; }
.hero__figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 6rem 3rem; }
  .hero__figure { margin-top: 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.55);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.65); }
.btn--accent {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.5);
}
.btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(16, 185, 129, 0.6); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Sections === */
.section { padding-block: 4rem; }
.section--tint { background: linear-gradient(180deg, #ffffff, var(--color-neutral-light)); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__head p { color: var(--color-muted); }

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

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .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 {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.975rem; }
.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.14), rgba(16, 185, 129, 0.14));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Split section === */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split__figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Quote === */
.quote {
  margin: 0;
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.quote p { font-size: 1.15rem; font-style: italic; color: var(--color-neutral-dark); }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 48ch; margin-inline: auto; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

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

/* === Contact form === */
.contact-form { background: #ffffff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.95rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-muted); margin-bottom: 1.25rem; }
.form-consent input { margin-top: 0.25rem; }

/* === Map === */
.map-block { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #eae7fb; }
.map-block img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(245, 243, 255, 0.85); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(245, 243, 255, 0.85); display: block; padding: 0.25rem 0; }
.site-footer a:hover { color: #fff; }
.footer__nav a { font-weight: 500; }
.footer__tag { color: rgba(245, 243, 255, 0.7); font-style: italic; }
.footer__legal { margin-top: 1rem; font-size: 0.875rem; }
.footer__legal a { display: inline; padding: 0; }
.footer__copy { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.875rem; color: rgba(245, 243, 255, 0.6); }
.logo--footer img { height: 60px; }

/* === 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: 620px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.925rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  border: 0; padding: 0.6rem 1.1rem; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--color-neutral-light);
  transition: background .2s var(--ease);
}
.cookie-banner button:hover { background: rgba(255, 255, 255, 0.24); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #0ea472; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { margin-top: 0.5rem; background: var(--color-primary); color: #fff; }
.cookie-banner__prefs [data-cookie-save]:hover { background: var(--color-secondary); }

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