:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5b4e83;
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(76, 29, 149, 0.2);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.28);
}

/* === Base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header / Nav === */
.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: box-shadow .3s var(--ease), background .3s var(--ease);
}
.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: .75rem 1.25rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: transparent; border: 0; color: var(--color-neutral-dark); padding: .5rem; cursor: pointer; }
.site-nav { display: none; }
.site-nav a {
  position: relative; color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem;
  padding: .5rem 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-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; gap: .5rem; border-bottom: 1px solid rgba(76,29,149,.1); box-shadow: var(--shadow-sm); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; gap: 2rem; align-items: center; }
  .header-inner { padding: 1rem 1.25rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 999px; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer; border: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 58, 237, 0.7); }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.6);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border: 1.5px solid rgba(76, 29, 149, 0.2);
}
.btn-ghost:hover { border-color: var(--color-neutral-dark); transform: translateY(-2px); }

/* === Hero === */
.hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(249, 115, 22, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(167, 139, 250, 0.25), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), var(--color-neutral-light));
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 1.2rem;
  padding: .35rem .8rem; background: rgba(124, 58, 237, 0.08); border-radius: 999px;
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .sub { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin: 0 auto 1.75rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.hero-media { margin-top: 3rem; padding: 0 1.25rem; max-width: 1180px; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; }

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

/* === Sections === */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; }

.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.05rem; line-height: 1.75; }

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

/* === Cards === */
.card {
  background: #fff; border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(76, 29, 149, 0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover h3 { color: var(--color-primary); }
.card h3 { margin-bottom: .5rem; transition: color .2s var(--ease); }
.card p { color: var(--color-muted); margin: 0; font-size: .98rem; }
.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(249, 115, 22, 0.12));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Services layout === */
.services-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .services-layout { grid-template-columns: 2fr 1fr; align-items: start; } }
.services-aside img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); position: sticky; top: 6rem; aspect-ratio: 3/4; object-fit: cover; }

/* === Case cards === */
.case-grid { gap: 2rem; }
.case-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(76,29,149,.06); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-body { padding: 1.5rem 1.75rem 1.75rem; }
.case-body p { color: var(--color-muted); margin: 0; }

/* === Testimonial === */
.testimonial { background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(167, 139, 250, 0.08)); }
.testimonial blockquote { margin: 0; text-align: center; }
.testimonial blockquote p {
  font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4; color: var(--color-neutral-dark); font-weight: 500; margin-bottom: 1.25rem;
}
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; text-align: center; border-radius: var(--radius-lg);
  margin: 3rem 1.25rem; padding: 3.5rem 1.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* === Stats === */
.stats .stat { text-align: center; padding: 1.5rem; }
.stats .stat h3 { font-size: 2rem; color: var(--color-accent); font-weight: 700; }
.stats .stat p { color: var(--color-muted); }

/* === FAQ === */
.faq details {
  background: #fff; border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; margin-bottom: .75rem;
  border: 1px solid rgba(76,29,149,.08); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.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); list-style: none; position: relative; padding-right: 2rem;
}
.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 var(--ease);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 1rem 0 0; color: var(--color-muted); }

/* === Contact === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { font-family: var(--font-heading); font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); display: flex; flex-direction: column; gap: .35rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .85rem 1rem;
  border: 1px solid rgba(76,29,149,.15); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.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.12);
}
.form-consent { flex-direction: row !important; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .88rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.contact-form button[type="submit"] { justify-self: start; margin-top: .5rem; }
.contact-line { color: var(--color-muted); text-align: center; max-width: 720px; margin: 0 auto 1.5rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.legal-links li { margin: 0; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.6); }
.logo-footer img { filter: brightness(0) invert(1); }

/* === 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: 560px; margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  font-family: var(--font-heading); font-weight: 600; font-size: .88rem;
  padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s var(--ease);
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,.22); }
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); }
.cookie-banner__actions [data-cookie-accept]:hover { background: #ea6a10; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.cookie-banner__prefs label { font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); color: #fff; padding: .5rem 1rem; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: .88rem; }

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

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
