/* Homepage - spec-aligned complements */

html {
  scroll-behavior: smooth;
}

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

.section-eyebrow {
  color: #2563EB;
}

.hero-brand-bg {
  background-color: rgb(37 99 235 / 0.05);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 9999px;
  background-color: #2563EB;
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #2563EB;
  background-color: rgb(37 99 235 / 0.06);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  left: 0.875rem;
  width: calc(100% - 1.75rem);
}

.nav-link.is-active {
  color: #1E3A8A;
  background-color: rgb(37 99 235 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 0.12);
}

.nav-link.is-active::after {
  left: 0.875rem;
  width: calc(100% - 1.75rem);
  background-color: #1E3A8A;
}

.nav-link-mobile:hover,
.nav-link-mobile:focus-visible {
  background-color: rgb(37 99 235 / 0.06);
  outline: none;
}

.nav-link-mobile.is-active {
  background-color: rgb(37 99 235 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 0.12);
}

.nav-link-mobile.is-active span:first-child {
  background-color: rgb(37 99 235 / 0.18);
  color: #1E3A8A;
}

.client-logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background-color: #F1F5F9;
  box-shadow: inset 0 0 0 1px rgb(203 213 225 / 0.45);
}

.client-logo-image {
  display: block;
  max-width: 100%;
  max-height: 2.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.clients-showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(37 99 235 / 0.04) 0%, rgb(248 250 252) 45%, rgb(248 250 252) 100%);
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee__fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 2;
  height: 100%;
  width: 5rem;
}

.clients-marquee__fade--left {
  left: 0;
  background: linear-gradient(to right, rgb(248 250 252), transparent);
}

.clients-marquee__fade--right {
  right: 0;
  background: linear-gradient(to left, rgb(248 250 252), transparent);
}

.clients-marquee__row {
  overflow: hidden;
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.clients-marquee__track--left {
  animation: clients-marquee-left 52s linear infinite;
}

.clients-marquee__track--right {
  animation: clients-marquee-right 58s linear infinite;
}

.clients-marquee__group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.client-marquee__tile {
  display: flex;
  width: 11.5rem;
  flex-direction: column;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(203 213 225 / 0.55);
  background-color: #FFFFFF;
  padding: 0.875rem;
  box-shadow:
    0 1px 2px rgb(30 58 138 / 0.04),
    0 8px 24px rgb(30 58 138 / 0.05);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.client-marquee__tile:hover {
  transform: translateY(-2px);
  border-color: rgb(37 99 235 / 0.25);
  box-shadow:
    0 4px 12px rgb(30 58 138 / 0.08),
    0 16px 40px rgb(30 58 138 / 0.08);
}

.client-marquee__tile:hover .client-logo-image {
  transform: scale(1.04);
}

.client-marquee__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
  transition: color 0.2s ease;
}

.client-marquee__tile:hover .client-marquee__name {
  color: #1E3A8A;
}

.client-marquee__dot {
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: rgb(37 99 235 / 0.25);
}

.client-marquee__accent {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.25rem;
}

.client-marquee__accent span {
  display: block;
  border-radius: 0.375rem;
  background-color: rgb(37 99 235 / 0.12);
}

.client-marquee__accent span:nth-child(1) {
  width: 1.25rem;
  height: 1.25rem;
}

.client-marquee__accent span:nth-child(2) {
  width: 1rem;
  height: 1.75rem;
  background-color: rgb(30 58 138 / 0.14);
}

.client-marquee__accent span:nth-child(3) {
  width: 1.125rem;
  height: 1.125rem;
  background-color: rgb(96 165 250 / 0.22);
}

@keyframes clients-marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes clients-marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee {
    display: none;
  }

  .clients-showcase__static {
    display: block;
  }
}

body.mobile-nav-open {
  overflow: hidden;
}

#mobile-nav-toggle:checked ~ .mobile-nav-backdrop {
  display: block;
}

#mobile-nav-toggle:checked ~ .mobile-nav-panel {
  display: flex;
}
