:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1a1033;
  --color-muted: #6b5b8a;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 20px 60px -20px rgba(76, 29, 149, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(76, 29, 149, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
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.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === 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 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 10px 30px -20px rgba(76, 29, 149, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0.85rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  position: relative;
  color: var(--color-neutral-dark);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a.nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.primary-nav a.nav-cta::after { display: none; }
.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-neutral-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1.25rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
  align-items: flex-start;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  box-shadow: 0 10px 25px -10px rgba(124, 58, 237, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.7); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, #f3ebff 100%);
}
.hero-glow {
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35), rgba(202, 138, 4, 0.10) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(124, 58, 237, 0.10);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero-sub {
  max-width: 52ch;
  margin: 1.25rem auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero-image {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(76, 29, 149, 0.12));
  pointer-events: none;
}
.hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

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

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #f7f1ff 100%);
  border-block: 1px solid var(--color-border);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Cards / Grids === */
.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: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 42px; height: 42px;
  color: var(--color-primary);
  padding: 8px;
  background: rgba(124, 58, 237, 0.10);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.98rem; margin: 0; }

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--color-neutral-dark);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.testimonial cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* === CTA Band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  text-align: center;
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(202, 138, 4, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: var(--color-neutral-light); max-width: 24ch; margin-inline: auto; }
.cta-band p { color: rgba(250, 245, 255, 0.85); max-width: 52ch; margin: 1rem auto 1.75rem; }
.cta-band__meta { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1.5rem; }
.cta-band .btn-primary {
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.4);
}
.cta-band .btn-primary:hover { background: #ffffff; }

/* === 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;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: var(--color-accent);
  color: var(--color-neutral-light);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.pricing-card__plan {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.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: 0.75rem;
  line-height: 1;
}
.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 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.pricing-card__features li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.97rem;
  color: var(--color-ink);
  line-height: 1.45;
}
.pricing-card__features li span {
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  transition: box-shadow 0.2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-neutral-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.2s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.85rem 0 0; color: var(--color-muted); font-size: 0.97rem; }

/* === Contact form === */
.contact-line { text-align: center; color: var(--color-muted); margin-bottom: 2rem; }
.contact-form {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input,
.form-row 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-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input: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.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.form-consent a { color: var(--color-primary); }
.contact-form .btn { align-self: flex-start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250, 245, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}
.footer-logo img {
  height: 72px;
  filter: brightness(0) invert(1);
}
.footer-tag { margin-top: 1rem; color: rgba(250, 245, 255, 0.7); max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav h3, .footer-contact h3 {
  color: var(--color-neutral-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.footer-nav a, .footer-contact a {
  color: rgba(250, 245, 255, 0.8);
  font-size: 0.98rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-neutral-light); }
.footer-contact address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem; }
.footer-copy {
  border-top: 1px solid rgba(250, 245, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(250, 245, 255, 0.6);
  text-align: center;
}
.footer-copy p { margin: 0; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 560px;
  margin-inline: auto;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
.cookie-banner__actions .btn-primary {
  background: var(--color-accent);
  color: var(--color-neutral-light);
  box-shadow: none;
}
.cookie-banner__actions .btn-ghost {
  background: transparent;
  color: var(--color-neutral-light);
  border-color: rgba(250, 245, 255, 0.3);
}
.cookie-banner__actions .btn-ghost:hover { background: rgba(250, 245, 255, 0.1); }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 245, 255, 0.2);
}
.cookie-banner__prefs label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.92rem;
}
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; }

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