:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5B4B8A;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --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 -30px rgba(76, 29, 149, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { 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.65;
  -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); }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.02em; margin-block: 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: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-block: 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin-inline: auto; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section--tinted { background: linear-gradient(180deg, #FAF5FF 0%, #F3EBFF 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }

/* === 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 rgba(76, 29, 149, 0.08);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 24px -18px rgba(76, 29, 149, 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(76, 29, 149, 0.15); background: transparent; border-radius: 12px; color: var(--color-neutral-dark); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); font-weight: 500; padding: 0.4rem 0.1rem; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.primary-nav.is-open { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem 1.5rem; background: rgba(250, 245, 255, 0.98); position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid rgba(76, 29, 149, 0.08); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 2rem; align-items: center; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s; text-decoration: none; }
.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-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(249, 115, 22, 0.55); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 32px -12px rgba(249, 115, 22, 0.7); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); transform: translateY(-1px); }

/* === Hero === */
.hero { position: relative; text-align: center; padding-block: 4rem 3rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 20% auto -20%; height: 60vh;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.14), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: -10% -20% auto 40%; height: 50vh;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.3), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin-inline: auto; font-size: 1.15rem; color: var(--color-muted); margin-block: 0.5rem 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero__image { max-width: 980px; margin: 3rem auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

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

/* === Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .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-radius: var(--radius); padding: 1.75rem; border: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-neutral-dark); margin-block: 0.75rem 0.5rem; }
.card p { color: var(--color-text); margin: 0; font-size: 0.98rem; }
.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.14), rgba(249, 115, 22, 0.14)); color: var(--color-primary); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }

/* === Services layout === */
.services-layout { display: grid; gap: 2rem; }
.services-layout__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (min-width: 960px) { .services-layout { grid-template-columns: 1fr; } }

/* === Split === */
.split { display: grid; gap: 2rem; align-items: center; }
.split__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* === Testimonial === */
.testimonial-section { text-align: center; }
.testimonial { margin: 0; padding: 2.5rem 1.5rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(76, 29, 149, 0.08); position: relative; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; color: var(--color-neutral-dark); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--color-muted); font-size: 0.95rem; letter-spacing: 0.02em; }

/* === CTA band === */
.cta-band { padding-block: 4rem; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -50% 40%; height: 200%; background: radial-gradient(closest-side, rgba(249, 115, 22, 0.2), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.1); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); font-size: 1.05rem; list-style: none; padding-right: 2rem; 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-accent); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(76, 29, 149, 0.08); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea { font-family: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid rgba(76, 29, 149, 0.2); background: var(--color-neutral-light); color: var(--color-text); 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.18); }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.8); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.8rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: 1rem 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-links { margin-top: 1rem; }
.legal-meta { margin-top: 1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.copyright { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; margin: 0; }
address { font-style: normal; line-height: 1.7; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.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: 0 20px 60px -20px rgba(0, 0, 0, 0.5); max-width: 640px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.cookie-banner .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.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.14); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs .btn { align-self: flex-start; margin-top: 0.5rem; }
