:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #6B6591;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 20px 60px -25px rgba(76, 29, 149, 0.3);
  --shadow-lg: 0 30px 80px -30px rgba(76, 29, 149, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; font-weight: 700; }
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; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-hover); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header / Glass 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 transparent;
  transition: background .3s var(--ease-hover), box-shadow .3s var(--ease-hover), border-color .3s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 6px 24px -18px rgba(76, 29, 149, 0.35);
  border-bottom-color: var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.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);
  border-radius: 10px; padding: 0.5rem; cursor: pointer; color: var(--color-neutral-dark);
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative; padding: 0.5rem 0.25rem; font-weight: 500; color: var(--color-text);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-hover);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

.site-header[data-nav].is-open .primary-nav {
  display: flex; flex-direction: column; gap: 0.5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

/* === Hero (saas-spotlight) === */
.saas-hero {
  position: relative;
  padding-block: 4rem 3rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.14), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(167, 139, 250, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(250, 245, 255, 1));
  overflow: hidden;
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__text .eyebrow, .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero__text h1 { max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin-bottom: 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.hero--compact { padding-block: 3rem 2rem; }
.hero__text--center { text-align: center; margin-inline: auto; max-width: 720px; }
.hero__text--center h1 { max-width: none; margin-inline: auto; }
.hero__text--center .lede { margin-inline: auto; }

/* === Sections === */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.05rem; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 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-hover), box-shadow .25s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(249, 115, 22, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card p { color: var(--color-muted); margin-bottom: 0; }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.08)); }
.testimonial { margin: 0; text-align: center; padding: 2rem 0; }
.testimonial p {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5;
  color: var(--color-neutral-dark); max-width: 60ch; margin: 0 auto 1.25rem;
}
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: 0.95rem; font-weight: 500; }

/* === CTA band === */
.cta-band {
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  margin-inline: 1.25rem;
  position: relative; overflow: hidden;
}
.cta-band__inner {
  padding: 2.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  max-width: 1150px;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* === FAQ === */
.faq__list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__list details {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.faq__list summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  color: var(--color-neutral-dark); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__list summary::after { content: "+"; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq__list details[open] summary::after { content: "−"; }
.faq__list details p { color: var(--color-muted); margin: 0.75rem 0 0; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 500; font-size: 0.9rem; color: var(--color-neutral-dark); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--color-border);
  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 4px rgba(124, 58, 237, 0.12);
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem; margin-top: 2rem;
}
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer__grid h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer__tagline { color: rgba(255,255,255,0.75); }
.footer__nav, .footer__legal { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__nav a, .footer__legal a, .footer__contact a { color: rgba(255,255,255,0.85); }
.footer__nav a:hover, .footer__legal a:hover, .footer__contact a:hover { color: var(--color-accent); }
.footer__contact address { font-style: normal; line-height: 1.7; }
.footer__legal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.footer__base { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; margin-top: 2rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.logo--footer img { filter: brightness(0) invert(1); }

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

/* === 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);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit; font-size: 0.85rem; padding: 0.55rem 0.9rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light); cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); color: #fff; border-color: transparent;
}
.cookie-banner__actions button:hover { transform: translateY(-1px); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.85rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; border: none;
  background: var(--color-accent); color: #fff; cursor: pointer; font: inherit; font-size: 0.85rem;
}

/* === Responsive === */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 3rem; }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 1.75rem; }
  .site-header[data-nav].is-open .primary-nav { position: static; flex-direction: row; padding: 0; box-shadow: none; background: transparent; border: none; }
  .saas-hero { padding-block: 6rem 4rem; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .section { padding-block: 5rem; }
  .grid { gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 3rem; }
  .cta-band { margin-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .saas-hero { padding-block: 7rem 5rem; }
}
