/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1B0B3A;
  --color-muted: #6B5A8A;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.25);
  --shadow-lg: 0 30px 60px -30px rgba(76, 29, 149, 0.4);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  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 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .8rem; font-weight: 700; color: var(--color-primary); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1.5rem; }

/* === Header === */
.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 var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 24px -12px rgba(76, 29, 149, 0.2); }
.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; }
.primary-nav { display: none; align-items: center; gap: 1.25rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; position: relative; padding-block: .3rem; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; padding: .55rem 1rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); }
.nav-toggle { background: none; border: 0; padding: .5rem; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(76, 29, 149, 0.08); }
.primary-nav.is-open a { padding: .75rem 0; border-bottom: 1px solid rgba(76, 29, 149, 0.06); }

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-family: var(--font-body); 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: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(34, 197, 94, 0.5); }
.btn-accent:hover { background: #16A34A; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; text-align: center; }
.hero .container { position: relative; z-index: 2; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 10%, rgba(167, 139, 250, 0.35), transparent 70%), radial-gradient(40% 40% at 80% 30%, rgba(34, 197, 94, 0.14), transparent 70%); pointer-events: none; z-index: 1; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 0 auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Section === */
.section { padding-block: 4rem; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .lede { margin-inline: auto; max-width: 60ch; }

/* === Grid + cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .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 .25s var(--ease), box-shadow .25s var(--ease); color: var(--color-ink); display: block; }
.card p { color: var(--color-muted); margin-bottom: 0; }
a.card, a.card-link { text-decoration: none; color: inherit; }
.card:hover, .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.card-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 197, 94, 0.14)); color: var(--color-primary); margin-bottom: 1rem; }
.stat-card { text-align: left; }
.stat-num { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--color-accent); font-weight: 700; margin: 0 0 .25rem; line-height: 1; }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(34, 197, 94, 0.05)); }
.testimonial { margin: 0; padding: 2rem 1rem; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.4; color: var(--color-neutral-dark); font-weight: 600; margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; font-weight: 500; }

/* === 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.9); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-accent { margin-top: .5rem; }

/* === 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; background: #fff; border: 1px solid rgba(76, 29, 149, 0.12); border-radius: var(--radius); padding: 2.25rem 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--color-accent); border-width: 2px; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card__badge { position: absolute; top: -14px; right: 1.5rem; background: var(--color-accent); color: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { color: var(--color-neutral-dark); margin-bottom: .5rem; font-size: 1.4rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; line-height: 1.1; }
.pricing-card__lede { color: var(--color-muted); font-weight: 500; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.pricing-card__features li { display: flex; gap: .5rem; padding-block: .4rem; color: var(--color-ink); align-items: flex-start; }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid rgba(76, 29, 149, 0.15); background: #fff; color: var(--color-ink); 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 4px rgba(124, 58, 237, 0.15); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .2rem; }
.contact-block { font-style: normal; font-size: 1.05rem; line-height: 1.8; }

/* === FAQ === */
.faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.08); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-neutral-dark); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .75rem; margin-bottom: 0; color: var(--color-muted); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250, 245, 255, 0.85); padding-block: 3rem 2rem; margin-top: 4rem; }
.site-footer h3 { 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; } }
.site-footer .logo img { height: 56px; filter: brightness(0) invert(1); }
.footer-tagline { color: rgba(250, 245, 255, 0.7); margin-top: .75rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; }
.footer-nav a, .footer-contact a, .legal-nav a { color: rgba(250, 245, 255, 0.8); padding-block: .3rem; }
.footer-nav a:hover, .footer-contact a:hover, .legal-nav a:hover { color: #fff; }
.footer-contact address { font-style: normal; line-height: 1.8; margin-bottom: 1rem; }
.legal-nav { display: flex; flex-direction: column; margin-top: .5rem; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(250, 245, 255, 0.12); font-size: .85rem; color: rgba(250, 245, 255, 0.6); text-align: center; }

/* === 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: var(--radius); box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn { padding: .55rem 1rem; font-size: .85rem; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cookie-banner .btn-ghost:hover { border-color: #fff; color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs button { margin-top: .5rem; align-self: flex-start; }

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