:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1447;
  --color-muted: #5B4A8A;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 20px;
  --radius-btn: 999px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.28);
}

/* === Reset & 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%; 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);
  color: var(--color-neutral-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === 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 rgba(76, 29, 149, 0.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 6px 24px -12px rgba(76, 29, 149, 0.2);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.primary-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  position: relative;
  color: var(--color-neutral-dark);
  font-weight: 500;
  font-size: .95rem;
  padding: .25rem 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; 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); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: .55rem 1.15rem;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-toggle {
  background: transparent;
  border: 1px solid rgba(76, 29, 149, 0.15);
  border-radius: 10px;
  padding: .4rem;
  color: var(--color-neutral-dark);
  cursor: pointer;
}
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1.25rem;
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  gap: 1rem;
  align-items: flex-start;
}

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

/* === Hero (saas-spotlight) === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(180deg, #FAF5FF 0%, #F1E9FF 100%);
}
.saas-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.saas-hero .hero-inner h1 {
  max-width: 22ch;
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual {
  max-width: 1200px;
  margin: 2.5rem auto 0;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}
.hero-slim { padding-bottom: 2rem; }
.hero-slim .hero-visual { display: none; }

@media (min-width: 900px) {
  .hero { padding: 5rem 2rem 5rem; }
  .saas-hero .hero-inner { text-align: center; margin-inline: auto; }
  .saas-hero .hero-inner h1 { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  font-size: .95rem;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border-color: rgba(76, 29, 149, 0.2);
}
.btn-ghost:hover { background: rgba(124, 58, 237, 0.06); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Proof line === */
.proof {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  text-align: center;
}
.proof-line {
  font-size: .85rem;
  color: var(--color-muted);
  letter-spacing: .04em;
}

/* === Sections === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section.narrow { max-width: 780px; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }

/* === Card grid === */
.grid {
  display: grid;
  gap: 1.5rem;
}
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76, 29, 149, 0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block;
  color: var(--color-text);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; }
.card-link:hover h3 { color: var(--color-primary); }
.card h3 { transition: color .2s var(--ease); }
.card p { color: var(--color-muted); font-size: .95rem; margin: 0; }
.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(167,139,250,0.18));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Quote === */
.quote-section { max-width: 900px; text-align: center; }
.quote-section blockquote {
  margin: 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #fff, #F5EEFF);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(76, 29, 149, 0.06);
  position: relative;
}
.quote-section blockquote::before {
  content: "“";
  position: absolute;
  top: -.25rem; left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-secondary);
  line-height: 1;
}
.quote-section blockquote p {
  font-size: 1.15rem;
  color: var(--color-neutral-dark);
  font-style: normal;
  margin-bottom: 1rem;
}
.quote-section cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  font-size: .95rem;
}

/* === CTA band === */
.cta-band {
  margin: 3rem 1.25rem 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: 28px;
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(34,197,94,0.35), transparent 60%);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-neutral-dark);
}
.cta-band .btn-primary:hover { color: var(--color-primary); }
.cta-band .contact-line { font-size: .95rem; margin-bottom: 1.25rem; }
.cta-band .contact-line a { color: #fff; text-decoration: underline; }

@media (min-width: 900px) {
  .cta-band { margin: 4rem auto; max-width: 1100px; padding: 4rem 2rem; }
}

/* === Contact === */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 2fr 1fr; } }
.contact-form-wrap, .contact-side {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76, 29, 149, 0.06);
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--color-neutral-dark);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 29, 149, 0.15);
  background: #FBF9FF;
  color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.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);
}
.form-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-muted);
  font-weight: 400;
}
.form-consent input { margin-top: .2rem; }
.form-success {
  padding: 1rem;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 12px;
  color: #14532D;
}
.contact-side h2 { font-size: 1.3rem; }
.contact-side p { font-size: .95rem; color: var(--color-muted); }
.contact-side strong { color: var(--color-neutral-dark); }

/* === FAQ === */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76, 29, 149, 0.06);
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.4rem;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250, 245, 255, 0.85);
  padding: 3rem 1.25rem 2rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .logo img { height: 64px; filter: brightness(1.2); }
.site-footer .tagline { margin-top: 1rem; color: rgba(250, 245, 255, 0.7); font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(250, 245, 255, 0.85); font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { margin: .25rem 0; font-size: .9rem; }
.footer-contact a { color: rgba(250, 245, 255, 0.85); }
.footer-contact a:hover { color: #fff; }
.legal-links { margin-top: 1rem !important; font-size: .85rem !important; }
.copyright {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 245, 255, 0.15);
  font-size: .8rem;
  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: 18px;
  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 button {
  font: inherit;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 255, 0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: .85rem;
  transition: background .2s var(--ease);
}
.cookie-banner__actions button:hover { background: rgba(250, 245, 255, 0.1); }
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0B3B1E;
  font-weight: 600;
}
.cookie-banner__actions button[data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
}
.cookie-banner__prefs label {
  display: flex; gap: .5rem; align-items: center;
}
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: .5rem;
  font: inherit;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

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