/* === Tokens === */
:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-accent-2: #1D4ED8;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-border: rgba(9,9,11,0.10);
  --color-muted: rgba(9,9,11,0.60);
  --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(0,0,0,0.06);
  --shadow-md: 0 10px 30px -10px rgba(0,0,0,0.15);
  --shadow-lg: 0 20px 60px -20px rgba(0,0,0,0.25);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  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-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.75);
  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 var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,250,250,0.92);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: .5rem;
  cursor: pointer;
  color: var(--color-primary);
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
  padding-block: .75rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.primary-nav .nav-cta {
  color: var(--color-accent);
  font-weight: 600;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37,99,235,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(37,99,235,0.55); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(9,9,11,0.04); text-decoration: none; }
.btn-on-dark { }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Hero === */
.hero { position: relative; padding-block: 3rem 4rem; overflow: hidden; }
.hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 20% 20%, rgba(37,99,235,0.10), transparent 60%),
              radial-gradient(50% 50% at 90% 10%, rgba(37,99,235,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-thanks { padding-block: 4rem; text-align: center; }
.thanks-check {
  width: 88px; height: 88px; margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(37,99,235,0.5);
}
.hero-thanks .lede { font-size: 1.15rem; color: var(--color-secondary); }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-secondary); font-size: 1.05rem; }
.section-intro { text-align: center; }
.section-intro p { color: var(--color-secondary); font-size: 1.05rem; max-width: 68ch; margin-inline: auto; }

/* === Cards / Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.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-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37,99,235,0.10);
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-secondary); font-size: .97rem; margin: 0; }

.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(9,9,11,0.05);
}

/* === Testimonial === */
.section-testimonial { padding-block: 3rem; }
.testimonial {
  margin: 0;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial .quote-mark {
  color: rgba(37,99,235,0.18);
  margin: 0 auto .5rem;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.55;
  max-width: 60ch;
  margin-inline: auto;
}
.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: .9rem;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), #1c1c22);
  color: var(--color-neutral-light);
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 20%, rgba(37,99,235,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(250,250,250,0.75); font-size: 1.05rem; margin-bottom: 1.5rem; }
.cta-band-details { font-size: .95rem !important; letter-spacing: 0.02em; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  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: "+";
  color: var(--color-accent);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-secondary); font-size: .97rem; }

/* === Contact form === */
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-row label { font-weight: 500; font-size: .92rem; margin-bottom: .4rem; color: var(--color-primary); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--color-secondary);
  margin-block: 1rem 1.25rem;
  flex-wrap: wrap;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250,250,250,0.75);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.site-footer a { color: rgba(250,250,250,0.75); text-decoration: none; display: block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.logo-footer img { height: 60px; }
.tagline { font-size: .95rem; margin-top: .75rem; }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,0.08); margin-top: .75rem; }
.legal-links a { display: inline; padding: 0; font-size: .88rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: .85rem;
  color: rgba(250,250,250,0.55);
}

/* === 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);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .92rem; margin-bottom: 1rem; color: rgba(250,250,250,0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-ghost {
  color: var(--color-neutral-light);
  border-color: rgba(255,255,255,0.2);
}
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }

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

/* === Media queries === */
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo-footer img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    width: auto;
    padding-block: 0;
  }
  .primary-nav a {
    padding: .4rem 0;
    border-bottom: none;
  }
  .primary-nav a::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s var(--ease);
  }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    color: #fff;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px -6px rgba(37,99,235,0.4);
  }
  .primary-nav .nav-cta::after { display: none; }
  .primary-nav .nav-cta:hover { text-decoration: none; transform: translateY(-1px); }

  .hero { padding-block: 5rem 6rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding-block: 5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
