/* === Tokens === */
:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: rgba(9, 9, 11, 0.08);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(9, 9, 11, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(9, 9, 11, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  background-image: radial-gradient(1200px 600px at 90% -10%, rgba(37, 99, 235, 0.08), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(37, 99, 235, 0.05), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); letter-spacing: -0.02em; margin: 0 0 0.75rem; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--color-secondary); }

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

/* === Header / nav (glass) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 250, 250, 0.92);
  box-shadow: 0 6px 20px -12px rgba(9, 9, 11, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem 1rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 0.55rem 0;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.35rem;
  height: 2px; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    gap: 1.75rem;
  }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #1D4ED8);
  box-shadow: 0 10px 25px -12px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(37, 99, 235, 0.8); text-decoration: none; }
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #1D4ED8);
  box-shadow: 0 12px 30px -12px rgba(37, 99, 235, 0.6);
}
.btn-accent:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(9, 9, 11, 0.04); transform: translateY(-2px); text-decoration: none; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; border-radius: 8px; }

/* === Hero-card === */
.hero.hero-card {
  padding-block: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero.hero-card::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  background: radial-gradient(600px 320px at 30% 30%, rgba(37, 99, 235, 0.14), transparent 60%),
              radial-gradient(500px 260px at 80% 20%, rgba(37, 99, 235, 0.10), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-card__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.hero-card__inner h1 { margin-bottom: 1rem; }
.lede {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-card__image {
  margin: 1.5rem 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px -25px rgba(9, 9, 11, 0.4);
}
.hero-card__image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

@media (min-width: 768px) {
  .hero.hero-card { padding-block: 5rem 3.5rem; }
  .hero-card__inner { padding: 4rem 3rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { font-size: 1.05rem; }

.prose-section .container.narrow h2 { text-align: center; }
.prose-section p { font-size: 1.05rem; line-height: 1.75; }

/* === 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: 1024px) {
  .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), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0.25rem; }
.card p { font-size: 0.98rem; margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial-section { background: transparent; }
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--color-primary); line-height: 1.5; margin-bottom: 1.25rem; }
.testimonial cite { color: var(--color-secondary); font-style: normal; font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  margin: 3rem auto;
  max-width: 1150px;
}
.cta-band__inner {
  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;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(37, 99, 235, 0.35), transparent 60%);
  pointer-events: none;
}
.cta-band__inner h2 { color: #fff; position: relative; }
.cta-band__inner p { color: rgba(255, 255, 255, 0.78); max-width: 55ch; margin-inline: auto; position: relative; margin-bottom: 1.5rem; }
.cta-band__inner .btn { position: relative; }
@media (min-width: 768px) { .cta-band__inner { padding: 4rem 2.5rem; } }

/* === Contact band === */
.contact-band .contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-band address { font-style: normal; line-height: 1.9; color: var(--color-secondary); }

/* === Contact form === */
.form-section .contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-row label { font-weight: 500; font-size: 0.95rem; color: var(--color-primary); }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-neutral-light);
  color: var(--color-primary);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin: 0.5rem 0 1.25rem;
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  margin-top: 3rem;
  background: var(--color-neutral-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 { color: #fff; font-size: 1rem; font-family: var(--font-heading); margin-bottom: 1rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); display: inline-block; padding: 0.15rem 0; }
.footer-col a:hover { color: #fff; }
.footer-col nav a, .footer-col.footer-col a { display: block; }
.footer-col address { font-style: normal; line-height: 1.8; color: rgba(255, 255, 255, 0.75); }
.footer-col .logo--footer img { height: 64px; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* === 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(255, 255, 255, 0.85); font-size: 0.92rem; margin: 0 0 0.9rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  font: inherit;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.cookie-banner__actions button:hover { background: rgba(255, 255, 255, 0.1); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__actions [data-cookie-accept]:hover { background: #1D4ED8; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  margin-top: 0.4rem;
}

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