:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #6B7280;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-lift: 0 20px 60px -20px rgba(76, 29, 149, 0.35);
}

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

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(249, 115, 22, 0.04)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.0625rem; }
.lede { font-size: 1.0625rem; color: var(--color-text); line-height: 1.7; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: .75rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Header (glass nav) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 8px 30px -20px rgba(76, 29, 149, 0.25); }
.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 { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); color: var(--color-neutral-dark); border-radius: 10px; padding: .5rem; cursor: pointer; }
.primary-nav { display: none; flex-direction: column; gap: .5rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--color-border); box-shadow: 0 10px 30px -15px rgba(76, 29, 149, 0.3); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .5rem 0; position: relative; }
.primary-nav a.is-active { color: var(--color-primary); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 30px -12px rgba(124, 58, 237, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 0.7); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(249, 115, 22, 0.5); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(249, 115, 22, 0.6); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); transform: translateY(-2px); }

/* === Hero === */
.hero { padding-block: 3.5rem 2.5rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%; background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.14), transparent 60%), radial-gradient(ellipse at 20% 30%, rgba(167, 139, 250, 0.28), transparent 60%); z-index: -1; }
.hero-centered { text-align: center; }
.hero-centered h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin-inline: auto; font-size: 1.125rem; color: var(--color-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.hero-image { margin-top: 3rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Grids === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

/* === Cards === */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(76, 29, 149, 0.25); }
.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(249, 115, 22, 0.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: .9375rem; margin: 0; }

/* === Testimonial === */
.testimonial { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; margin: 0; box-shadow: var(--shadow-soft); text-align: center; }
.testimonial .quote-mark { color: rgba(124, 58, 237, 0.18); position: absolute; top: 1rem; left: 1rem; }
.testimonial p { font-size: 1.125rem; line-height: 1.65; color: var(--color-text); font-style: italic; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-primary); font-size: .9375rem; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding-block: 3.5rem; margin-block: 2rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-inner .btn { flex-shrink: 0; }

/* === Stats === */
.stats-section { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06)); }
.stat { text-align: center; padding: 2rem 1rem; }
.stat-num { display: block; font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: .75rem; }
.stat p { color: var(--color-muted); font-size: .9375rem; margin: 0; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.pricing-card { position: relative; background: #fff; padding: 2.25rem; border-radius: 16px; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--color-accent); border-width: 2px; box-shadow: 0 20px 50px -20px rgba(249, 115, 22, 0.35); }
.pricing-card__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--color-accent); color: #fff; font-family: var(--font-heading); font-size: .75rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.1rem; color: var(--color-neutral-dark); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .06em; }
.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: .9375rem; margin-bottom: 1.5rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: .5rem; padding-block: .5rem; border-bottom: 1px dashed rgba(76, 29, 149, 0.1); font-size: .9375rem; align-items: flex-start; }
.pricing-card__features li:last-child { border-bottom: none; }
.tick { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { width: 100%; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); color: var(--color-neutral-dark); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.65; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; background: #fff; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .875rem; color: var(--color-neutral-dark); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1rem; padding: .75rem .875rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: .2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding-block: 3.5rem 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a, .footer-contact a { color: rgba(255, 255, 255, 0.75); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: .9375rem; }
.legal-links { margin-top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.legal-links a { font-size: .875rem; }
.logo-footer img { filter: brightness(0) invert(1); }
.tagline { color: rgba(255, 255, 255, 0.7); margin-top: .5rem; font-size: .9375rem; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: .875rem; color: rgba(255, 255, 255, 0.6); }
.copyright p { margin: 0; }

/* === 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 60px -15px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9375rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { flex: 1 1 auto; font-family: var(--font-heading); font-weight: 600; padding: .625rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-size: .875rem; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); 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: .875rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); border: none; color: #fff; padding: .5rem 1rem; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; cursor: pointer; }

/* === Reveal (scroll 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; } html { scroll-behavior: auto; } }

/* === Responsive === */
@media (min-width: 640px) {
  .grid { gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; flex-direction: row; gap: 1.75rem; position: static; padding: 0; background: transparent; border: none; box-shadow: none; }
  .primary-nav.is-open { position: static; background: transparent; box-shadow: none; padding: 0; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; 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); }
  .nav-toggle { display: none; }
  .hero { padding-block: 5rem 3rem; }
  .section { padding-block: 5.5rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid-3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pricing-card--featured { transform: translateY(-8px); }
}

@media (min-width: 1024px) {
  .hero-image img { aspect-ratio: 21/9; }
}
