:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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 -30px rgba(76, 29, 149, 0.35);
}

/* === Reset === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-weight: 700; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; }
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, #ffffff, var(--color-neutral-light)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.lede { font-size: 1.125rem; color: #6B21A8; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Header / Nav (glass) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: transparent; border: 0; color: var(--color-neutral-dark); padding: .5rem; cursor: pointer; }
.primary-nav { display: none; flex-direction: column; gap: .5rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .5rem 0; position: relative; }
.primary-nav a:hover { text-decoration: none; color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: .55rem 1rem !important; border-radius: 999px; text-align: center; }
.nav-cta:hover { background: var(--color-neutral-dark); }

@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: transparent; border: 0; box-shadow: none; }
  .primary-nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; 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); }
  .nav-cta::after { display: none; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 12px 30px -12px rgba(124, 58, 237, .6); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(124, 58, 237, .75); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { background: #fff; border-color: var(--color-primary); color: var(--color-primary); }

/* === Hero (saas-spotlight) === */
.hero.saas-spotlight {
  position: relative;
  padding-block: 4rem 3rem;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(167, 139, 250, 0.25), transparent 60%),
    linear-gradient(135deg, #F3EBFF 0%, #FAF5FF 60%);
  overflow: hidden;
}
.hero-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.hero-inner h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #5b2c8a; max-width: 640px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 3rem; }
.hero-visual { margin: 0 auto; max-width: 960px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px -20px rgba(76, 29, 149, 0.35); background: #fff; }
.hero-visual img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

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

/* === Proof strip === */
.proof-strip { background: #fff; border-block: 1px solid rgba(76, 29, 149, 0.08); }
.proof-inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; padding-block: 1.25rem; color: #6B21A8; font-weight: 500; font-size: .95rem; }

/* === Cards grid === */
.cards-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff; border-radius: 18px; padding: 1.75rem;
  border: 1px solid rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(34,197,94,.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: #5b2c8a; font-size: .98rem; margin: 0; }

/* === With-visual layout === */
.with-visual { display: grid; gap: 2rem; }
.with-visual__img img { border-radius: 16px; box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 900px) { .with-visual { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; } }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, var(--color-neutral-light), #fff); }
.testimonial { text-align: center; max-width: 720px; margin: 0 auto; }
.testimonial-portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; box-shadow: var(--shadow-md); }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--color-neutral-dark); }
.testimonial cite { font-style: normal; color: var(--color-primary); font-weight: 600; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding-block: 4rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: var(--color-accent); color: #062B14; box-shadow: 0 12px 30px -12px rgba(34, 197, 94, .55); }
.cta-band .btn-primary:hover { background: #16a34a; color: #fff; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card {
  position: relative;
  background: #fff; border-radius: 16px; padding: 2.25rem;
  border: 1px solid rgba(76, 29, 149, 0.12);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-lg); }
.pricing-card__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--color-accent); color: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.15rem; margin-bottom: .25rem; color: var(--color-primary); }
.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 .75rem; }
.pricing-card__lede { color: #6B21A8; font-size: .98rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .5rem; font-size: .95rem; color: var(--color-neutral-dark); align-items: flex-start; }
.pricing-card__cta { margin-top: auto; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.08); border-radius: 12px; margin-bottom: .75rem; padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); color: var(--color-neutral-dark); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; font-size: 1.4rem; color: var(--color-primary); transition: transform .25s var(--ease); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: #5b2c8a; }

/* === Contact === */
.contact-form { display: grid; gap: 1rem; background: #fff; padding: 2rem; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(76, 29, 149, 0.08); }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row select, .form-row textarea {
  padding: .75rem .9rem; border-radius: 10px; border: 1px solid rgba(76, 29, 149, 0.2);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-neutral-dark);
  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, .18);
}
.form-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: #5b2c8a; }
.form-consent input { margin-top: .2rem; }
.contact-form .btn { justify-self: start; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card { background: #fff; padding: 1.5rem; border-radius: 14px; border: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1rem; color: var(--color-primary); margin-bottom: .35rem; }
.contact-card p { margin: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: #EDE9FE; padding-block: 3rem 2rem; margin-top: 2rem; }
.site-footer a { color: #EDE9FE; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-logo img { height: 64px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: .9rem; color: rgba(237, 233, 254, 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 1.5rem; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .75rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { font-family: var(--font-heading); font-size: .9rem; border-radius: 999px; padding: .55rem 1rem; border: 1px solid rgba(250, 245, 255, 0.3); background: transparent; color: var(--color-neutral-light); cursor: pointer; }
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #062B14; font-weight: 600; }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250, 245, 255, 0.15); }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: .5rem; }

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