/* Logo Cloud: a port of shadcnui-blocks' "Logo Cloud 15" on 21st.dev, with Magic UI's Marquee and Border Beam.
   The original's values: max-width 1024px, rounded-lg border; the title text-xl font-medium, 80% foreground,
   tracking -0.01em, on the page colour with px-6; the rail p-10 pt-12, logos 56px high, mr-10 after each, the
   marquee's gap 1rem, faded from 75% at each end; the beam 100px, 8s, linear, a gradient to transparent. */
.fx-logo-cloud {
  position: relative; isolation: isolate; margin-inline: auto; max-inline-size: 64rem;
  border: 1px solid var(--color-border, #e5e5e5); border-radius: var(--radius-lg, .5rem);
}
/* Border Beam: the ring is the border box minus the padding box; the light rides the rounded rectangle. */
.fx-logo-cloud__beam {
  position: absolute; inset: -1px; z-index: -1; pointer-events: none; border: 1px solid transparent; border-radius: inherit;
  -webkit-mask: linear-gradient(transparent, transparent) padding-box, linear-gradient(#000, #000) border-box;
  -webkit-mask-composite: source-in; mask: linear-gradient(transparent, transparent) padding-box exclude, linear-gradient(#000, #000) border-box;
  mask-composite: intersect;
}
.fx-logo-cloud__light {
  position: absolute; inline-size: var(--lc-size); aspect-ratio: 1;
  background: linear-gradient(to left, var(--lc-from), var(--lc-to), transparent);
  offset-path: rect(0 auto auto 0 round var(--lc-size)); offset-distance: 0%;
  animation: lc-beam var(--lc-beam) linear infinite;
}
@keyframes lc-beam { to { offset-distance: 100%; } }

.fx-logo-cloud__head {
  position: absolute; inset-inline: 0; inset-block-start: 0; translate: 0 -50%;
  display: flex; align-items: center; justify-content: center; padding-inline: 2.5rem;
}
.fx-logo-cloud__title {
  margin: 0; padding-inline: .75rem; background: var(--color-canvas, #fff); text-align: center;
  color: color-mix(in oklab, var(--color-text, #171717) 80%, transparent);
  font: 500 1.25rem / 1.75rem var(--type-body-family, inherit); letter-spacing: -.01em;
}
@media (min-width: 40rem) { .fx-logo-cloud__title { padding-inline: 1.5rem; } }
:lang(ar) .fx-logo-cloud__title { letter-spacing: 0; }
.fx-logo-cloud__sweep {
  background-image: linear-gradient(90deg, currentColor 0%, currentColor 45%, var(--lc-to) 47%, var(--lc-from) 50%, var(--lc-to) 53%, currentColor 55%, currentColor 100%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position: 0% center;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.fx-logo-cloud__rail { padding: 3rem 2.5rem 2.5rem; min-inline-size: 0; }
.fx-marquee {
  --gap: 1rem; display: flex; gap: var(--gap); overflow: hidden; padding: .5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
}
.fx-marquee__group {
  list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; justify-content: space-around; gap: var(--gap);
  animation: lc-marquee var(--lc-duration, 20s) linear infinite;
}
.fx-marquee:hover .fx-marquee__group { animation-play-state: paused; }
[dir="rtl"] .fx-marquee__group { animation-name: lc-marquee-rtl; }
@keyframes lc-marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes lc-marquee-rtl { to { transform: translateX(calc(100% + var(--gap))); } }

.fx-logo-cloud__logo {
  display: flex; align-items: center; gap: .625rem; block-size: 3.5rem; margin-inline-end: 2.5rem;
  color: var(--color-text, #171717); white-space: nowrap;
}
.fx-logo-cloud__mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 2rem; block-size: 2rem; flex: none; }
.fx-logo-cloud__mark svg { inline-size: 100%; block-size: 100%; }
.fx-logo-cloud__mark svg:not([fill]) { fill: currentColor; }
.fx-logo-cloud__mark.has-tile { border-radius: .5rem; background: var(--lc-tile); padding: .3rem; }
.fx-logo-cloud__name { font: 600 1.375rem / 1 var(--type-heading-family, inherit); letter-spacing: -.02em; }

.fx-logo-cloud.is-still .fx-marquee { -webkit-mask-image: none; mask-image: none; }
.fx-logo-cloud.is-still .fx-marquee__group { flex-wrap: wrap; flex-shrink: 1; justify-content: center; row-gap: 1rem; animation: none; }
.fx-logo-cloud.is-still .fx-logo-cloud__light { display: none; }
@media (max-width: 39.99rem) {
  .fx-logo-cloud__rail { padding: 2.5rem 1rem 1.5rem; }
  .fx-logo-cloud__title { font-size: 1.0625rem; }
  .fx-logo-cloud__logo { margin-inline-end: 1.5rem; }
}
