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

/* === Base === */
* { 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%; height: auto; display: block; }
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); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 2px 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-sm); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.06); }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  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: box-shadow .3s, background .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; padding: 0.85rem 1.25rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.site-nav { display: none; align-items: center; gap: 1.6rem; }
.site-nav a { position: relative; font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.site-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); }
.site-nav a:hover { text-decoration: none; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-cta { padding: 0.55rem 1.15rem; border-radius: 999px; background: var(--color-primary); color: #fff; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--color-neutral-dark); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); padding: 0.5rem; border-radius: 10px; color: var(--color-neutral-dark); cursor: pointer; }
.site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1rem 1.25rem 1.25rem; background: var(--color-neutral-light); border-top: 1px solid var(--color-border); position: absolute; left: 0; right: 0; top: 100%; }
.site-nav.is-open a { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.site-nav.is-open a::after { display: none; }

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

/* === Hero (centered) === */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(202, 138, 4, 0.10), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(167, 139, 250, 0.25), transparent 55%),
    linear-gradient(180deg, var(--color-neutral-light), #F3EBFF);
  position: relative;
  overflow: hidden;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 55ch; margin: 1rem auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero-image { max-width: 960px; margin: 2rem auto 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

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

/* === Sections === */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.page-intro { padding: 3rem 0 1rem; text-align: center; }
.intro h2 { text-align: center; }
.intro p { color: var(--color-text); font-size: 1.05rem; line-height: 1.75; }

/* === Grids & 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: 992px) {
  .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);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--color-muted); margin: 0; font-size: 0.97rem; }
.card h3 { margin-top: 0.25rem; }
.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(202, 138, 4, 0.12));
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { text-decoration: none; }
a.card-link h3 { color: var(--color-neutral-dark); }

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

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

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow .2s;
}
.faq details[open] { 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; padding-right: 1.5rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.25rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.form-section { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.08)); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 500; font-size: 0.92rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px; border: 1px solid var(--color-border);
  background: var(--color-neutral-light);
  transition: border .2s, box-shadow .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.87rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }
.form-success { padding: 1rem; background: #E8F5E9; color: #1B5E20; border-radius: 10px; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding: 4rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 64px; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.tagline { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; max-width: 32ch; }
.legal-links { margin-top: 1rem; font-size: 0.87rem; }
address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; font-size: 0.92rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); text-align: center; }

/* === Contact band === */
.contact-band .card p a { color: var(--color-primary); word-break: break-word; }
.lede { text-align: center; color: var(--color-muted); max-width: 60ch; margin: 0 auto 2rem; }

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

/* === 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);
  box-shadow: var(--shadow-lg); max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff;
  transition: background .2s;
}
.cookie-banner button:hover { background: rgba(255, 255, 255, 0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #A67304; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); }
