/* Remvx — Stack compatibility marquee with animated backdrop */

.rx-stack-marquee {
  position: relative;
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid #1a1a1a;
  background: #050505;
  overflow: hidden;
  isolation: isolate;
}

.rx-stack-marquee__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rx-stack-marquee__bg-svg {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 140%;
  min-width: 72rem;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: rx-stack-bg-drift 28s ease-in-out infinite alternate;
}

.rx-stack-marquee__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.rx-stack-marquee__bg-glow--red {
  width: 22rem;
  height: 14rem;
  left: 8%;
  top: 30%;
  background: rgba(220, 38, 38, 0.12);
  animation: rx-stack-glow-pulse 6s ease-in-out infinite;
}

.rx-stack-marquee__bg-glow--blue {
  width: 20rem;
  height: 12rem;
  right: 10%;
  top: 40%;
  background: rgba(59, 130, 246, 0.1);
  animation: rx-stack-glow-pulse 7s ease-in-out infinite 1.5s;
}

@keyframes rx-stack-bg-drift {
  0% { transform: translate(-52%, -50%) scale(1); }
  100% { transform: translate(-48%, -48%) scale(1.03); }
}

@keyframes rx-stack-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.rx-stack-marquee__node {
  animation: rx-stack-node-pulse 4s ease-in-out infinite;
}

.rx-stack-marquee__node--2 { animation-delay: 0.6s; }
.rx-stack-marquee__node--3 { animation-delay: 1.2s; }
.rx-stack-marquee__node--4 { animation-delay: 1.8s; }
.rx-stack-marquee__node--5 { animation-delay: 2.4s; }
.rx-stack-marquee__node--6 { animation-delay: 0.9s; }
.rx-stack-marquee__node--7 { animation-delay: 1.5s; }
.rx-stack-marquee__node--8 { animation-delay: 2.1s; }

@keyframes rx-stack-node-pulse {
  0%, 100% { opacity: 0.35; r: 3; }
  50% { opacity: 0.85; }
}

.rx-stack-marquee__flow {
  stroke-dasharray: 8 14;
  animation: rx-stack-flow 12s linear infinite;
}

.rx-stack-marquee__flow--rev {
  animation-direction: reverse;
  animation-duration: 16s;
}

@keyframes rx-stack-flow {
  to { stroke-dashoffset: -120; }
}

.rx-stack-marquee__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .rx-stack-marquee__inner {
    padding: 0 1.5rem;
  }
}

.rx-stack-marquee__head {
  text-align: center;
  margin-bottom: 2rem;
}

.rx-stack-marquee__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  margin: 0 0 0.6rem;
}

.rx-stack-marquee__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.rx-stack-marquee__subtitle {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #a1a1aa;
}

.rx-stack-marquee__strip {
  position: relative;
  margin: 0 -1rem;
  padding: 1.25rem 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

@media (min-width: 640px) {
  .rx-stack-marquee__strip {
    margin: 0;
  }
}

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

@media (min-width: 768px) {
  .rx-stack-marquee__fade { width: 7rem; }
}

@media (min-width: 1024px) {
  .rx-stack-marquee__fade { width: 10rem; }
}

.rx-stack-marquee__fade--left {
  left: 0;
  border-radius: 0.85rem 0 0 0.85rem;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.98), transparent);
}

.rx-stack-marquee__fade--right {
  right: 0;
  border-radius: 0 0.85rem 0.85rem 0;
  background: linear-gradient(to left, rgba(5, 5, 5, 0.98), transparent);
}

.rx-stack-marquee__track {
  overflow: hidden;
}

.rx-stack-marquee__content {
  display: flex;
  width: max-content;
  animation: rx-stack-marquee-scroll 42s linear infinite;
  will-change: transform;
}

.rx-stack-marquee__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx-stack-marquee__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.85rem;
  margin: 0 0.65rem;
  padding: 0 1.1rem 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: linear-gradient(160deg, rgba(16, 16, 18, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e4e4e7;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rx-stack-marquee__pill:hover {
  border-color: #3f3f46;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.rx-stack-marquee__pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--rx-pill-accent, #a1a1aa);
  flex-shrink: 0;
}

.rx-stack-marquee__pill-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.rx-stack-marquee__pill-icon--img {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rx-stack-marquee__pill-icon--img img {
  width: 1.35rem;
  height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
  object-fit: contain;
  display: block;
}

.rx-stack-marquee__pill--entra { --rx-pill-accent: #60a5fa; }
.rx-stack-marquee__pill--google { --rx-pill-accent: #4ade80; }
.rx-stack-marquee__pill--windows { --rx-pill-accent: #38bdf8; }
.rx-stack-marquee__pill--macos { --rx-pill-accent: #d4d4d8; }
.rx-stack-marquee__pill--linux { --rx-pill-accent: #fbbf24; }
.rx-stack-marquee__pill--psa { --rx-pill-accent: #c084fc; }
.rx-stack-marquee__pill--remote { --rx-pill-accent: #f87171; }
.rx-stack-marquee__pill--policy { --rx-pill-accent: #fb923c; }
.rx-stack-marquee__pill--vuln { --rx-pill-accent: #f472b6; }
.rx-stack-marquee__pill--inventory { --rx-pill-accent: #2dd4bf; }
.rx-stack-marquee__pill--siem { --rx-pill-accent: #818cf8; }
.rx-stack-marquee__pill--tenant { --rx-pill-accent: #34d399; }
.rx-stack-marquee__pill--audit { --rx-pill-accent: #fca5a5; }

@media (min-width: 768px) {
  .rx-stack-marquee {
    padding: 4rem 0 3rem;
  }

  .rx-stack-marquee__pill {
    height: 3.25rem;
    margin: 0 0.85rem;
    padding: 0 1.35rem 0 1rem;
    font-size: 0.875rem;
  }
}

@keyframes rx-stack-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rx-stack-marquee__content {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .rx-stack-marquee__list:last-child {
    display: none;
  }

  .rx-stack-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .rx-stack-marquee__pill {
    margin: 0;
  }

  .rx-stack-marquee__fade {
    display: none;
  }

  .rx-stack-marquee__bg-svg,
  .rx-stack-marquee__bg-glow,
  .rx-stack-marquee__node,
  .rx-stack-marquee__flow {
    animation: none !important;
  }
}
