:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B2E;
  --color-muted: #5B5175;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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 -20px rgba(76, 29, 149, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
}

/* === Base === */
* { 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; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-neutral-dark);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 .75rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-neutral-dark); color: #fff; padding: .75rem 1rem; z-index: 10000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* === 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 var(--color-border);
  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 -12px rgba(76,29,149,0.18); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle { background: none; border: 0; padding: .5rem; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.primary-nav { display: none; }
.primary-nav a { display: block; padding: .85rem 1rem; color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; position: relative; }
.primary-nav a:hover { text-decoration: none; color: var(--color-primary); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; border-radius: 999px; padding: .6rem 1.15rem; margin-left: .25rem; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }
.site-header.nav-open .primary-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); padding: .5rem 1rem 1rem; box-shadow: var(--shadow-md); }

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

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 2.5rem; background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(167,139,250,0.14)); }
.hero__glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(249,115,22,0.18), transparent 70%); pointer-events: none; z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero__copy h1 { margin-bottom: 1.25rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero__center { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.hero__center .lede { margin-left: auto; margin-right: auto; }
.hero--compact { padding: 3rem 0 1.5rem; }
.proof-strip { position: relative; z-index: 1; margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-muted); font-size: .92rem; }

@media (min-width: 900px) {
  .hero { padding: 5.5rem 0 4rem; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-align: center; }
.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); }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(249,115,22,0.55); }
.btn--accent:hover { background: #ea6a11; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding: 3.5rem 0; }
.section--tint { background: linear-gradient(180deg, rgba(167,139,250,0.08), rgba(124,58,237,0.04)); }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__sub { color: var(--color-muted); max-width: 60ch; margin: 0 auto; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

/* === Grid & Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@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: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: block; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; }
.card-link:hover { text-decoration: none; }
.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.14), rgba(249,115,22,0.14)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { color: var(--color-neutral-dark); margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .97rem; }

/* === Quote === */
.quote { margin: 0; padding: 2rem; background: #fff; border-left: 4px solid var(--color-accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.15rem; font-style: italic; color: var(--color-neutral-dark); }
.quote cite { display: block; margin-top: .75rem; font-style: normal; font-weight: 600; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { padding: 3.5rem 0; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin-left: auto; margin-right: auto; margin-bottom: 1.75rem; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { position: relative; padding: 2.25rem; border-radius: var(--radius); border: 1px solid var(--color-border); background: #fff; 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-md); }
.pricing-card__badge { position: absolute; top: 1rem; right: 1rem; background: var(--color-accent); color: #fff; font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.pricing-card__plan { font-size: 1.4rem; margin-bottom: .35rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-neutral-dark); margin: 0 0 .5rem; }
.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: flex; flex-direction: column; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .5rem; align-items: flex-start; color: var(--color-text); font-size: .95rem; }
.pricing-card__cta { margin-top: auto; }

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

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .92rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.82); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.82); display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.logo--footer img { height: 64px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.footer-legal { margin-top: 1rem; font-size: .88rem; }
.footer-legal a { display: inline; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: .88rem; color: rgba(255,255,255,0.6); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* === 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.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 560px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn { padding: .55rem 1rem; font-size: .88rem; }
.cookie-banner .btn--ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.24); }
.cookie-banner .btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }

/* === 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; } .site-header, .btn, .card { transition: none; } }
