:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-border: rgba(30, 27, 75, 0.12);
  --color-muted: rgba(30, 27, 75, 0.65);
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-hover: 0 20px 60px -20px rgba(30, 27, 75, 0.25);
  --shadow-hero: 0 40px 80px -30px rgba(124, 58, 237, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(6, 182, 212, 0.08), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(124, 58, 237, 0.1), transparent 60%);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; color: var(--color-neutral-dark); margin: 0 0 .75rem; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 20px -12px rgba(30,27,75,0.2); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; max-width: 1240px; margin-inline: auto; }
.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: .25rem; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); padding: .5rem .85rem; border-radius: 8px; font-weight: 500; }
.primary-nav a:hover { text-decoration: none; color: var(--color-primary); }
.primary-nav a::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a.nav-cta { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.primary-nav a.nav-cta:hover { background: var(--color-primary); color: #fff; }
.primary-nav a.nav-cta::after { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; }
.nav-toggle__bar { width: 20px; height: 2px; background: var(--color-neutral-dark); display: block; margin-inline: auto; transition: transform .2s; }
.primary-nav.is-open { display: flex; }
@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; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); }
  .primary-nav a::after { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.4rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 30px -12px rgba(124,58,237,0.55); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(124,58,237,0.7); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(6,182,212,0.6); }
.btn-accent:hover { background: #0891b2; }

/* === Hero card (archetype) === */
.hero { padding-block: 2.5rem 1.5rem; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(6,182,212,0.12), transparent 60%),
    radial-gradient(700px 400px at 80% 40%, rgba(124,58,237,0.14), transparent 60%);
}
.hero-card__wrap { max-width: 920px; margin-inline: auto; padding-inline: 1.25rem; }
.hero-card__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-hero);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.hero-card__card::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.25), transparent 70%);
}
@media (min-width: 768px) { .hero-card__card { padding: 3.5rem; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.lede { font-size: 1.125rem; color: var(--color-muted); max-width: 60ch; }
.hero-card__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(30,27,75,0.25); }
.hero-card__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Intro / narrow text sections === */
.section-intro h2 { text-align: center; }
.section-intro p { text-align: left; font-size: 1.075rem; color: var(--color-neutral-dark); }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.grid-2, .grid.grid-3, .grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.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), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column; gap: .5rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,0.35); }
.card-lg { padding: 2rem; }
.card__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.15)); color: var(--color-primary); margin-bottom: .5rem; }
.card h3 { margin: 0; }
.card p { color: var(--color-muted); margin: 0; }

/* === Testimonial === */
.section-testimonial { text-align: center; }
.testimonial { margin: 0; padding: 2.5rem 1.5rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); position: relative; }
.testimonial::before { content: '"'; font-family: var(--font-heading); position: absolute; top: -0.5rem; left: 1.5rem; font-size: 5rem; line-height: 1; color: var(--color-secondary); opacity: .5; }
.testimonial p { font-size: 1.2rem; line-height: 1.55; color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-size: .95rem; color: var(--color-muted); font-family: var(--font-body); }

/* === CTA band === */
.cta-band { padding-block: 4rem; }
.cta-band > .container { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; border-radius: var(--radius-lg); padding: 3rem 1.75rem; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-hero); }
.cta-band > .container::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 10%, rgba(6,182,212,0.3), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band__meta { font-size: .95rem; margin-bottom: 1.5rem; }

/* === FAQ === */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; padding: 1rem 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; list-style: none; padding-right: 1.5rem; position: relative; color: var(--color-neutral-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .contact-form { padding: 2.25rem; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; font-family: var(--font-heading); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--color-border); border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--color-neutral-dark); background: var(--color-neutral-light); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); margin: 1rem 0 1.25rem; line-height: 1.5; }
.form-consent input { margin-top: .2rem; }
.contact-form .btn { width: 100%; }
@media (min-width: 640px) { .contact-form .btn { width: auto; } }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250,245,255,0.85); margin-top: 3rem; padding-top: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: rgba(250,245,255,0.85); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.site-footer .muted { color: rgba(250,245,255,0.6); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: .9rem; }
.site-footer__base { padding: 1.25rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: .875rem; color: rgba(250,245,255,0.6); text-align: center; }

/* === 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.4rem; border-radius: var(--radius-md); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; font-size: .95rem; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; color: rgba(250,245,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(250,245,255,0.25); background: transparent; color: var(--color-neutral-light); font-family: var(--font-heading); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #0891b2; }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; padding: .5rem 1rem; border-radius: 999px; border: none; background: var(--color-accent); color: #fff; cursor: pointer; font-family: var(--font-heading); margin-top: .5rem; }

/* === Reveal animations === */
.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; }
  .btn:hover, .card:hover { transform: none; }
}
