:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(76, 29, 149, 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; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 800px; }
.section { padding-block: 4rem; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: #6b6885; }

/* === 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: background .2s, box-shadow .2s;
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo { display: inline-flex; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(76, 29, 149, 0.15);
  color: var(--color-neutral-dark);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
}
.primary-nav {
  display: none;
  flex-direction: column;
  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.08);
  gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  padding: .65rem .25rem;
  color: var(--color-neutral-dark);
  font-weight: 500;
  border-bottom: 1px solid rgba(76, 29, 149, 0.06);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; flex-direction: row; position: static;
    background: transparent; padding: 0; border: 0; gap: 1.75rem;
    align-items: center;
  }
  .primary-nav a {
    padding: 0; border: 0; position: relative;
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    height: 2px; width: 100%;
    background: var(--color-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
}
.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: 0 10px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 0.7); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
}
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (split) === */
.hero {
  position: relative; overflow: hidden;
  padding-block: 4rem 3rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(167, 139, 250, 0.25), transparent 55%),
    linear-gradient(180deg, var(--color-neutral-light), #fff);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(124, 58, 237, 0.08);
  padding: .35rem .75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero .lede {
  font-size: 1.15rem; color: #4d4a63; max-width: 52ch;
  margin-bottom: 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual img {
  aspect-ratio: 4/5; object-fit: cover;
  width: 100%; border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .hero { padding-block: 6rem 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  h1 { letter-spacing: -0.03em; }
}

/* === Intro === */
.intro-grid { display: grid; gap: 2.5rem; align-items: center; }
.intro-visual img {
  aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.prose p { font-size: 1.05rem; color: #3f3d55; }
.prose h2 { margin-bottom: 1.25rem; }
.contact-details p { font-size: 1.05rem; }

/* === Cards / grids === */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@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;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: #4d4a63; margin: 0; font-size: .97rem; }

.stat-card { text-align: center; }
.stat-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--color-accent);
  margin: 0 0 .25rem;
  line-height: 1;
}

/* === Testimonial === */
.testimonial blockquote {
  margin: 0; padding: 2.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(167, 139, 250, 0.1));
  border-radius: 20px;
  border-left: 4px solid var(--color-accent);
  position: relative;
}
.testimonial blockquote p {
  font-size: 1.15rem; line-height: 1.65;
  color: var(--color-neutral-dark);
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial blockquote cite {
  font-style: normal; font-weight: 600; color: var(--color-primary);
  font-size: .95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 30ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--color-primary);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35);
}
.cta-band .btn-primary:hover { color: var(--color-neutral-dark); }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; color: var(--color-primary);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .85rem 0 0; color: #4d4a63; }

/* === Pricing === */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.12);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.pricing-card__plan {
  font-size: 1.35rem; margin: 0 0 .35rem;
}
.pricing-card__price {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin: 0 0 1rem; line-height: 1.1;
}
.pricing-card__lede {
  color: #4d4a63; font-size: .97rem; margin-bottom: 1.25rem;
  border-top: 1px solid rgba(76, 29, 149, 0.08);
  padding-top: 1rem;
}
.pricing-card__features {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
  flex: 1;
}
.pricing-card__features li {
  display: flex; gap: .5rem;
  color: #3f3d55; font-size: .95rem;
  line-height: 1.5;
}
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === Contact form === */
.contact-form {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: var(--font-heading); font-weight: 500;
  font-size: .9rem; color: var(--color-neutral-dark);
}
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(76, 29, 149, 0.18);
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  transition: border-color .2s, box-shadow .2s;
}
.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: .6rem;
  font-size: .88rem; color: #4d4a63;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 3.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.site-footer h4 {
  color: #fff; font-size: .95rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1rem;
}
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.footer-logo img { height: 60px; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.7); max-width: 30ch; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
}

/* === 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 30px 60px -15px rgba(0,0,0,0.4);
  max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; color: rgba(255,255,255,0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  padding: .55rem 1rem; border: 0; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: .85rem;
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); color: #fff;
}
.cookie-banner__actions button[data-cookie-reject],
.cookie-banner__actions button[data-cookie-settings] {
  background: rgba(255,255,255,0.1); color: #fff;
}
.cookie-banner__prefs {
  margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.cookie-banner__prefs label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: rgba(255,255,255,0.85);
}
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: .5rem;
  background: var(--color-accent); color: #fff;
  border: 0; border-radius: 999px;
  padding: .55rem 1rem; font-weight: 600; cursor: pointer;
}

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