/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #4b4870;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-lift: 0 18px 40px -18px rgba(30, 27, 75, 0.25);
  --shadow-hero: 0 30px 80px -30px rgba(30, 27, 75, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-ui); }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === 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: 4rem; }
.section-tint { background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(6, 182, 212, 0.05)); }
.section-title { text-align: center; margin-bottom: 2.25rem; }
.section-lede { color: var(--color-muted); max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

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

/* === Header / Nav (glass) === */
.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-ui), box-shadow .25s var(--ease-ui), border-color .25s var(--ease-ui);
}
.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);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 1.25rem;
  max-width: var(--container); margin-inline: auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 10px;
  background: transparent; color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.primary-nav a {
  position: relative; color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem;
  padding: .35rem 0;
}
.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 .25s var(--ease-ui);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  padding: .55rem 1.05rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), #5B21B6);
  color: #fff;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.primary-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1rem; box-shadow: var(--shadow-lift);
}
.primary-nav.is-open a { padding: .6rem .25rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; background: transparent; border: 0; box-shadow: none; padding: 0; }
  .logo img { height: 96px; }
}

/* === Hero (centered) === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 10% auto 10%; height: 60%; z-index: 0;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.18), rgba(6, 182, 212, 0) 70%),
              radial-gradient(closest-side, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-inner .eyebrow { margin-inline: auto; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin: 0 auto 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-image {
  position: relative; z-index: 1; margin-top: 3rem;
}
.hero-image img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 16/9; object-fit: cover;
  box-shadow: var(--shadow-hero);
}
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-ui), box-shadow .2s var(--ease-ui), background .2s var(--ease-ui), color .2s var(--ease-ui);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5B21B6);
  color: #fff;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6); color: var(--color-neutral-dark);
  border-color: var(--color-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-accent {
  background: var(--color-accent); color: #fff;
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); background: #0891B2; }

/* === Cards grid === */
.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: 1000px) {
  .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-md);
  padding: 1.75rem; box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui), border-color .25s var(--ease-ui);
  display: flex; flex-direction: column; gap: .5rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(124, 58, 237, 0.25); }
.card p { color: var(--color-muted); margin: 0; }
.card h3 { color: var(--color-neutral-dark); }
a.card-link { text-decoration: none; color: inherit; }
a.card-link h3 { color: var(--color-neutral-dark); transition: color .2s var(--ease-ui); }
a.card-link:hover h3 { color: var(--color-primary); }

.icon-badge {
  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: .5rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0; padding: 2.5rem 1.5rem; text-align: center;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft); position: relative;
}
.testimonial p { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); max-width: 55ch; margin: 0 auto 1rem; line-height: 1.5; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }
.quote-mark { color: var(--color-secondary); opacity: .35; margin-bottom: .5rem; }

/* === CTA band === */
.cta-band {
  margin-block: 2rem; padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff; border-radius: 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.25), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.28), transparent 55%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 55ch; margin: 0 auto 1.75rem; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form .field { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label { font-weight: 600; font-size: .92rem; color: var(--color-neutral-dark); }
.contact-form .optional { color: var(--color-muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: #fff; color: var(--color-neutral-dark);
  transition: border-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
}
.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.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--color-muted); font-weight: 400;
  flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }
.contact-form .btn { align-self: flex-start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.82);
  padding-block: 3.5rem 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer .logo img { height: 72px; filter: brightness(0) invert(1); }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer nav { display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(255, 255, 255, 0.72); margin-top: .5rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem; margin-top: 2rem;
  font-size: .85rem; color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* === Reveal on scroll === */
.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; }
}

/* === 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);
  border-radius: var(--radius-md); padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.45);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(250, 245, 255, 0.25); background: transparent;
  color: var(--color-neutral-light); cursor: pointer;
  transition: background .2s var(--ease-ui), transform .2s var(--ease-ui);
}
.cookie-banner button:hover { background: rgba(250, 245, 255, 0.08); }
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}
.cookie-banner [data-cookie-accept]:hover { background: #0891B2; }
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(250, 245, 255, 0.15);
  display: flex; flex-direction: column; gap: .5rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; }
