:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4A7A;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', 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.06);
  --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-text); background: var(--color-neutral-light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; color: var(--color-neutral-dark); line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 255, 0.75); 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 .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 4px 24px rgba(76, 29, 149, 0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; max-width: 1200px; margin-inline: auto; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: 0; color: var(--color-neutral-dark); padding: .5rem; border-radius: 8px; }
.primary-nav { display: none; }
.primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); gap: .25rem; border-top: 1px solid rgba(76, 29, 149, 0.08); }
.primary-nav a { padding: .625rem .5rem; color: var(--color-neutral-dark); font-weight: 500; border-radius: 8px; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: var(--color-neutral-light) !important; padding: .625rem 1rem !important; border-radius: 999px; text-align: center; }
.nav-cta:hover { background: var(--color-neutral-dark); }

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

/* === Hero (saas-spotlight) === */
.hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.04)); }
.hero--compact { padding: 3rem 0 2rem; }
.hero-glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 60%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-heading); font-size: .8125rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary); background: rgba(124, 58, 237, 0.1); padding: .375rem .875rem; border-radius: 999px; margin-bottom: 1.25rem; font-weight: 600; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { font-size: 1.125rem; color: var(--color-muted); max-width: 56ch; margin: 1rem auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(76, 29, 149, 0.08); max-width: 960px; margin-inline: auto; position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding: 6rem 0 4rem; }
  .hero-sub { font-size: 1.25rem; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.5rem; border-radius: 999px; font-weight: 600; font-family: var(--font-heading); font-size: 1rem; border: 0; transition: transform .2s var(--ease), box-shadow .2s, background .2s; cursor: pointer; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: var(--color-neutral-light); box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(124, 58, 237, 0.6); color: var(--color-neutral-light); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.06); transform: translateY(-2px); color: var(--color-neutral-dark); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(124, 58, 237, 0.03), rgba(167, 139, 250, 0.04)); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.0625rem; }
.lead { font-size: 1.0625rem; color: var(--color-muted); line-height: 1.75; }

@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; 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 === */
.card { background: var(--color-neutral-light); border: 1px solid rgba(76, 29, 149, 0.08); padding: 1.75rem; border-radius: var(--radius); 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); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 197, 94, 0.1)); color: var(--color-primary); border-radius: 12px; margin-bottom: 1rem; }

/* === Testimonial === */
.testimonial { margin: 0; padding: 2.5rem 1.5rem; text-align: center; border-left: none; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--color-neutral-dark); font-weight: 500; margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .9375rem; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: var(--color-neutral-light); padding: 3.5rem 0; }
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(250, 245, 255, 0.85); margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-band .btn-primary { background: var(--color-neutral-light); color: var(--color-neutral-dark); }
.cta-band .btn-primary:hover { color: var(--color-neutral-dark); background: var(--color-accent); }
@media (min-width: 768px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* === Pricing === */
.pricing-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card { position: relative; background: var(--color-neutral-light); border: 1px solid rgba(76, 29, 149, 0.12); padding: 2.25rem; border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border-color: var(--color-accent); border-width: 2px; box-shadow: var(--shadow-md); }
.pricing-card__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--color-accent); color: var(--color-neutral-light); padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.25rem; margin-bottom: .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-bottom: .5rem; letter-spacing: -0.02em; }
.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 2rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.pricing-card__features li { display: flex; gap: .5rem; font-size: .95rem; color: var(--color-text); }
.pricing-card__cta { margin-top: auto; text-align: center; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details { background: var(--color-neutral-light); border: 1px solid rgba(76, 29, 149, 0.1); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: var(--color-neutral-light); padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(76, 29, 149, 0.1); box-shadow: var(--shadow-sm); margin-top: 2rem; }
.contact-form label { display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; font-weight: 500; color: var(--color-neutral-dark); }
.contact-form input, .contact-form textarea { font: inherit; padding: .75rem .875rem; border: 1.5px solid rgba(76, 29, 149, 0.15); border-radius: 10px; background: #fff; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: .625rem !important; font-size: .875rem !important; font-weight: 400 !important; color: var(--color-muted) !important; }
.form-consent input { margin-top: .2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250, 245, 255, 0.85); padding: 4rem 0 2rem; }
.site-footer h3 { color: var(--color-neutral-light); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.site-footer a { color: rgba(250, 245, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .logo img { height: 64px; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.tagline { color: rgba(250, 245, 255, 0.7); margin-top: .75rem; font-size: .95rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1.25rem; }
.legal-links { border-top: 1px solid rgba(250, 245, 255, 0.15); padding-top: 1rem; margin-top: 1rem !important; font-size: .875rem; }
.copyright { text-align: center; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(250, 245, 255, 0.15); font-size: .875rem; color: rgba(250, 245, 255, 0.6); max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }

/* === 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: 0 20px 60px -10px rgba(0,0,0,0.5); 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 { padding: .5rem 1rem; border-radius: 999px; border: 0; font-weight: 600; font-size: .875rem; font-family: var(--font-heading); }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #052e13; }
.cookie-banner__actions button[data-cookie-reject] { background: rgba(250, 245, 255, 0.15); color: var(--color-neutral-light); }
.cookie-banner__actions button[data-cookie-settings] { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(250, 245, 255, 0.3); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(250, 245, 255, 0.15); }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; padding: .5rem 1rem; border-radius: 999px; border: 0; background: var(--color-accent); color: #052e13; font-weight: 600; font-family: var(--font-heading); }

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