/* =========================================
   PARTNERS SECTION
========================================= */
.partners-section {
  position: relative;
  padding: clamp(76px, 8vw, 124px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(226, 0, 82, 0.045), transparent 18%),
    radial-gradient(circle at 88% 86%, rgba(0, 182, 240, 0.04), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 54%, #fafbfd 100%);
}

.partners-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.72), transparent 15%),
    radial-gradient(circle at 84% 74%, rgba(255, 255, 255, 0.48), transparent 14%);
}

.partners-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.partners-section__intro {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto 42px;
  text-align: center;
}

.partners-section__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(226, 0, 82, 0.07);
  color: #b60d4d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partners-section__title {
  margin: 18px 0 12px;
  color: #11141b;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.partners-section__lead {
  margin: 0 auto;
  max-width: 62ch;
  color: #667085;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.8;
}

/* =========================================
   FULL-BLEED SHELL
========================================= */
.partners-shell {
  position: relative;
  width: 100%;
  padding: 28px clamp(18px, 3vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.74) 100%);
  border-top: 1px solid rgba(17, 20, 27, 0.08);
  border-bottom: 1px solid rgba(17, 20, 27, 0.08);
  box-shadow:
    0 24px 48px rgba(7, 12, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.partners-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 36%),
    radial-gradient(circle at 14% 10%, rgba(226, 0, 82, 0.04), transparent 20%),
    radial-gradient(circle at 88% 82%, rgba(5, 175, 98, 0.03), transparent 18%);
}

.partners-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(226, 0, 82, 0.78) 0%,
      rgba(226, 0, 82, 0.78) 33.333%,
      rgba(0, 182, 240, 0.78) 33.333%,
      rgba(0, 182, 240, 0.78) 66.666%,
      rgba(5, 175, 98, 0.78) 66.666%,
      rgba(5, 175, 98, 0.78) 100%
    );
  opacity: 0.92;
}

.partners-shell__mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.partners-shell__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partners-shell__mark--left {
  left: -24px;
  bottom: -24px;
  width: 120px;
  height: 120px;
}

.partners-shell__mark--right {
  right: -28px;
  top: -18px;
  width: 128px;
  height: 128px;
}

.partners-shell__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.partners-shell__fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 252, 253, 1), rgba(251, 252, 253, 0));
}

.partners-shell__fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 252, 253, 1), rgba(251, 252, 253, 0));
}

/* =========================================
   MARQUEE
========================================= */
.partners-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: partnersMarquee 34s linear infinite;
}

.partners-shell:hover .partners-track {
  animation-play-state: paused;
}

/* =========================================
   CHIP
========================================= */
.partner-chip {
  position: relative;
  flex: 0 0 auto;
  width: 184px;
  height: 116px;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.68) 100%);
  border: 1px solid rgba(17, 20, 27, 0.08);
  box-shadow:
    0 14px 28px rgba(7, 12, 20, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.partner-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 0, 82, 0.04), transparent 30%);
}

.partner-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 20, 27, 0.12);
  box-shadow:
    0 18px 34px rgba(7, 12, 20, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.partner-chip__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 82%;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
  opacity: 0.96;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.partner-chip:hover .partner-chip__logo {
  transform: scale(1.03);
  opacity: 1;
}

/* =========================================
   KEYFRAMES
========================================= */
@keyframes partnersMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .partners-section {
    padding: 64px 0;
  }

  .partners-section__intro {
    width: min(100% - 32px, 760px);
    margin-bottom: 32px;
  }

  .partners-shell {
    padding: 18px 16px;
  }

  .partners-shell__mark,
  .partners-shell__fade {
    display: none;
  }

  .partners-marquee {
    overflow: visible;
  }

  .partners-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    animation: none;
  }

  .partner-chip {
    width: 100%;
    height: 104px;
    border-radius: 18px;
  }

  .partner-chip[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}