/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5B4B8A;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-md: 0 20px 40px -20px rgba(76, 29, 149, 0.28);
  --shadow-lg: 0 30px 60px -25px rgba(76, 29, 149, 0.35);
}

/* === 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%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
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, 4rem); 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: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 1rem; }

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

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.75);
  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 6px 30px -10px rgba(76,29,149,0.12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: 0; color: var(--color-neutral-dark); cursor: pointer; padding: 0.5rem; }
.primary-nav { display: none; flex-direction: column; gap: 0.75rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(76,29,149,0.1); box-shadow: var(--shadow-sm); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); text-decoration: none; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; flex-direction: row; align-items: center; gap: 1.75rem; position: static; padding: 0; background: transparent; box-shadow: none; border: 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 { text-decoration: none; }
  .primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(76,29,149,0.25); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover { background: #a67102; }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Hero card === */
.hero-card-section {
  position: relative;
  padding-block: 3rem 4rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(202,138,4,0.10), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(167,139,250,0.18), transparent 60%),
    linear-gradient(180deg, #F3EBFF 0%, var(--color-neutral-light) 100%);
}
.hero-card {
  max-width: 880px; margin-inline: auto;
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  border: 1px solid rgba(167,139,250,0.25);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--color-primary); font-weight: 700; margin-bottom: 0.75rem; }
.hero-card h1 { margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-card__figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero-card__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 768px) {
  .hero-card-section { padding-block: 5rem 6rem; }
  .hero-card { padding: 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-tinted { background: linear-gradient(180deg, #F3EBFF 0%, var(--color-neutral-light) 100%); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Split === */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.split__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split__figure img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

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

.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(167,139,250,0.2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-secondary); }
.card-link { text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
.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(167,139,250,0.20));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0; text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(167,139,250,0.2);
  position: relative;
}
.testimonial::before { content: '“'; position: absolute; top: 0.5rem; left: 1.25rem; font-family: var(--font-heading); font-size: 4rem; color: var(--color-secondary); opacity: 0.5; line-height: 1; }
.testimonial p { font-size: 1.15rem; color: var(--color-text); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { color: var(--color-primary); font-weight: 600; font-style: normal; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0 auto 1.5rem; }
.cta-band .btn-accent:hover { transform: translateY(-2px); }

/* === FAQ === */
.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(167,139,250,0.22);
  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; position: relative; padding-right: 2rem;
}
.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); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid rgba(167,139,250,0.22); }
.contact-form label { display: grid; gap: 0.4rem; font-weight: 500; color: var(--color-neutral-dark); }
.contact-form input, .contact-form 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;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}
.form-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-muted); font-weight: 400; }
.form-consent input { margin-top: 0.25rem; }
.contact-form button { justify-self: start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-tag { color: rgba(255,255,255,0.75); margin-top: 0.75rem; }
.logo--footer img { height: 60px; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyline { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem; }
.copyline p { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* === 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 25px 50px -12px rgba(0,0,0,0.35);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit; padding: 0.55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions button[data-cookie-reject] { background: rgba(255,255,255,0.12); color: #fff; }
.cookie-banner__actions button[data-cookie-settings] { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs button { justify-self: start; background: var(--color-primary); color: #fff; border: 0; padding: 0.5rem 1rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; cursor: pointer; }

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