:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 16px;
  --radius-hero: 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 -30px rgba(76, 29, 149, 0.35);
}

/* === Reset & 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-neutral-dark);
  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; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .75em; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .sub, .eyebrow, .sub { color: var(--color-primary); }
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; color: var(--color-primary); }
.lede { font-size: 1.1rem; color: var(--color-primary); font-weight: 500; }

/* === 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 rgba(76, 29, 149, 0.08);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 24px -18px rgba(76,29,149,0.35); }
.nav-inner { max-width: 1180px; 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; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid rgba(76,29,149,0.15); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s; }
.primary-nav { display: none; }
.primary-nav a { display: block; padding: .9rem 0; font-weight: 500; color: var(--color-neutral-dark); position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: .55rem; 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 .nav-cta { padding: .55rem 1rem; border-radius: 999px; background: var(--color-primary); color: var(--color-neutral-light); }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
[data-nav].is-open .primary-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 1.5rem 1.5rem; background: var(--color-neutral-light); border-bottom: 1px solid rgba(76,29,149,0.08); box-shadow: var(--shadow-md); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 1.75rem; }
  .primary-nav a { padding: .5rem 0; }
}

/* === Hero (card) === */
.hero {
  padding: 3rem 1rem 4rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(34,197,94,0.10), transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(167,139,250,0.18), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #EFE6FE 100%);
}
.hero-card__inner {
  max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(76,29,149,0.06);
  text-align: left;
}
.hero-card__inner h1 { margin-bottom: 1rem; }
.hero-card__inner .sub { color: #5b3f88; font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 55ch; }
.hero-image { margin-top: 2rem; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

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

/* === Buttons === */
.btn {
  display: inline-block; padding: .95rem 1.75rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  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: 0 10px 24px -10px rgba(124,58,237,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(124,58,237,0.7); color: #fff; }
.btn-accent { background: var(--color-accent); color: #062812; box-shadow: 0 10px 24px -10px rgba(34,197,94,0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(34,197,94,0.7); color: #062812; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Intro sections === */
.intro { text-align: left; }
.intro h2 { margin-bottom: .5rem; }

/* === Card grid === */
.grid-section { background: linear-gradient(180deg, transparent 0%, rgba(167,139,250,0.08) 100%); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(76,29,149,0.08);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(124,58,237,0.10); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: #4a3670; margin: 0; }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(34,197,94,0.05)); }
.testimonial-head { text-align: center; margin-bottom: 2rem; }
.testimonial { margin: 0; padding: 2rem; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border-left: 4px solid var(--color-accent); }
.testimonial p { font-size: 1.15rem; font-style: italic; color: var(--color-neutral-dark); margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-primary); }
.testimonial-with-image { display: grid; gap: 1.5rem; align-items: center; }
.testimonial-image { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow-md); }
@media (min-width: 768px) {
  .testimonial-with-image { grid-template-columns: 160px 1fr; }
  .testimonial-image { width: 160px; height: 160px; }
}

/* === CTA band === */
.cta-band {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-neutral-dark) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* === Contact band === */
.contact-band { text-align: center; }
.contact-address { font-style: normal; font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* === FAQ === */
.faq-section details {
  background: #fff; padding: 1.15rem 1.35rem; border-radius: 12px; margin-bottom: .75rem;
  border: 1px solid rgba(76,29,149,0.08); box-shadow: var(--shadow-sm);
}
.faq-section summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); list-style: none; position: relative; padding-right: 2rem; }
.faq-section summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-primary); font-weight: 400; }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details p { margin-top: .75rem; color: #4a3670; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; 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; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid rgba(76,29,149,0.18); border-radius: 10px;
  background: var(--color-neutral-light); color: var(--color-neutral-dark);
  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.18); }
.form-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: #4a3670; }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250,245,255,0.9); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(250,245,255,0.9); }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .55rem; }
.footer-grid address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(250,245,255,0.75); }
.logo-footer img { height: 60px; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright { border-top: 1px solid rgba(250,245,255,0.14); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: rgba(250,245,255,0.7); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
}

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

/* === 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.4rem; border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  max-width: 560px; margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .95rem; color: rgba(250,245,255,0.92); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(250,245,255,0.25); background: transparent; color: var(--color-neutral-light);
  cursor: pointer; transition: background .2s, transform .15s;
}
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #062812; border-color: var(--color-accent); }
.cookie-banner__prefs { margin-top: .9rem; 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; background: var(--color-primary); border-color: var(--color-primary); margin-top: .3rem; }
