:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(30, 27, 75, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  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; transition: color .2s var(--ease); }
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; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: .75rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }
.text-center { text-align: center; }
.section { padding-block: 4rem; }
.section--tinted { background: linear-gradient(180deg, #F3EEFF 0%, #FAF5FF 100%); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.lede { font-size: 1.125rem; color: #4c4870; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
  .container { padding-inline: 2rem; }
}

/* === 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 rgba(30, 27, 75, 0.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 4px 20px -8px rgba(30, 27, 75, 0.12);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin-inline: auto;
  padding: .75rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-header__inner { padding: .5rem 2rem; }
}
.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: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  padding: 1rem 1.25rem;
  flex-direction: column; gap: .25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500; padding: .625rem .25rem;
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  position: relative;
}
.site-nav a.is-current { color: var(--color-primary); }
.site-nav .btn { border-bottom: 0; margin-top: .5rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; position: static; flex-direction: row;
    align-items: center; gap: 1.75rem; background: transparent; padding: 0; border: 0;
  }
  .site-nav a { padding: .5rem 0; border: 0; }
  .site-nav a:not(.btn)::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);
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a.is-current::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 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, color .2s;
  text-align: center;
}
.btn--sm { padding: .5rem 1rem; font-size: 0.85rem; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #5b21b6);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(124, 58, 237, 0.7); color: #fff; }
.btn--accent {
  color: var(--color-neutral-dark);
  background: var(--color-accent);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.5);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(6, 182, 212, 0.7); color: var(--color-neutral-dark); }
.btn--ghost {
  color: var(--color-neutral-dark);
  background: transparent;
  border-color: rgba(30, 27, 75, 0.2);
}
.btn--ghost:hover { background: var(--color-neutral-dark); color: var(--color-neutral-light); border-color: var(--color-neutral-dark); }
.btn--link { background: transparent; border: 0; color: var(--color-primary); padding: .5rem .75rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (card archetype) === */
.hero { position: relative; padding: 3rem 1.25rem 4rem; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18), transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(6, 182, 212, 0.14), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero__card {
  position: relative; z-index: 1;
  max-width: 880px; margin-inline: auto;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero__card h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { font-size: 1.125rem; color: #4c4870; max-width: 52ch; margin: 0 auto 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.hero__figure { margin: 2rem 0 0; }
.hero__figure img { border-radius: var(--radius-sm); aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow-md); }

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

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

/* === Cards === */
.card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 1.75rem;
  border: 1px solid rgba(30, 27, 75, 0.06);
  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 h3 { margin-top: .75rem; }
.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(6, 182, 212, 0.12));
  color: var(--color-primary);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-heading); font-weight: 700;
  margin-bottom: .75rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0; padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-neutral-dark), #2e2861);
  color: var(--color-neutral-light);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5; font-weight: 500; }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--color-secondary); font-size: .95rem; }
@media (min-width: 768px) { .testimonial { padding: 3.5rem 3rem; } .testimonial p { font-size: 1.4rem; } }

/* === 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.85); max-width: 56ch; margin: 0 auto 1.75rem; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card {
  position: relative;
  padding: 2.25rem 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(30, 27, 75, 0.12);
  background: #fff;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--color-accent); border-width: 2px;
  box-shadow: 0 20px 50px -20px rgba(6, 182, 212, 0.3);
}
.pricing-card__badge {
  position: absolute; top: -12px; right: 1.25rem;
  background: var(--color-accent); color: var(--color-neutral-light);
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
}
.pricing-card__plan { font-size: 1.25rem; color: var(--color-primary); margin: 0 0 .5rem; }
.pricing-card__price { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; font-family: var(--font-heading); color: var(--color-neutral-dark); margin: 0 0 1rem; letter-spacing: -0.02em; }
.pricing-card__lede { color: #4c4870; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: .625rem; padding: .5rem 0; border-bottom: 1px dashed rgba(30, 27, 75, 0.08); font-size: .95rem; }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { align-self: stretch; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid rgba(30, 27, 75, 0.08);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; 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.5rem; line-height: 1; color: var(--color-primary); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .75rem 0 0; color: #4c4870; }

/* === Contact === */
.contact-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.contact-form {
  background: #fff; padding: 1.75rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem 1rem;
  border-radius: 10px; border: 1px solid rgba(30, 27, 75, 0.16);
  background: var(--color-neutral-light);
  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 4px rgba(124, 58, 237, 0.15);
}
.form-consent { display: flex; gap: .625rem; align-items: flex-start; font-size: .875rem; margin-bottom: 1.25rem; flex-wrap: wrap; color: #4c4870; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250, 245, 255, 0.85);
  padding-top: 3.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--color-secondary); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.legal-links li { margin: 0; }
.site-footer__base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.25rem;
  font-size: .85rem;
  color: rgba(250, 245, 255, 0.6);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
}

/* === 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);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; color: rgba(250, 245, 255, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn--ghost { color: var(--color-neutral-light); border-color: rgba(250, 245, 255, 0.3); }
.cookie-banner__actions .btn--ghost:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }
.cookie-banner__actions .btn--link { color: var(--color-secondary); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }

/* === 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; }
  * { animation: none !important; transition: none !important; }
}
