:root {
  color-scheme: light;
}

html, body {
  overflow-x: clip;
}

body {
  background:
    radial-gradient(circle at top left, rgba(24, 184, 221, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 0, 0.06), transparent 22%),
    #fff;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

/* Active nav item — current page (build-set) or current section (scrollspy).
   The duplicated :not(.is-scrolled) selectors raise specificity so the active
   pill stays navy-on-cyan (legible) even over a dark hero header, instead of
   inheriting the white "over hero" text colour. */
.nav a[aria-current="page"],
.nav a.is-active,
.site-header:not(.is-scrolled) .nav a[aria-current="page"],
.site-header:not(.is-scrolled) .nav a.is-active {
  color: #0B2536;
  background: #EAF7FC;
}

.hero-shell {
  position: relative;
}

.hero-shell::after {
  content: '';
  position: absolute;
  inset: auto 8% -16px;
  height: 36px;
  border-radius: 999px;
  background: rgba(24, 184, 221, 0.12);
  filter: blur(24px);
  z-index: -1;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.step-card {
  position: relative;
  counter-increment: step;
  border: 1px solid #dbe8ef;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.7rem 1.7rem 1.7rem 5.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #18b8dd, #0a7ea6);
  color: #fff;
  font-weight: 800;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 184, 221, 0.24);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.step-card h3 {
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.step-card p {
  margin-top: .7rem;
  color: #475569;
  line-height: 1.7;
}

.integration-pill {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid #dbe8ef;
  border-radius: 1.5rem;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.integration-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 184, 221, 0.26);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Header logo switch: light on hero, dark after scroll */
.brand-logo {
  flex: 0 0 auto;
}

.brand-logo-light,
.brand-logo-dark {
  transform-origin: left center;
}

.site-header:not(.is-scrolled) .brand-logo-light {
  opacity: 1;
}

.site-header:not(.is-scrolled) .brand-logo-dark {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-dark {
  opacity: 1;
}


/* Large hero refinement */
#top + section {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  #top img {
    transform: scale(1.01);
  }
}

.site-header:not(.is-scrolled) a,
.site-header:not(.is-scrolled) .nav-toggle {
  color: white;
}

.site-header:not(.is-scrolled) .nav a {
  color: rgba(255,255,255,.82);
}

.site-header:not(.is-scrolled) .nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.site-header:not(.is-scrolled) .nav a[href*="Login"] {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(12px);
}

.site-header:not(.is-scrolled) .nav-toggle {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}

@media (max-width: 1023px) {
  .site-header:not(.is-scrolled) .nav {
    background: rgba(15,23,42,.94);
    border-color: rgba(255,255,255,.12);
  }
}
