:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4B5670;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', 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 10px 30px -10px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 20px 60px -20px rgba(30, 27, 75, 0.28);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  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.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
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; }
address { font-style: normal; }

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

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 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 .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(30, 27, 75, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.nav-toggle {
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  border-radius: 10px; padding: 0.4rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  gap: 0.25rem;
}
.primary-nav a {
  display: block;
  color: var(--color-neutral-dark);
  font-weight: 500; font-size: 0.98rem;
  padding: 0.6rem 0.25rem;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row;
    padding: 0; background: transparent; border: 0; box-shadow: none;
    gap: 1.75rem;
  }
  .primary-nav a { padding: 0.25rem 0; }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    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); }
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.18), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub {
  max-width: 52ch; margin: 1.25rem auto 1.75rem;
  color: var(--color-muted); font-size: 1.1rem;
}
.hero__cta { margin-bottom: 3rem; }
.hero__image {
  margin: 2.5rem auto 0;
  max-width: 1000px;
  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: 6rem 0 4rem; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.6); color: #fff; }
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #16A34A);
  box-shadow: 0 10px 24px -8px rgba(34, 197, 94, 0.5);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-tinted {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--color-neutral-light);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

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

/* === Grids === */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 1.75rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 197, 94, 0.15));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

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

/* === Testimonial === */
.testimonial {
  margin: 0; padding: 2.5rem 1.75rem;
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-neutral-light), #fff);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 500;
  color: var(--color-neutral-dark);
  line-height: 1.5;
}
.testimonial cite {
  display: block; margin-top: 1rem;
  font-style: normal; font-size: 0.95rem;
  color: var(--color-muted); font-weight: 500;
}

/* === CTA band === */
.cta-band {
  padding: 4rem 0;
  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: -50% -20% auto auto; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band > .container { position: relative; }
.cta-band h2 { color: #fff; max-width: 28ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }

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

/* === Contact === */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}
.contact-info address { line-height: 1.9; color: var(--color-muted); }
.contact-info strong { color: var(--color-neutral-dark); font-family: var(--font-heading); }

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid; gap: 1.1rem;
}
.contact-form label { display: grid; gap: 0.4rem; }
.contact-form label span {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 0.9rem; color: var(--color-neutral-dark);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: #fff; color: var(--color-text);
  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 3px rgba(99, 102, 241, 0.15);
}
.form-consent {
  display: flex; flex-direction: row; align-items: flex-start; gap: 0.6rem;
  font-size: 0.88rem; color: var(--color-muted);
}
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h3 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}
.footer-tagline { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { padding: 0.15rem 0; }
.footer-contact address { color: rgba(255,255,255,0.75); line-height: 1.75; }
.footer-contact address a { color: rgba(255,255,255,0.9); }
.legal-nav { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.copyright {
  text-align: center; margin: 1.5rem 0 0;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.site-footer .logo--footer img { filter: brightness(0) invert(1); opacity: 0.95; }

/* === Cookie banner === */
.consent-panel {
  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: 0 auto;
}
.consent-panel.is-visible { display: block; }
.consent-panel p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.consent-panel__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-panel__actions button {
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.consent-panel__actions button:hover { background: rgba(255,255,255,0.08); }
.consent-panel__actions [data-cookie-accept] {
  background: var(--color-accent); color: #fff; border-color: transparent;
}
.consent-panel__actions [data-cookie-accept]:hover { background: #16A34A; }
.consent-panel__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid; gap: 0.5rem;
  font-size: 0.9rem;
}
.consent-panel__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.consent-panel__prefs [data-cookie-save] {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading); font-weight: 500;
  border-radius: 999px; border: 0;
  background: var(--color-primary); color: #fff;
  cursor: pointer;
}

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