/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-primary-2: #5B21B6;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #4C4A75;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.15);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.25);
}

/* === 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;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-primary-2); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-heading); font-size: .8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 1rem; }

/* === Header / 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 transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 24px -18px rgba(30, 27, 75, 0.35); border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; position: relative; padding-block: .35rem; }
.primary-nav a:not(.btn)::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(.btn):hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; padding: 10px 8px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .25s var(--ease), 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 (max-width: 899px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1.25rem 1.5rem; background: rgba(250, 245, 255, 0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); display: none; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
  .primary-nav .btn { margin-top: .5rem; text-align: center; }
}
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); color: #fff; box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.55); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.65); }
.btn-ghost { background: rgba(124, 58, 237, 0.06); color: var(--color-primary); border-color: rgba(124, 58, 237, 0.2); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.12); transform: translateY(-2px); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

/* === Hero === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; }
.hero-compact { padding-block: 3rem 2rem; }
.hero__glow { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 60% at 20% 15%, rgba(124, 58, 237, 0.18), transparent 60%),
  radial-gradient(50% 50% at 85% 30%, rgba(6, 182, 212, 0.14), transparent 60%),
  linear-gradient(180deg, rgba(250, 245, 255, 0) 0%, rgba(167, 139, 250, 0.08) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin: 0 auto 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; }
.hero__visual { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero__visual::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); pointer-events: none; }
.hero__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.social-proof { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--color-border); display: inline-flex; font-size: .9rem; color: var(--color-muted); backdrop-filter: blur(8px); }
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .hero { padding-block: 6rem 4rem; }
}

/* === Section === */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
.intro .narrow p { font-size: 1.1rem; color: var(--color-muted); line-height: 1.75; }
.intro h2 { text-align: center; }

/* === 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); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.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(6, 182, 212, 0.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .95rem; }

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

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.08) 100%); }
.testimonial { margin: 0; padding: 2.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--color-neutral-dark); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: .95rem; color: var(--color-muted); }

/* === CTA band === */
.cta-band { position: relative; margin-block: 2rem; padding-block: 3.5rem; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 20%, rgba(6, 182, 212, 0.35), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35); }
.cta-band .btn-primary:hover { color: var(--color-primary-2); }

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

/* === Contact band & card === */
.contact-band .contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.contact-band .contact-card p { margin: 0; color: var(--color-muted); }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: .9rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-neutral-light); color: var(--color-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250, 245, 255, 0.75); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.site-footer .logo img { filter: brightness(0) invert(1); height: 60px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: rgba(250, 245, 255, 0.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; border-bottom: 1px solid rgba(250, 245, 255, 0.1); }
.footer-grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid address { font-style: normal; margin-bottom: .5rem; }
.tagline { font-family: var(--font-heading); font-size: 1rem; color: rgba(250, 245, 255, 0.85); margin-top: .75rem; }
.legal-links { margin-top: 1rem; font-size: .88rem; }
.copyright { padding-top: 1.5rem; font-size: .85rem; color: rgba(250, 245, 255, 0.5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }

/* === 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: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; color: rgba(250, 245, 255, 0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-ghost { background: rgba(250, 245, 255, 0.08); color: var(--color-neutral-light); border-color: rgba(250, 245, 255, 0.18); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(250, 245, 255, 0.14); color: #fff; }
.cookie-banner__prefs { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250, 245, 255, 0.12); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { justify-self: start; }

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