:root {
  --bg: #f7f7f5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: #dfe3e6;
  --accent: #087cac;
  --text: #17212b;
  --muted: #626a73;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.1);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: 0 5rem;
}

section[id] { scroll-margin-top: 6rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 1.5rem;
  width: 100%;
  padding-inline: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  padding: 0.9rem 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(16, 35, 63, 0.1);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--border);
  background: #f4f5f6;
  border-radius: 0.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.23rem;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.16);
}

.button--secondary,
.button--ghost {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
}

main {
  display: grid;
  gap: 4.5rem;
  padding-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  min-height: calc(100svh - 11rem);
}

.hero__copy,
.hero__visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
  max-width: 11ch;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__stats li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.hero__stats strong,
.card h3,
.feature-row h3 {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.hero__stats span,
.card p,
.feature-row p {
  color: var(--muted);
  line-height: 1.6;
}

.visual-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 1.5rem;
  background: #0a0d10;
  box-shadow: var(--shadow);
}

.visual-card::before {
  display: none;
}

.visual-card__badge {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: grid;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.visual-card__badge strong { color: var(--text); font-size: 1rem; }
.hero__image { width: 100%; height: min(68vh, 650px); object-fit: cover; object-position: center 52%; }

.visual-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  display: grid;
  gap: 1.5rem;
}

.section__heading {
  max-width: 48rem;
}

.section__heading h2,
.section--cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--three {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.process-number { display: block; margin-bottom: 2.5rem; color: var(--accent); font-size: .8rem; font-weight: 800; }

.card__tag {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #f1f2f3;
  color: var(--accent);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.card--compact {
  min-height: 100%;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
}

.feature-row__index {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.section--cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.4rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--border);
}

.section--cta .eyebrow, .section--cta h2 { color: #fff; }
.button--light { color: var(--accent); background: #fff; border-color: #fff; }
.contact-details { display: grid; justify-items: start; gap: .8rem; }
.contact-details > a:not(.button), .contact-details > span { color: #fff; font-weight: 600; }
.contact-details > a:not(.button):hover { text-decoration: underline; }
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer__inner { display: flex; justify-content: space-between; width: min(var(--container), calc(100% - 3rem)); margin: auto; padding: 2.25rem 0; }
.footer p { margin: 0; color: var(--muted); }
.back-to-top {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.2);
  font-size: 1.35rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #17212b; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: 70ms; }
.grid .reveal:nth-child(3) { transition-delay: 140ms; }
.grid .reveal:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 980px) {
  .grid--three { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle {
    display: inline-flex;
  }

  .desktop-cta {
    display: none;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.75rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.8rem 0.85rem;
    border-radius: 0.8rem;
    background: #f4f5f6;
  }

  .topbar__inner {
    position: relative;
  }

  .hero,
  .grid--three,
  .grid--four,
  .section--cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--container), calc(100% - 1.2rem));
    padding-block: 0 2rem;
  }

  .topbar {
    top: 0;
  }

  .topbar__inner {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .topbar__inner {
    padding: 0.8rem;
  }

  h1 {
    max-width: 100%;
  }

  .visual-card__footer {
    flex-direction: column;
  }
  .grid--three { grid-template-columns: 1fr; }
  .hero__image { height: 480px; }
  .footer__inner { width: calc(100% - 2rem); flex-direction: column; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
