
/* ============================= */
/* PLATFORMS PAGE — PREMIUM */
/* ============================= */

/* ============================= */
/* HERO */
/* ============================= */

.page-hero.platforms-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 8vw 100px;
  overflow: hidden;
}

.platforms-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.platforms-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) contrast(1.02) saturate(1.05);
}

.platforms-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.70) 0%, rgba(5, 5, 6, 0.46) 34%, rgba(5, 5, 6, 0.18) 62%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.08), rgba(5, 5, 6, 0.26));
}

.platforms-hero .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
}

.platforms-logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin-bottom: 18px;
  opacity: 1;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platforms-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
}

.platforms-hero p {
  max-width: 520px;
  margin-bottom: 0;
}

/* CTA */

.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.primary-button {
  background: linear-gradient(135deg, #1535cc, #0d65d0);
  color: #fff;
  box-shadow: 0 18px 38px rgba(12, 40, 160, 0.42);
}

.secondary-button {
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(5, 8, 18, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 24px 48px rgba(12, 40, 160, 0.54);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 40px rgba(5, 8, 18, 0.28);
}

/* ============================= */
/* VIDEO TILE GRID */
/* ============================= */

.platform-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1180px) {
  .platform-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .platform-video-grid {
    grid-template-columns: 1fr;
  }
}

/* TILE */

.platform-video-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
  transition:
    transform 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.platform-video-tile:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.046);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* VIDEO */

.platform-video-tile video,
.platform-video-media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.platform-video-media {
  position: relative;
  margin: 0;
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}

.platform-video-media::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(var(--platform-logo-width, 224px), calc(100% - 36px));
  height: 56px;
  background: var(--platform-logo) left center / contain no-repeat;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.28));
  z-index: 1;
  pointer-events: none;
}

.platform-video-tile:hover video,
.platform-video-tile:hover .platform-video-media {
  transform: scale(1.05);
}

.fansparked-media {
  --platform-logo: url("platformlogos/fanspark.png");
  --platform-logo-width: 212px;
  background: url("platforms-images/fansparked.png") center / cover no-repeat;
}

.ourspace-media {
  --platform-logo: url("platformlogos/ourspace.png");
  --platform-logo-width: 224px;
  background: url("platforms-images/ourspace.png") center / cover no-repeat;
}

.cartview-media {
  --platform-logo: url("platformlogos/storeview.png");
  --platform-logo-width: 236px;
  background: url("platforms-images/cartview.png") center / cover no-repeat;
}

.accountshop-media {
  --platform-logo: url("platformlogos/accountshop.png");
  --platform-logo-width: 252px;
  background: url("platforms-images/accountshop.png") center / cover no-repeat;
}

/* OVERLAY */

.platform-tile-overlay {
  display: none;
}

/* CONTENT */

.platform-tile-content {
  position: relative;
  z-index: 2;
  padding: 30px 26px 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.platform-tile-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
}

.platform-tile-title {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-tile-logo {
  width: 120px;
  margin-bottom: 8px;
}

.platform-tile-description {
  color: rgba(255, 255, 255, 0.84);
  max-width: 30ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  flex: 1;
}

/* ============================= */
/* BENEFITS SECTION */
/* ============================= */

.platform-benefits {
  margin-top: 60px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.benefit-card h3 {
  margin-bottom: 10px;
}

/* ============================= */
/* CONTINUITY STRIP */
/* ============================= */

.platform-continuity {
  margin-top: 80px;
  padding: 60px 8vw;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.platform-continuity-inner {
  max-width: 900px;
}

.platform-continuity h2 {
  margin-bottom: 14px;
}

/* ============================= */
/* DOWNLOAD MODAL */
/* ============================= */

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.download-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
}

.download-modal-content {
  position: relative;
  z-index: 2;
  background: #0b0c10;
  border-radius: 20px;
  padding: 34px;
  width: 420px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.download-modal h3 {
  margin-bottom: 20px;
}

.download-options {
  display: grid;
  gap: 12px;
}

.download-option {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  text-align: center;
  font-weight: 600;
  transition: background 0.25s ease;
}

.download-option:hover {
  background: rgba(255,255,255,0.08);
}

/* ============================= */
/* SMALL POLISH */
/* ============================= */

.platform-video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  pointer-events: none;
}

@media (max-width: 680px) {
  .platform-tile-title {
    font-size: 20px;
  }
}
