/* === Tokens === */
:root {
  --color-primary: #8B5CF6;
  --color-secondary: #C4B5FD;
  --color-accent: #10B981;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B29;
  --color-muted: #5B5470;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(76, 29, 149, 0.22);
  --shadow-lg: 0 24px 60px -24px 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);
  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);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { background: rgba(139, 92, 246, 0.08); transform: translateY(-2px); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.55);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 255, 0.75);
  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 6px 24px -12px rgba(76, 29, 149, 0.18);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.site-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-neutral-dark);
  position: relative;
  padding: 0.4rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--color-neutral-dark); }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.4rem;
  color: var(--color-neutral-dark);
  cursor: pointer;
}

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

/* Mobile nav open */
.site-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 var(--color-border);
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 4rem 3rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, #F3ECFE 100%);
}
.hero__glow {
  position: absolute;
  inset: -20% 20% auto -20%;
  height: 60vh;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.14), transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.25), transparent 55%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}
.hero__inner h1 { max-width: 28ch; margin-inline: auto; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0.75rem auto 1.75rem;
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__image {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}
.hero__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Sections === */
.section {
  padding-block: 4rem;
}
.section--tinted {
  background: linear-gradient(180deg, #F3ECFE 0%, var(--color-neutral-light) 100%);
}
.section__title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* === Grids === */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  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 {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.15));
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card p { color: var(--color-muted); margin-bottom: 0; }
a.card-link { color: inherit; display: block; }
a.card-link h3 { color: var(--color-neutral-dark); }
a.card-link:hover { color: inherit; }

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

/* === CTA band === */
.cta-band {
  padding-block: 4rem;
  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: 52ch; margin-inline: auto; margin-bottom: 1.5rem; }

/* === Pricing === */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@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: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  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-lg); }
.pricing-card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-card__plan { margin-bottom: 0.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-bottom: 1rem;
  line-height: 1.1;
}
.pricing-card__lede {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}
.pricing-card__features li {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  align-items: flex-start;
  color: var(--color-text);
  font-size: 0.95rem;
}
.pricing-card__features li span {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-neutral-dark);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.contact-form button { justify-self: start; margin-top: 0.5rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-heading); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.logo--footer img { height: 60px; }
.footer__tagline { color: rgba(255,255,255,0.75); margin-top: 0.75rem; }
.footer__nav, .footer__legal { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__contact address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer__legal { margin-top: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  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;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cookie-banner .btn-primary { background: var(--color-accent); box-shadow: none; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.cookie-banner__prefs label { font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }

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