/* "Cross-platform control" glass card — native HTML/CSS rebuild of the pill marquee.
 *
 * Same look as the original template card (3rem pills, 1.5rem radius, hairline
 * border, 4%→2% white gradient) but driven by plain CSS animation instead of
 * scroll-triggered JS, and with copy that describes Sysvia.
 */

.xp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 30rem;                /* matches the original .feature-container.is-sixth */
  width: 100%;
  min-width: 0;
  padding-top: 3rem;
  overflow: clip;
  border: 1px solid #ffffff14;
  border-radius: var(--roundness--box-xl, 1.5rem);
  background: #ffffff0a;
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.xp-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-inline: 2rem;
  text-align: center;
}

.xp-card__title {
  margin: 0;
  color: transparent;
  background: linear-gradient(to right, #fff, #ffffffb3);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: var(--_typography---h4--font-size, 1.9375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.03875rem;
}

.xp-card__description {
  margin: 0;
  color: #c3c3c3;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Marquee ----------------------------------------------------------- */

.xp-marquee {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: none;
  width: 100%;
  padding-block: 2rem .75rem;   /* rows end .75rem above the card's bottom edge */
  overflow: hidden;
  contain: inline-size;         /* the wide track must not widen the card or its grid */
}

.xp-row {
  height: 3rem;
}

/* Three identical sets side by side; sliding by one set (a third of the
   track) and looping is invisible. */
.xp-track {
  display: flex;
  width: max-content;
}

.xp-set {
  display: flex;
  flex: none;
  gap: .75rem;
  padding-right: .75rem;
}

.xp-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 3rem;
  padding-inline: 1rem;
  box-sizing: border-box;
  border: 1px solid #ffffff14;
  border-radius: 1.5rem;
  background-image: linear-gradient(180deg, #ffffff0a, #ffffff05);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre;
}

.xp-pill__icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .xp-track {
    animation: xp-slide-left var(--xp-dur, 32s) linear var(--xp-phase, 0s) infinite;
  }
  .xp-row--right .xp-track { animation-name: xp-slide-right; }
}

@keyframes xp-slide-left  { from { transform: translateX(0); }        to { transform: translateX(-33.3333%); } }
@keyframes xp-slide-right { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
