:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B2E;
  --color-muted: #6B6785;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 10px 40px -12px rgba(76, 29, 149, 0.20);
  --shadow-lg: 0 20px 60px -20px rgba(76, 29, 149, 0.28);
}

/* === 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);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -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.15; margin: 0 0 .75em; }
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.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === Layout === */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section-tint { background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(250, 245, 255, 1)); }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-lede { text-align: center; max-width: 60ch; margin: 0 auto 3rem; color: var(--color-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .75rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }
.muted { color: var(--color-muted); }

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

/* === Header / Nav (glass) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 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 .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 4px 20px rgba(76, 29, 149, 0.06);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  max-width: 1200px; margin-inline: auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.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 {
  background: transparent; border: 1px solid var(--color-border); border-radius: 10px;
  padding: .5rem; color: var(--color-neutral-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative; color: var(--color-neutral-dark); font-weight: 500; padding: .5rem 0;
}
.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);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a.nav-cta {
  background: var(--color-primary); color: #fff; padding: .55rem 1rem; border-radius: 999px;
}
.primary-nav a.nav-cta::after { display: none; }
.primary-nav a.nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

.primary-nav.is-open {
  display: flex; flex-direction: column; gap: 1rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 1.75rem; align-items: center; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-family: var(--font-body); font-size: .95rem;
  border: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(34,197,94,0.5); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; background: #16a34a; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* === Hero (centered) === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 20% auto 20%; height: 480px;
  background: radial-gradient(closest-side, rgba(34,197,94,0.14), rgba(124,58,237,0.10) 60%, transparent 80%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-inner h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 0 auto 2rem; font-size: 1.125rem; color: var(--color-muted); }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-figure { margin: 0 auto; max-width: 1040px; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

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

/* === Grids & cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@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 {
  background: #fff; border-radius: var(--radius-md); padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: .25rem; }
.card p { color: var(--color-muted); font-size: .95rem; margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--color-primary); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.12));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Quote === */
.quote {
  margin: 0; padding: 2rem 1.5rem; text-align: center;
  border-left: 4px solid var(--color-accent); background: #fff;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--color-neutral-dark); margin-bottom: 1rem; line-height: 1.45; }
.quote cite { font-style: normal; color: var(--color-muted); font-size: .9rem; }

/* === CTA band === */
.cta-band {
  margin-block: 2rem; padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; text-align: center;
  border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin-inline: auto; }
.cta-band .btn-accent { margin-top: 1rem; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 2rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem 1rem; border: 1.5px solid var(--color-border);
  border-radius: 10px; background: #fff; color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-consent {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .875rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: .2rem; }
.contact-form button[type="submit"] { justify-self: start; margin-top: .5rem; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--color-neutral-dark);
  font-family: var(--font-heading); font-size: 1.05rem;
  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: 0; font-size: 1.5rem;
  color: var(--color-primary); transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; margin-bottom: 0; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: #E9E4F5;
  padding: 4rem 0 2rem; margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: #E9E4F5; }
.site-footer a:hover { color: var(--color-accent); }
.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; }
.legal-links { margin-top: 1rem; }
.legal-links li { font-size: .875rem; }
.copyright {
  text-align: center; padding-top: 2rem; margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1); color: rgba(233,228,245,0.7); font-size: .875rem;
}
.logo-footer img { filter: brightness(0) invert(1); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr; }
}

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

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