:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5B4B8A;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 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);
}

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

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; flex-direction: row; position: static;
    background: transparent; border: 0; padding: 0; box-shadow: none;
    gap: 1.75rem;
  }
  .primary-nav a { padding: .35rem 0; }
  .primary-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    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[aria-current="page"]::after { transform: scaleX(1); }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(124, 58, 237, 0.7); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border-color: rgba(76, 29, 149, 0.25);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; border-radius: 6px; }

/* === Hero (card archetype) === */
.hero { padding-block: 3rem 4rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -20% -10%;
  width: 55vw; height: 55vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-card__inner {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin-inline: auto;
  text-align: left;
}
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .78rem;
  color: var(--color-primary);
  margin: 0 0 .75rem;
  font-weight: 600;
}
.hero-card__inner h1 { margin-bottom: 1.25rem; max-width: 24ch; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-card__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-card__figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

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

/* === Sections === */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--color-muted); }
.section-intro { text-align: left; }
.section-intro .container.narrow { max-width: 720px; }
.section-intro h2 { margin-bottom: 1rem; }
.section-intro p { font-size: 1.05rem; color: var(--color-text); }

/* === Grids & cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { 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);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76, 29, 149, 0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .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(34, 197, 94, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.section-testimonial { padding-block: 3rem; }
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-secondary);
  line-height: 1;
  position: absolute;
  top: .5rem; left: 1.25rem;
  opacity: .5;
}
.testimonial p { font-size: 1.15rem; color: var(--color-text); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-neutral-dark); font-family: var(--font-heading); }

/* === CTA band === */
.cta-band {
  padding-block: 3.5rem;
  margin-block: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { opacity: .92; margin-bottom: 1.5rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--color-neutral-dark);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
}
.cta-band .btn-primary:hover { color: var(--color-primary); }

/* === Pricing === */
.section-pricing .pricing-grid { gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  border: 1px solid rgba(76, 29, 149, 0.12);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.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 -18px rgba(34, 197, 94, 0.35);
}
.pricing-card__badge {
  position: absolute; top: -14px; right: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.pricing-card__plan { font-size: 1.15rem; color: var(--color-neutral-dark); margin-bottom: .35rem; }
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 .5rem;
  line-height: 1.1;
}
.pricing-card__lede { color: var(--color-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--color-text); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.pricing-card__cta { margin: auto 0 0; }
.pricing-card__cta .btn { display: block; text-align: center; }

/* === Form === */
.contact-form { display: grid; gap: 1rem; background: #fff; padding: 2rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.form-row input, .form-row textarea {
  font: inherit; color: inherit;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(76, 29, 149, 0.2);
  background: var(--color-neutral-light);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; flex-shrink: 0; }
@media (min-width: 640px) {
  .contact-form { padding: 2.5rem; }
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250, 245, 255, 0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(250, 245, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.tagline { color: rgba(250, 245, 255, 0.75); margin-top: .75rem; }
.footer-contact address { font-style: normal; margin-bottom: .5rem; }
.footer-legal { margin-top: 1rem; font-size: .9rem; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; opacity: .8; }
.logo--footer img { height: 60px; filter: brightness(0) invert(1); }

/* === 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);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 620px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn { padding: .6rem 1rem; font-size: .9rem; }
.cookie-banner .btn-primary { background: var(--color-accent); color: #fff; box-shadow: none; }
.cookie-banner .btn-primary:hover { color: #fff; }
.cookie-banner .btn-ghost { color: var(--color-neutral-light); border-color: rgba(250, 245, 255, 0.3); }
.cookie-banner .btn-ghost:hover { color: #fff; border-color: #fff; }
.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; gap: .5rem; align-items: center; font-size: .9rem; }

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