:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B29;
  --color-muted: #5B5872;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 10px 40px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 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;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-hover); }
a:hover { color: var(--color-neutral-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }

/* === Header / 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: box-shadow .3s var(--ease-hover), background .3s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 6px 30px -12px rgba(76, 29, 149, 0.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.logo img { height: 72px; width: auto; display: block; }

.primary-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  font-weight: 500;
  color: var(--color-neutral-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-hover);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-neutral-dark);
  border-radius: 2px;
  transition: transform .2s var(--ease-hover), opacity .2s var(--ease-hover);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; padding: 0; background: transparent; box-shadow: none; border: 0; flex-direction: row; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover);
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.5);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(124, 58, 237, 0.6); }
.btn--ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border: 1.5px solid rgba(76, 29, 149, 0.2);
}
.btn--ghost:hover { background: rgba(124, 58, 237, 0.06); border-color: var(--color-primary); color: var(--color-neutral-dark); transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }

/* === Hero === */
.hero { position: relative; overflow: hidden; padding: 3rem 0 4rem; }
.hero--spotlight { background: linear-gradient(180deg, rgba(167, 139, 250, 0.15), rgba(250, 245, 255, 0) 70%); }
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(34, 197, 94, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub {
  max-width: 60ch;
  margin: 1rem auto 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--color-muted);
}
.hero__ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__visual {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__visual--small { max-width: 440px; }
.hero__visual--small img { aspect-ratio: 4/3; }

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

/* === Sections === */
.section { padding: 4rem 0; }
.section--tinted {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(250, 245, 255, 0));
}
.section__title { text-align: center; margin-bottom: 2.5rem; }
.lede { font-size: 1.05rem; color: var(--color-muted); }
.narrow .lede { font-size: 1.1rem; line-height: 1.75; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover), border-color .25s var(--ease-hover);
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124, 58, 237, 0.25); }
.card-link { text-decoration: none; }
.card-link h3 { color: var(--color-neutral-dark); }
.card-link p { color: var(--color-muted); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  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;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.96rem; }

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

/* === CTA band === */
.cta-band {
  margin: 3rem 0;
}
.cta-band__inner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-band__inner h2 { color: #fff; margin: 0 0 0.5rem; }
.cta-band__inner p { margin: 0; opacity: 0.9; }
.cta-band__inner .btn--primary {
  background: #fff;
  color: var(--color-neutral-dark);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
}
.cta-band__inner .btn--primary:hover { color: var(--color-neutral-dark); background: var(--color-neutral-light); }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 3rem; }
}

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.92rem; }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(76, 29, 149, 0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.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: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.2rem; }

/* === FAQ === */
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq details {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color .2s var(--ease-hover);
}
.faq details[open] { border-color: rgba(124, 58, 237, 0.35); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  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.5rem;
  color: var(--color-primary);
  line-height: 1;
  transition: transform .2s var(--ease-hover);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { filter: brightness(0) invert(1); height: 60px; }
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.footer__tagline { margin-top: 1rem; opacity: 0.85; }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.88rem; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
address { font-style: normal; line-height: 1.7; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; }
}

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

/* === 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: 640px;
  margin-inline: 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; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs button { justify-self: flex-start; margin-top: 0.5rem; }
