:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1046;
  --color-muted: #6B5B8A;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(31, 16, 70, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(76, 29, 149, 0.25);
  --shadow-lg: 0 30px 60px -30px rgba(76, 29, 149, 0.4);
}

/* === 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;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
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 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* === Header === */
.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, box-shadow .3s;
}
.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 { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-neutral-dark);
  padding: .4rem .55rem;
  cursor: pointer;
  display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  gap: .25rem;
  box-shadow: var(--shadow-md);
}
.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: .55rem .25rem;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-align: center;
  margin-top: .25rem;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .primary-nav a { padding: .35rem 0; }
  .primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    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"]:not(.nav-cta)::after { transform: scaleX(1); }
  .primary-nav .nav-cta { margin-top: 0; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.65); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }
.btn-accent {
  background: var(--color-accent);
  color: #052e16;
  box-shadow: 0 8px 24px -8px rgba(34, 197, 94, 0.5);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(34, 197, 94, 0.6); color: #052e16; }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Hero === */
.hero {
  position: relative;
  padding-block: 4rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; margin-bottom: 1.25rem; }
.hero .sub {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 0; }
.hero-figure {
  position: relative;
  margin-top: 2.5rem;
}
.hero-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

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

/* === Sections === */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .sub { color: var(--color-muted); font-size: 1.05rem; }

/* === Grid + cards === */
.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: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  color: var(--color-text);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124, 58, 237, 0.25); }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card h3 { margin-bottom: .5rem; }
.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, 0.12), rgba(34, 197, 94, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
a.card-link { color: inherit; }
a.card-link:hover { color: inherit; }

/* === Testimonial === */
.testimonial-section blockquote {
  margin: 0;
  padding: 2rem 1rem;
  position: relative;
  color: var(--color-text);
}
.testimonial-section blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--color-neutral-dark);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.testimonial-section cite {
  font-style: normal;
  color: var(--color-muted);
  font-weight: 500;
}
.quote-mark { color: var(--color-secondary); opacity: .55; margin-bottom: .5rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.28), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band .sub { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* === Contact band (about page) === */
.contact-band {
  background: #fff;
  padding-block: 4rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.contact-band .sub { color: var(--color-muted); }

/* === Contact page === */
.contact-hero { padding-bottom: 1rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.contact-info h2 { margin-top: 0; }
.contact-info p { color: var(--color-muted); }
.contact-details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-details h3 { margin-top: 0; margin-bottom: 1rem; }
.contact-details p { color: var(--color-text); }
.contact-details strong { color: var(--color-neutral-dark); }

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-form h2 { margin-top: 0; }
.contact-form label {
  font-weight: 500;
  color: var(--color-neutral-dark);
  font-size: .95rem;
  margin-top: .5rem;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-text);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: .5rem;
  line-height: 1.5;
}
.form-consent input { width: auto; margin-top: .2rem; }
.contact-form button[type="submit"] { margin-top: 1rem; align-self: flex-start; }

.contact-bg-img { display: none; }

/* === FAQ === */
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-neutral-dark);
  font-family: var(--font-heading);
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; } }
.site-footer .logo img { filter: brightness(0) invert(1); height: 72px; }
.footer-tag { color: rgba(255, 255, 255, 0.7); font-style: italic; margin-top: .75rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav h4, .footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: .75rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.footer-contact p { margin: 0 0 .5rem; }
.legal-links { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; font-size: .9rem; }
.copyright {
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: .85rem;
  text-align: center;
}
.copyright p { margin: 0; }

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

/* === 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: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 620px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  color: #052e16;
  border-color: var(--color-accent);
}
.cookie-banner__actions button:hover { transform: translateY(-1px); }
.cookie-banner__prefs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
  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;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
