:root {
  --color-primary: #8B5CF6;
  --color-secondary: #C4B5FD;
  --color-accent: #10B981;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1E1B3A;
  --color-muted: #6B6489;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --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 -20px rgba(76, 29, 149, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  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; transition: color .2s var(--ease-hover); }
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; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }

/* === Layout === */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5.5rem; } }

/* === Header (glass 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 rgba(76, 29, 149, 0.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 30px -12px rgba(76, 29, 149, 0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav a { color: var(--color-ink); font-weight: 500; font-size: 0.95rem; position: relative; padding-block: 0.5rem; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-hover); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding: 0.6rem 1.15rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(76, 29, 149, 0.15); border-radius: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-neutral-dark); display: block; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}
@media (max-width: 959px) {
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; gap: 0.25rem; border-bottom: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-md); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(76, 29, 149, 0.06); }
  .primary-nav .nav-cta { margin-top: 0.5rem; text-align: center; }
}

/* === Hero (split) === */
.hero { position: relative; padding-block: 3rem 3.5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 15% 20%, rgba(196, 181, 253, 0.35), transparent 60%),
    radial-gradient(60% 50% at 90% 80%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), #fff);
}
@media (min-width: 768px) { .hero { padding-block: 5rem 6rem; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero-copy .eyebrow { font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-primary); margin-bottom: 1rem; font-weight: 600; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy .lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .hero-copy .lede { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-ctas.center { justify-content: center; }
.hero-media img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 899px) { .hero-media img { aspect-ratio: 16/10; } }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s, color .2s; cursor: pointer; text-align: center; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 8px 22px -8px rgba(139, 92, 246, 0.55); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.65); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.08); color: var(--color-neutral-dark); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Intro / prose === */
.intro h2 { margin-bottom: 1.25rem; }
.intro p { font-size: 1.05rem; color: var(--color-ink); }

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

/* === Cards / highlights === */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid { gap: 1.75rem; } }
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: 0.98rem; margin-bottom: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(16, 185, 129, 0.14)); color: var(--color-primary); margin-bottom: 1rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

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

/* === CTA band === */
.cta-band > .container { position: relative; }
.cta-band .container.center {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); }
.cta-band .btn-primary:hover { color: var(--color-primary); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.contact-inline { font-size: 0.95rem; margin-block: 1rem 1.5rem; }

/* === Services teaser === */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.link-row { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.link-row a { font-weight: 600; }
.rounded-media { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.08); border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: var(--shadow-md); }
.faq-list summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; } }
.contact-info { background: #fff; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(76, 29, 149, 0.08); }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-list li { font-size: 0.98rem; color: var(--color-ink); }
.contact-list strong { display: inline-block; min-width: 90px; color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 600; }
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid rgba(76, 29, 149, 0.08); display: flex; flex-direction: column; gap: 1rem; }
.contact-form h2 { margin-bottom: 0.5rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--color-neutral-dark); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid rgba(76, 29, 149, 0.2); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-ink);
  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 3px rgba(139, 92, 246, 0.18); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-consent { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; font-weight: 400; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; } }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 0.85rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer address { font-style: normal; margin-bottom: 1.25rem; line-height: 1.7; }
.footer-tagline { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; font-size: 0.95rem; }
.legal-links { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
.legal-links a { font-size: 0.85rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* === 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: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cookie-banner__actions .btn-primary { background: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs .btn-primary { align-self: flex-start; margin-top: 0.5rem; }

/* === 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; }
  html { scroll-behavior: auto; }
}
