/* ===================== PLATFORM SECTION ===================== */
.platform {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 8vw, 110px);
  background: #ffffff;
  overflow: hidden;
}

/* ---------- Heading ---------- */
.platform-head {
  max-width: 920px;
  margin: 0 auto clamp(40px, 5vw, 70px);
  padding: 0 24px;
  text-align: center;
}

.platform-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #16202f;
}

.platform-title .grad {
  background: linear-gradient(100deg, #5b8def 0%, #2f6bd8 45%, #6aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.platform-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6;
  color: #6b7689;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: max-content;
  /* generous top/bottom so card shadows are never clipped into a hard line */
  padding: 42px 20px 74px;
  animation: marqueeRight 60s linear infinite;
  will-change: transform;
}

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

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- Card (the box) ---------- */
.pcard {
  flex: 0 0 auto;
  width: clamp(300px, 31vw, 360px);
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid rgba(78, 124, 200, 0.16);
  box-shadow:
    0 18px 44px rgba(28, 50, 90, 0.10),
    0 2px 8px rgba(28, 50, 90, 0.05);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease;
}

.pcard:hover {
  transform: translateY(-8px);
  border-color: rgba(78, 124, 200, 0.34);
  box-shadow:
    0 30px 64px rgba(28, 50, 90, 0.18),
    0 4px 12px rgba(28, 50, 90, 0.07);
}

/* ---------- Image box (image inside the box) ---------- */
.pcard-media {
  position: relative;
  height: clamp(190px, 20vw, 224px);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(78, 124, 200, 0.16);
  background: linear-gradient(160deg, #f4f7fc, #eaf0f9);
}

.pcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Title pill on the image ---------- */
.pcard-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  color: #2f6bd8;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(0.92rem, 1.1vw, 1.06rem);
  white-space: nowrap;
  box-shadow:
    0 8px 20px rgba(28, 50, 90, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pcard:hover .pcard-tag {
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(47, 107, 216, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* ---------- Reveal (left -> right on scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .marquee-track { gap: 16px; padding: 30px 14px 54px; }
  .pcard { width: clamp(190px, 58vw, 230px); padding: 10px; border-radius: 18px; }
  .pcard-media { height: clamp(130px, 36vw, 150px); border-radius: 13px; }
  .pcard-tag {
    left: 10px;
    bottom: 10px;
    padding: 6px 13px;
    font-size: 0.82rem;
  }
}
