:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #6B5CA5;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.25);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { 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);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
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: 1200px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-neutral-dark); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Logo === */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo-footer img { height: 64px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  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 rgba(76, 29, 149, 0.08);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 8px 30px -20px rgba(76, 29, 149, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.5rem; gap: 1rem;
}
.primary-nav {
  display: none;
  gap: 1.75rem; align-items: center;
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; 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); }
.nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff !important;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff !important; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  border: none; background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-neutral-dark);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1.25rem 1.5rem 1.75rem;
  gap: 1rem; align-items: flex-start;
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-md);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.12) 0%, rgba(250, 245, 255, 0) 70%);
}
@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(202, 138, 4, 0.10), transparent 50%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-primary); font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  max-width: 52ch; margin: 1.25rem auto 2rem;
  color: var(--color-muted); font-size: 1.15rem;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.hero-visual {
  margin-top: 3rem; position: relative; z-index: 1;
}
.hero-visual img {
  width: 100%; max-width: 1000px; margin-inline: auto;
  aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(124, 58, 237, 0.6); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: rgba(76, 29, 149, 0.25);
}
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); transform: translateY(-2px); color: var(--color-neutral-dark); }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(202, 138, 4, 0.5);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(202, 138, 4, 0.6); color: #fff; }

/* === Sections === */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-lede { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; color: var(--color-muted); }
.intro .container { text-align: center; }
.intro p { color: var(--color-text); font-size: 1.05rem; }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@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); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  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-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link h3 { color: var(--color-neutral-dark); }
.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(202, 138, 4, 0.10));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial blockquote {
  margin: 0; text-align: center;
  font-family: var(--font-heading);
  position: relative; padding: 2rem 1rem;
}
.testimonial p {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4; color: var(--color-neutral-dark); font-weight: 500;
  margin-bottom: 1.25rem;
}
.testimonial cite {
  font-style: normal; color: var(--color-muted); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
}

/* === CTA band === */
.cta-band {
  margin: 3rem 1rem; padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  border-radius: var(--radius-lg);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band .container { padding: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 1.75rem; }
@media (min-width: 768px) {
  .cta-band { margin: 4rem auto; padding: 4rem 2rem; max-width: 1140px; }
}

/* === Stats === */
.stats-grid { text-align: center; }
.stat { padding: 1rem; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
}
.stat p { color: var(--color-muted); font-size: 0.95rem; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  color: var(--color-neutral-dark); list-style: none;
  padding-right: 2rem; position: relative;
}
.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: 1rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form {
  background: #fff; padding: 2rem; border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76, 29, 149, 0.08);
}
.form-row { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; margin-bottom: .4rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(76, 29, 149, 0.15);
  border-radius: 10px;
  background: var(--color-neutral-light);
  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 4px rgba(124, 58, 237, 0.12);
}
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--color-muted);
  margin: 1rem 0 1.5rem;
}
.form-consent input { margin-top: 3px; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #E9DEFF;
  padding-block: 3.5rem 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: #E9DEFF; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .4rem; }
.footer-grid address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { margin-top: 1rem; }
.legal-links li a { font-size: 0.9rem; opacity: 0.85; }
.copyright { padding-top: 1.5rem; font-size: 0.85rem; opacity: 0.75; text-align: center; }

/* === 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: 16px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25); background: transparent; color: inherit;
  cursor: pointer; transition: background .2s;
}
.cookie-banner button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}
.cookie-banner [data-cookie-accept]:hover { background: #b3770a; }
.cookie-banner__prefs {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; }

/* === Reveal (scroll animation) === */
.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; }
}
