:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #4C4874;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 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.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.75em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
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; }
address { font-style: normal; line-height: 1.8; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }
.section { padding-block: 4rem; }
.section__title { text-align: center; margin-bottom: 2.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s;
}
.btn--primary { background: linear-gradient(135deg, var(--color-primary), #5B21B6); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 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); border-color: var(--color-primary); color: var(--color-neutral-dark); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); border-bottom-color: var(--color-border); box-shadow: 0 4px 24px -18px rgba(30, 27, 75, 0.3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1180px; margin-inline: auto; padding: 0.9rem 1.25rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.primary-nav__list {
  display: none; list-style: none; margin: 0; padding: 0;
  gap: 1.75rem; align-items: center;
}
.primary-nav__list a { color: var(--color-neutral-dark); font-weight: 500; font-size: 0.96rem; position: relative; }
.primary-nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__list .nav-cta { background: linear-gradient(135deg, var(--color-primary), #5B21B6); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; }
.primary-nav__list .nav-cta::after { display: none; }
.primary-nav__list .nav-cta:hover { color: #fff; transform: translateY(-2px); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .primary-nav__list.is-open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-md); gap: 1rem; border-top: 1px solid var(--color-border); }
  .primary-nav__list.is-open a::after { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav__list { display: flex; }
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
}

/* === Hero (saas-spotlight) === */
.saas-hero {
  position: relative;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.14), rgba(6, 182, 212, 0.06) 60%, transparent);
}
.hero__glow {
  position: absolute; inset: -10% 20% auto 20%; height: 380px; z-index: 0;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.hero__inner h1 { margin-bottom: 1rem; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 620px; margin: 0 auto 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero__figure { position: relative; z-index: 1; max-width: 1020px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

@media (min-width: 768px) {
  .saas-hero { padding: 6rem 1.5rem 4rem; }
}

/* === Page header (non-hero pages) === */
.page-header { padding: 4rem 0 1rem; text-align: center; background: linear-gradient(180deg, rgba(167, 139, 250, 0.12), transparent); }
.page-header .lede { max-width: 620px; margin: 1rem auto 0; }

/* === Intro sections === */
.intro { text-align: left; }
.intro h2 { text-align: left; }
.intro p { font-size: 1.06rem; color: var(--color-muted); }

/* === Grid / Cards === */
.grid { display: grid; gap: 1.25rem; 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 {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover), border-color .25s;
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124, 58, 237, 0.3); }
.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.15), rgba(6, 182, 212, 0.15)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { color: inherit; }

/* === Testimonial === */
.testimonial blockquote { margin: 0; text-align: center; padding: 2rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); position: relative; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; color: var(--color-neutral-dark); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-primary); font-weight: 600; font-size: 0.95rem; }

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

/* === CTA band === */
.cta-band { padding: 4rem 1.25rem; text-align: center; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; margin-top: 2rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn--primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.cta-band .btn--primary:hover { background: var(--color-accent); color: #fff; }

/* === Contact band === */
.contact-band { text-align: center; }
.contact-band p { color: var(--color-muted); font-size: 1.05rem; max-width: 640px; margin-inline: auto; margin-bottom: 1.5rem; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.92rem; color: var(--color-neutral-dark); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); background: var(--color-neutral-light);
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row 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; 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(250, 245, 255, 0.85); padding: 4rem 0 1.5rem; margin-top: 3rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(250, 245, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer .tagline { color: rgba(250, 245, 255, 0.7); margin-top: 0.75rem; font-size: 0.95rem; }
.legal-links { margin-top: 1rem; font-size: 0.88rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; 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: var(--radius-md);
  box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn--ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.25); }
.cookie-banner__actions .btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cookie-banner__prefs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); align-items: center; }
.cookie-banner__prefs label { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.88rem; }

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