:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #6B6488;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 20px;
  --shadow-card: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-card-hover: 0 20px 50px -20px rgba(76, 29, 149, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
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.2; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-heading); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary); margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); }
.figure-wide { margin: 2.5rem 0 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.figure-wide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* === 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: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 8px 30px -20px rgba(76, 29, 149, 0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; max-width: 1180px; margin-inline: auto; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 72px; width: auto; }
.nav-toggle { background: none; border: 0; cursor: pointer; padding: .5rem; display: flex; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease); }
.primary-nav { display: none; flex-direction: column; gap: .25rem; }
.primary-nav.is-open {
  display: flex; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -20px rgba(76, 29, 149, 0.35);
}
.primary-nav a { padding: .6rem 0; color: var(--color-text); font-weight: 500; font-size: 1rem; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; text-align: center; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; position: static; padding: 0; background: none; box-shadow: none; border: 0; }
  .primary-nav a { padding: .25rem 0; position: relative; }
  .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); }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.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.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 58, 237, 0.7); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero === */
.hero { padding: 3.5rem 0 4rem; position: relative; overflow: hidden; }
.saas-hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 20%, rgba(167, 139, 250, 0.25), transparent 60%),
    linear-gradient(180deg, #FAF5FF 0%, #F1EAFE 100%);
}
.hero-inner { max-width: 900px; margin-inline: auto; text-align: center; padding-inline: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 640px; margin: 0 auto 1.75rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-visual { margin: 2rem auto 0; max-width: 960px; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(76, 29, 149, 0.4); background: #fff; }
.hero-visual img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 5rem; }
  .hero-sub { font-size: 1.25rem; }
}

/* === Sections === */
.section { padding: 4rem 0; }
.section-tint { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }

/* === Grid + Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card h3 { margin-top: .25rem; }
.card p { color: var(--color-muted); margin-bottom: 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(34, 197, 94, 0.15));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial { margin: 0; padding: 2.5rem; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5; color: var(--color-neutral-dark); margin-bottom: 1.25rem; }
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: .95rem; }

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

/* === 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: 16px; border: 1px solid var(--color-border); background: #fff; display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--color-accent); border-width: 2px; box-shadow: 0 30px 60px -20px rgba(34, 197, 94, 0.3); }
.pricing-card__badge { position: absolute; top: -14px; right: 1.5rem; background: var(--color-accent); color: #fff; font-family: var(--font-heading); font-size: .8rem; font-weight: 700; padding: .35rem .85rem; border-radius: 999px; letter-spacing: 0.04em; }
.pricing-card__plan { margin-bottom: .25rem; }
.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 1rem; letter-spacing: -0.02em; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; font-size: .98rem; }
.pricing-card__features { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; padding: .4rem 0; color: var(--color-text); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { margin-top: auto; }
.pricing-card__cta .btn { width: 100%; }

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

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-family: var(--font-heading); font-size: .9rem; font-weight: 600; 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);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }
.contact-form button[type="submit"] { align-self: flex-start; }

/* === Contact band === */
.contact-band { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.75rem; text-align: center; box-shadow: var(--shadow-card); }
.contact-band p { margin: 0; color: var(--color-text); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .25rem 0; }
.footer-grid address { font-style: normal; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright { text-align: center; margin: 2.5rem 0 0; color: rgba(255,255,255,0.6); font-size: .85rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }

/* === 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: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  max-width: 620px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(255,255,255,0.9); font-size: .95rem; margin: 0 0 .9rem; }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  font: inherit; font-family: var(--font-heading); font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; cursor: pointer;
  transition: background .2s var(--ease);
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.12); }
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__actions [data-cookie-accept]:hover { background: #1ea54f; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; padding: .5rem 1rem; border-radius: 999px; border: 0; background: var(--color-accent); color: #fff; font-family: var(--font-heading); font-weight: 600; cursor: pointer; }

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