:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4B7A;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --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 80px -30px rgba(76, 29, 149, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 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.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }

/* === 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 transparent;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 30px -20px rgba(76, 29, 149, 0.35);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { height: 64px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  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; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500;
  position: relative; padding: 0.5rem 0.25rem;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover { text-decoration: none; }
.nav-cta {
  background: var(--color-primary); color: #fff !important; padding: 0.55rem 1rem !important;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--color-neutral-dark); }
.primary-nav.is-open { display: block; padding-block: 0.75rem 1rem; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: block; padding: 0; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 1.5rem; }
}

/* === Hero (saas-spotlight) === */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 3rem;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(167, 139, 250, 0.35), transparent 60%),
    linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 60%, #EDE9FE 100%);
}
.hero--compact { padding-block: 3rem 2rem; }
.hero__glow {
  position: absolute; inset: auto -10% -30% -10%; height: 60%;
  background: radial-gradient(600px 300px at 30% 50%, rgba(124, 58, 237, 0.15), transparent 70%),
              radial-gradient(500px 250px at 70% 30%, rgba(34, 197, 94, 0.10), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}
.hero__inner { position: relative; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-primary); font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem; border: 1px solid var(--color-border);
  border-radius: 999px; background: rgba(255,255,255,0.7);
}
.hero h1 { max-width: 22ch; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 58ch; margin-bottom: 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero__visual {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: #fff;
}
.hero__visual img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease;
  text-decoration: none !important;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(124, 58, 237, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.7); }
.btn--ghost {
  background: rgba(255,255,255,0.6); color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Sections === */
.section { padding-block: 4rem; }
.section--tint { background: #fff; }
.section__head { text-align: center; margin-bottom: 2.5rem; max-width: 60ch; margin-inline: auto; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head p { color: var(--color-muted); }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { margin-bottom: 1rem; }
.prose p { color: var(--color-text); font-size: 1.05rem; }
.prose details { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; }
.prose details summary { cursor: pointer; font-weight: 600; color: var(--color-neutral-dark); }
.prose details[open] { box-shadow: var(--shadow-sm); }
.prose details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Cards grid === */
.cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
.cards-grid--two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-grid--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid--two { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.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(34,197,94,0.15));
  color: var(--color-primary); margin-bottom: 0.9rem;
}
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: 0.97rem; margin: 0; }
.card-link { color: inherit; text-decoration: none !important; }
.card-link:hover { text-decoration: none !important; }

/* === Testimonial === */
.testimonial {
  max-width: 55ch; margin-inline: auto; text-align: center;
  padding: 2.5rem 1.5rem;
}
.testimonial p {
  font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--color-neutral-dark); font-weight: 500; line-height: 1.4;
}
.testimonial cite {
  display: block; margin-top: 1.25rem;
  font-style: normal; color: var(--color-muted); font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 3.5rem;
}
.cta-band__inner {
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band__meta { font-size: 0.9rem; margin-top: 0.75rem !important; }
.cta-band .btn--primary {
  background: #fff; color: var(--color-neutral-dark);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.4);
}
.cta-band .btn--primary:hover { background: var(--color-neutral-light); }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === Split === */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split--reverse .split__media { order: -1; }
@media (min-width: 900px) { .split--reverse .split__media { order: 0; } }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4/3; object-fit: cover;
}

/* === 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;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 16px; padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute; top: -14px; right: 1.25rem;
  background: var(--color-accent); color: #fff;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
}
.pricing-card__plan { color: var(--color-neutral-dark); margin-bottom: 0.25rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-card__price {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-primary);
  margin: 0.25rem 0 0.75rem;
}
.pricing-card__lede { color: var(--color-muted); font-size: 0.98rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.pricing-card__features li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.4rem 0; color: var(--color-text); font-size: 0.96rem;
  border-bottom: 1px dashed var(--color-border);
}
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { margin-top: auto; align-self: stretch; text-align: center; }

/* === Contact form === */
.form-wrap { max-width: 640px; margin-inline: auto; }
.contact-form { display: grid; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.92rem; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  background: #fff;
}
.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: 3rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-secondary); }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer__legal { margin-top: 0.75rem; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
}

/* === 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-md);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; }
.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.3); background: transparent; }
.cookie-banner__actions .btn--ghost:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__prefs { margin-top: 0.9rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; }

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