:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1145;
  --color-muted: #5B4A7C;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(31, 17, 69, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.25);
  --shadow-lg: 0 30px 60px -25px rgba(76, 29, 149, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-neutral-light); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin: 0 auto; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; }

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease; 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 { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(124, 58, 237, 0.6); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 255, 0.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: var(--shadow-sm); border-bottom-color: var(--color-border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.primary-nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav a { display: block; padding: 0.7rem 0.5rem; font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); border-radius: 8px; }
.primary-nav a.is-active { color: var(--color-primary); }
.primary-nav a.nav-cta { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: block; position: static; background: transparent; box-shadow: none; border: 0; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 0.5rem; padding: 0; }
  .primary-nav a { position: relative; padding: 0.5rem 0.9rem; }
  .primary-nav a::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
  .primary-nav a.nav-cta { background: var(--color-neutral-dark); color: #fff; border-radius: 999px; padding: 0.55rem 1.1rem; }
  .primary-nav a.nav-cta::after { display: none; }
  .primary-nav a.nav-cta:hover { background: var(--color-primary); }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
}

/* === Hero (centered) === */
.hero { position: relative; padding-block: 3.5rem 2rem; overflow: hidden; background: linear-gradient(180deg, rgba(167, 139, 250, 0.15), rgba(250, 245, 255, 0)); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 60%; background: radial-gradient(60% 60% at 50% 30%, rgba(34, 197, 94, 0.12), transparent 70%), radial-gradient(50% 50% at 80% 10%, rgba(124, 58, 237, 0.18), transparent 70%); pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin: 0.5rem auto 1.75rem; font-size: 1.15rem; color: var(--color-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero__image { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-block: 6rem 3rem; }
  .hero__sub { font-size: 1.25rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head h2 { max-width: 26ch; margin-inline: auto; }
.section__sub { color: var(--color-muted); max-width: 55ch; margin-inline: auto; }
.section--intro { text-align: center; }
.section--intro p { color: var(--color-muted); font-size: 1.05rem; }

/* === Grid / Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .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: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s 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: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.15)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.97rem; margin: 0; }

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

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary)); color: #fff; padding-block: 3.5rem; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 20%, rgba(34, 197, 94, 0.25), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4); }
.cta-band .btn--primary:hover { color: var(--color-primary); }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

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

/* === FAQ === */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; padding: 1rem 1.25rem; margin-bottom: 0.75rem; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; } }
.contact-info { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-dl dt { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); margin-top: 1rem; }
.contact-dl dd { margin: 0.15rem 0 0; color: var(--color-muted); }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-form h2 { margin-bottom: 1.25rem; }
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem; color: var(--color-neutral-dark); margin-bottom: 0.4rem; }
.field input, .field textarea { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--color-border); border-radius: 10px; font: inherit; color: var(--color-text); background: var(--color-neutral-light); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--color-muted); margin: 0.5rem 0 1.25rem; line-height: 1.45; }
.form-consent input { margin-top: 3px; flex-shrink: 0; }

/* === Contact band (about page) === */
.section--contact-band { text-align: center; }
.section--contact-band p { color: var(--color-muted); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; } }
.site-footer h3 { color: #fff; font-size: 1rem; 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: flex; flex-direction: column; gap: 0.55rem; }
.footer__tag { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }
.footer__legal { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.site-footer address { font-style: normal; line-height: 1.7; }

/* === 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; border-radius: var(--radius-md); box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5); max-width: 720px; 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; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cookie-banner__actions .btn--ghost:hover { border-color: #fff; color: #fff; }
.cookie-banner__actions .btn--primary { background: var(--color-accent); color: #0b2410; }
.cookie-banner__actions .btn--primary:hover { background: #16a34a; color: #fff; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.6rem; 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: 0.55rem; font-size: 0.9rem; }

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