/* =========================================================
   PLATFORMS SHOWCASE — standalone dark accent section
   Scoped entirely under .platforms-section so it never
   touches the site's global (light) design tokens.
   ========================================================= */

.platforms-section{
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: linear-gradient(160deg, #071129 0%, #0d1a3d 55%, #0a1530 100%);
  color: #eaf6ff;
}

.platforms-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 12% 0%, rgba(31,124,255,.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(127,224,255,.18), transparent 60%);
  pointer-events: none;
}

.platforms-section .container{
  position: relative;
  z-index: 1;
}

.platforms-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.platforms-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7fe0ff;
  background: rgba(127,224,255,.1);
  border: 1px solid rgba(127,224,255,.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.platforms-eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: #7fe0ff;
  box-shadow: 0 0 8px rgba(127,224,255,.7);
}

.platforms-title{
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  color: #f4f9ff;
}

.platforms-title .accent{
  color: #3fa3ff;
  background: linear-gradient(90deg, #7fe0ff, #3fa3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(63,163,255,.35);
}

.platforms-sub{
  margin-top: 16px;
  color: #9db3d6;
  font-size: 1.02rem;
}

/* ---------- Poster grid ---------- */
/* Drop replacement images into /assets/img/platform-posters/ using the
   same filenames — no HTML or CSS changes needed to update artwork. */
.poster-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
}

/* Desktop: 5-6 per row (6 by default, 5 on slightly smaller desktops) */
@media (max-width: 1320px){ .poster-grid{ grid-template-columns: repeat(5, 1fr); } }
/* Tablet: 3-4 per row */
@media (max-width: 1024px){ .poster-grid{ grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (max-width: 780px){ .poster-grid{ grid-template-columns: repeat(3, 1fr); } }
/* Mobile: 2 per row */
@media (max-width: 520px){ .poster-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.poster-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poster-media{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.poster-card:hover .poster-media{
  transform: scale(1.05);
  border-color: rgba(127,224,255,.5);
  box-shadow: 0 26px 60px -14px rgba(31,124,255,.55), 0 0 0 1px rgba(127,224,255,.25) inset;
}

/* Premium dark placeholder with a subtle glow — always present behind the
   image, so a missing/blank file still looks intentional. */
.poster-glow{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(127,224,255,.35), transparent 60%),
    linear-gradient(200deg, rgba(31,124,255,.28), rgba(6,11,23,.9));
  animation: posterGlowPulse 3.6s ease-in-out infinite;
}

@keyframes posterGlowPulse{
  0%, 100%{ opacity: .7; }
  50%{ opacity: 1; }
}

.poster-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity .3s ease;
}

.poster-media img.poster-img-missing{
  opacity: 0;
}

.poster-label{
  display: block;
  text-align: center;
  font-size: .85rem;
  line-height: 1.3;
  font-weight: 600;
  color: #eaf6ff;
}

/* ---------- CTA ---------- */
.platforms-cta{
  text-align: center;
}

.platforms-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 18px 42px;
  border-radius: 999px;
  color: #061022;
  background: linear-gradient(135deg, #7fe0ff, #3fa3ff 55%, #1560e0);
  box-shadow: 0 14px 40px -10px rgba(63,163,255,.55), 0 0 0 1px rgba(127,224,255,.2) inset;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.platforms-cta-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -8px rgba(63,163,255,.75), 0 0 0 1px rgba(127,224,255,.3) inset;
  filter: brightness(1.05);
}

.platforms-cta-btn svg{ width: 18px; height: 18px; }

/* ---------- Animations ---------- */
.platforms-section .p-reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.platforms-section .p-reveal.in{
  opacity: 1;
  transform: translateY(0);
}

.poster-card.p-card-reveal{
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .6s ease, transform .6s ease;
}
.poster-card.p-card-reveal.in{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- TV / remote-control focus states ---------- */
.poster-card:focus-within .poster-media,
.platforms-cta-btn:focus-visible{
  outline: 3px solid #7fe0ff;
  outline-offset: 4px;
}
.poster-media img:focus-visible{
  outline: 2px solid #7fe0ff;
  outline-offset: 2px;
}

@media (min-width: 1600px){
  .platforms-section{ padding: 130px 0; }
}
