/* Remvx — ambient animated page backgrounds (excluded on docs pages) */

body.rx-has-ambient {
  position: relative;
}

#rx-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.rx-has-ambient #site-header {
  position: relative;
  z-index: 100;
}

body.rx-has-ambient main,
body.rx-has-ambient .page-hero,
body.rx-has-ambient .qs-hero,
body.rx-has-ambient #footer-root,
body.rx-has-ambient .page-toolbar,
body.rx-has-ambient .trust-hero,
body.rx-has-ambient .trust-layout {
  position: relative;
  z-index: 1;
}

.rx-ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: rx-ambient-glow 9s ease-in-out infinite alternate;
}

.rx-ambient__glow--red {
  width: 28rem;
  height: 20rem;
  left: -5%;
  top: 18%;
  background: rgba(220, 38, 38, 0.14);
}

.rx-ambient__glow--blue {
  width: 26rem;
  height: 18rem;
  right: -4%;
  top: 42%;
  background: rgba(59, 130, 246, 0.11);
  animation-delay: 2s;
}

.rx-ambient__glow--violet {
  width: 22rem;
  height: 16rem;
  left: 38%;
  bottom: 8%;
  background: rgba(139, 92, 246, 0.08);
  animation-delay: 4s;
}

@keyframes rx-ambient-glow {
  0% { opacity: 0.35; transform: scale(1) translate(0, 0); }
  100% { opacity: 0.65; transform: scale(1.08) translate(1%, -1%); }
}

.rx-ambient__svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  min-width: 90rem;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  animation: rx-ambient-drift 32s ease-in-out infinite alternate;
}

.rx-ambient--security .rx-ambient__svg {
  opacity: 0.18;
  animation-duration: 38s;
}

.rx-ambient--calm .rx-ambient__svg {
  opacity: 0.14;
  animation-duration: 42s;
}

@keyframes rx-ambient-drift {
  0% { transform: translate(-51%, -49%) scale(1); }
  100% { transform: translate(-49%, -51%) scale(1.04); }
}

.rx-ambient__node {
  animation: rx-ambient-node 5s ease-in-out infinite;
}

.rx-ambient__node--d1 { animation-delay: 0.7s; }
.rx-ambient__node--d2 { animation-delay: 1.4s; }
.rx-ambient__node--d3 { animation-delay: 2.1s; }

@keyframes rx-ambient-node {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

.rx-ambient__flow {
  stroke-dasharray: 6 16;
  animation: rx-ambient-flow 14s linear infinite;
}

.rx-ambient__flow--rev {
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes rx-ambient-flow {
  to { stroke-dashoffset: -100; }
}

.rx-ambient__orbit {
  transform-origin: center;
  animation: rx-ambient-orbit 24s linear infinite;
}

@keyframes rx-ambient-orbit {
  to { transform: rotate(360deg); }
}

/* Integrations band — section-level motion bg */
.rx-integrations-band {
  position: relative;
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  isolation: isolate;
}

.rx-integrations-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rx-integrations-band__bg .rx-ambient__svg {
  top: 50%;
  width: 120%;
  min-width: 64rem;
  opacity: 0.5;
  animation-duration: 22s;
}

.rx-integrations-band__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.rx-integrations-band__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
}

.rx-integrations-band__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e4e4e7;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rx-integrations-band__pill:hover {
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.rx-integrations-band__pill-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
}

.rx-integrations-band__pill-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .rx-ambient__svg,
  .rx-ambient__glow,
  .rx-ambient__node,
  .rx-ambient__flow,
  .rx-ambient__orbit {
    animation: none !important;
  }
}
