:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-border: rgba(2, 6, 23, 0.10);
  --color-muted: rgba(15, 23, 42, 0.68);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(2, 6, 23, 0.20);
  --shadow-lg: 0 30px 60px -30px rgba(2, 6, 23, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color .2s var(--ease-hover); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .75em;
}
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.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }

.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--color-primary); color: var(--color-neutral-light);
  padding: .5rem .75rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: .75rem; }

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

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 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-hover), box-shadow .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 6px 24px -12px rgba(2, 6, 23, 0.15);
  border-bottom-color: var(--color-border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }

.nav-toggle {
  background: none; border: 1px solid var(--color-border);
  color: var(--color-primary); border-radius: 10px;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.primary-nav {
  position: fixed; inset: 64px 0 auto 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  display: none; flex-direction: column; gap: .25rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-primary); font-weight: 500;
  padding: .75rem .5rem; border-radius: 8px;
}
.primary-nav a[aria-current="page"] { color: var(--color-secondary); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: var(--color-neutral-light);
  text-align: center; margin-top: .5rem;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: transparent; box-shadow: none; border: 0; padding: 0; gap: .25rem;
  }
  .primary-nav a {
    position: relative; padding: .5rem .85rem;
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem;
    height: 2px; background: var(--color-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease-hover);
  }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta {
    background: var(--color-primary); color: var(--color-neutral-light);
    padding: .55rem 1rem; border-radius: 999px; margin-left: .5rem;
  }
  .primary-nav .nav-cta::after { display: none; }
  .primary-nav .nav-cta:hover { background: var(--color-secondary); color: var(--color-neutral-light); }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover), color .2s var(--ease-hover);
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-neutral-light);
  box-shadow: 0 10px 30px -12px rgba(30, 58, 138, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(30, 58, 138, 0.7); color: var(--color-neutral-light); }
.btn--ghost {
  background: transparent; color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-primary); color: var(--color-neutral-light); border-color: var(--color-primary); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* === Hero (centered) === */
.hero { position: relative; overflow: hidden; padding-block: 3.5rem 3rem; }
.hero__glow {
  position: absolute; inset: -20% 10% auto 10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(202, 138, 4, 0.16), transparent 60%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-secondary);
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero .sub {
  max-width: 56ch; margin: 1rem auto 1.75rem;
  font-size: 1.15rem; color: var(--color-muted);
}
.hero__ctas { display: inline-flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero__image {
  margin: 0 auto; max-width: 1080px;
  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-block: 5.5rem 4rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--tinted {
  background:
    radial-gradient(circle at 15% 0%, rgba(30, 58, 138, 0.06), transparent 40%),
    linear-gradient(180deg, #EEF2F7 0%, var(--color-neutral-light) 100%);
}
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head h2 { max-width: 30ch; margin-inline: auto; }
.section__lead { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }
@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === 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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: .25rem; }
.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(30, 58, 138, 0.10), rgba(202, 138, 4, 0.14));
  color: var(--color-secondary); margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.testimonial__mark {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  color: var(--color-accent); opacity: .35;
}
.testimonial p { font-size: 1.15rem; color: var(--color-primary); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-secondary); font-family: var(--font-heading); }

/* === CTA band === */
.cta-band {
  padding-block: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-neutral-light);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(202, 138, 4, 0.25), transparent 55%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
.cta-band h2 { color: var(--color-neutral-light); margin-bottom: .5rem; }
.cta-band p { color: rgba(248, 250, 252, 0.82); max-width: 60ch; margin-bottom: 0; }
.cta-band .btn--primary {
  background: var(--color-accent); color: var(--color-neutral-dark);
  box-shadow: 0 10px 30px -10px rgba(202, 138, 4, 0.5);
}
.cta-band .btn--primary:hover { background: #eab308; color: var(--color-neutral-dark); }
@media (min-width: 768px) {
  .cta-band { padding-block: 4.5rem; }
  .cta-band__inner { flex-direction: row; align-items: center; }
}

/* === FAQ === */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease-hover);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  color: var(--color-primary); 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; line-height: 1;
  color: var(--color-accent); transition: transform .2s var(--ease-hover);
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--color-muted); margin: .75rem 0 0; }

/* === Contact form === */
.contact-form {
  display: grid; gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-family: var(--font-heading); font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--color-primary);
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-neutral-light);
  transition: border-color .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-primary); color: rgba(248, 250, 252, 0.82);
  padding-block: 3rem 1.5rem; margin-top: 2rem;
}
.site-footer h3 { color: var(--color-neutral-light); font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(248, 250, 252, 0.82); }
.site-footer a:hover { color: var(--color-accent); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.logo--footer img { height: 60px; }
.footer__tag { color: rgba(248, 250, 252, 0.62); font-style: italic; margin-top: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__legal { margin-top: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding-top: 1.25rem; margin-top: 2rem;
  color: rgba(248, 250, 252, 0.55); font-size: .85rem;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* === 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;
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(248, 250, 252, 0.85); font-size: .92rem; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn--ghost { color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.28); }
.cookie-banner .btn--ghost:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }
.cookie-banner .btn--primary { background: var(--color-accent); color: var(--color-neutral-dark); box-shadow: none; }
.cookie-banner .btn--primary:hover { background: #eab308; color: var(--color-neutral-dark); }
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
  display: grid; gap: .5rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: .5rem; }

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