:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4B7E;
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-hover: 0 24px 60px -20px rgba(76, 29, 149, 0.35);
  --shadow-hero: 0 30px 80px -30px rgba(76, 29, 149, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1200px;
}

/* === 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.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-io); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); margin: 0 0 .75rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

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

/* === Header (glass sticky nav) === */
.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 .3s var(--ease-io), box-shadow .3s var(--ease-io);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 4px 20px rgba(76, 29, 149, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: none; color: var(--color-neutral-dark);
  padding: .5rem; cursor: pointer; display: inline-flex;
}
.primary-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: .5rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-neutral-dark);
  padding: .5rem 0;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static;
    flex-direction: row; align-items: center;
    background: transparent; border: none; padding: 0; gap: 1.75rem;
  }
  .primary-nav a::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-io);
  }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-io), box-shadow .2s var(--ease-io), background .2s var(--ease-io);
  font-size: 1rem;
  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(-2px); box-shadow: 0 20px 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); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (hero-card archetype) === */
.hero {
  position: relative;
  padding-block: 3rem 4rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(167, 139, 250, 0.35), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--color-neutral-light), #EDE4FC);
}
.hero-card__card {
  max-width: 880px;
  margin-inline: auto;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(76, 29, 149, 0.06);
  text-align: left;
}
.hero-card--compact { padding-block: 3rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(124, 58, 237, 0.08);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-card__card h1 { margin-bottom: 1rem; }
.lede {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(76, 29, 149, 0.35);
  aspect-ratio: 16 / 10;
}
.hero-card__image img { width: 100%; height: 100%; object-fit: cover; }

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

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

.intro .container.narrow { text-align: left; }
.intro h2 { text-align: left; margin-bottom: 1rem; }
.intro p { font-size: 1.05rem; color: var(--color-text); }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; 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 rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-io), box-shadow .25s var(--ease-io);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { color: var(--color-neutral-dark); margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .97rem; margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 197, 94, 0.12));
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.step-card { position: relative; }
.step-num {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
}

/* === Testimonial === */
.testimonial { background: transparent; }
.testimonial blockquote {
  margin: 0;
  padding: 2.5rem 1.75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(76, 29, 149, 0.08);
  position: relative;
  text-align: center;
}
.testimonial .quote-mark { color: var(--color-secondary); margin-bottom: .5rem; }
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--color-neutral-dark);
  line-height: 1.5;
}
.testimonial cite {
  display: block; margin-top: 1rem;
  font-style: normal; color: var(--color-muted);
  font-size: .95rem; font-weight: 500;
}

/* === 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: 60ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--color-neutral-dark);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4);
}
.cta-band .btn-primary:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }

/* === Split (intro + image) === */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
.split__image { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.split__image img { width: 100%; height: 100%; object-fit: cover; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s var(--ease-io);
}
.faq details[open] { box-shadow: var(--shadow-hover); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark);
  cursor: pointer; list-style: none;
  padding-right: 2rem; position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 1.5rem; color: var(--color-primary);
  transition: transform .2s var(--ease-io);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact band (about page) === */
.contact-band__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(76, 29, 149, 0.08);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 768px) {
  .contact-band__inner { grid-template-columns: 1fr auto; padding: 2.5rem; }
}
.contact-line { color: var(--color-muted); margin: 0; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: .85rem 1rem;
  border: 1px solid rgba(76, 29, 149, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s var(--ease-io), box-shadow .2s var(--ease-io);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: .25rem; }
.contact-form .btn { justify-self: start; }

/* === Map === */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/9;
  background: #E9DEF7;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,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.3fr; gap: 3rem; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.footer-tag { margin-top: .75rem; color: rgba(255,255,255,0.7); font-size: .95rem; }
.site-footer nav a { display: block; color: rgba(255,255,255,0.85); padding: .25rem 0; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer address { font-style: normal; color: rgba(255,255,255,0.75); font-size: .92rem; margin-bottom: 1rem; line-height: 1.7; }
.site-footer address a { color: rgba(255,255,255,0.9); }
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.copyright {
  text-align: center;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  max-width: 460px;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.5);
  font-size: .92rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .85rem; color: rgba(250,245,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font: inherit; font-family: var(--font-heading); font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--color-neutral-light);
  transition: background .2s var(--ease-io);
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent); color: #fff; border-color: transparent;
}
.cookie-banner__actions [data-cookie-accept]:hover { background: #16A34A; }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] {
  margin-top: .5rem; justify-self: start;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--color-accent); color: #fff;
  border: none; font-family: var(--font-heading); font-weight: 600; cursor: pointer;
}

/* === 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; } html { scroll-behavior: auto; } }
