/* Platforms page: built on the site's own tokens (style.css :root) */
.platforms-page { font-family: var(--font-ar); }

/* ---------- hero ---------- */
.pf-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 72px;
  background: linear-gradient(135deg, #082946 0%, var(--navy) 48%, #0b304d 100%);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}
.pf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.pf-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(26, 143, 160, 0.45);
  border-radius: 50px;
  background: rgba(26, 143, 160, 0.14);
  color: #7fd6e2;
  font-size: 0.85rem;
  font-weight: 700;
}
.pf-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}
.pf-hero h1 span { color: var(--orange); }
.pf-hero-copy > p {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pf-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pf-hero-stats .stat-pill { display: flex; align-items: baseline; gap: 8px; }
.pf-hero-stats strong { font-family: var(--font-en); font-size: 1.15rem; color: var(--orange); }
.pf-hero-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* the beam card */
.pf-beam {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius-lg);
  background: rgba(4, 22, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.pf-beam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-beam-source {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.pf-beam-source img { width: 46px; height: 46px; object-fit: contain; }
.pf-beam-row {
  position: absolute;
  inset-inline: 4%;
  bottom: 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pf-beam-row a {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.pf-beam-row a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.10); border-color: var(--pc); }
.pf-beam-row b { color: var(--pc); font-size: 1rem; font-weight: 800; }
.pf-beam-row span { color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; }

/* ---------- platform index ---------- */
.pf-index { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.pf-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pf-index-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.pf-index-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--pc); }
.pf-index-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pf-index-num { font-family: var(--font-en); font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.pf-index-card strong { font-size: 1.45rem; font-weight: 800; color: var(--navy); line-height: 1.4; }
.pf-index-card span:not(.pf-index-num) { color: var(--text-muted); font-size: 0.92rem; }
.pf-index-card em {
  justify-self: start;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 50px;
  background: var(--teal-light);
  color: var(--teal);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
}
.pf-index-card em.is-soon { background: #fff4e0; color: #b36b00; }

/* ---------- platform sections ---------- */
.pf-section { padding: 96px 0; background: var(--light-bg); scroll-margin-top: var(--nav-h); }
.pf-section--tint { background: var(--white); }
.pf-head { max-width: 640px; margin-bottom: 40px; }
.pf-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 0.9rem; font-weight: 700; }
.pf-kicker i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); transform: rotate(45deg); }
.pf-head h2 { margin-top: 6px; color: var(--navy); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.3; }
.pf-head p { margin-top: 8px; color: var(--text-muted); font-size: 1.05rem; }

.pf-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pf-product {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pf-section--tint .pf-product { background: var(--light-bg); }
.pf-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pf-product-media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  background: linear-gradient(160deg, #eef3f8, #dfe8f1);
  overflow: hidden;
}
.pf-product-media img {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13, 59, 94, 0.18);
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.pf-product-media img:first-child { top: 8%; right: 6%; width: 78%; aspect-ratio: 1600 / 852; }
.pf-product-media img:nth-child(2) { bottom: -6%; left: 6%; width: 52%; aspect-ratio: 1600 / 852; border: 4px solid var(--white); }
.pf-product:hover .pf-product-media img:first-child { transform: translateY(-4px); }
.pf-product-copy { display: grid; gap: 10px; padding: 26px 28px 28px; }
.pf-product-copy .product-card-kicker { font-size: 0.8rem; }
.pf-product-copy h3 { color: var(--navy); font-size: 1.5rem; font-weight: 800; line-height: 1.4; }
.pf-product-copy p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.85; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-tags li {
  padding: 4px 14px;
  border: 1px solid rgba(26, 143, 160, 0.22);
  border-radius: 50px;
  color: #1a586d;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}
.pf-more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--navy);
  font-weight: 700;
}
.pf-more .pf-arrow { display: inline-block; transition: transform var(--transition); }
.pf-more:hover { color: var(--teal); }
.pf-more:hover .pf-arrow { transform: translateX(-4px); }

/* AMP: one product, laid wide */
.pf-products--one { grid-template-columns: 1fr; }
.pf-product--wide { flex-direction: row; }
.pf-product--wide .pf-product-media { flex: 1.35; aspect-ratio: auto; min-height: 380px; }
.pf-product--wide .pf-product-copy { flex: 1; align-content: center; padding: 40px; }

/* AEDU: coming soon */
.pf-soon {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 24px;
  border: 2px dashed rgba(78, 154, 87, 0.35);
  background: linear-gradient(135deg, #f6fbf6, var(--white));
}
.pf-soon-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: #e8f5ea;
  color: #2f7a39;
  font-size: 0.8rem;
  font-weight: 700;
}
.pf-soon-copy h3 { margin-top: 12px; color: var(--navy); font-size: 1.6rem; font-weight: 800; }
.pf-soon-copy p { margin: 10px 0 24px; color: var(--text-muted); line-height: 1.9; }
.pf-soon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-soon-list li {
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--card-border);
}
.pf-soon-list b { color: var(--navy); font-weight: 700; }
.pf-soon-list span { color: var(--text-muted); font-size: 0.88rem; }

.platforms-page .products-cta-section { padding-top: 0; background: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .pf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pf-index-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-products { grid-template-columns: 1fr; }
  .pf-product--wide { flex-direction: column; }
  .pf-product--wide .pf-product-media { min-height: 0; aspect-ratio: 16 / 9.4; flex: none; }
  .pf-product--wide .pf-product-copy { padding: 26px 28px 28px; }
  .pf-soon { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 600px) {
  .pf-hero { padding: calc(var(--nav-h) + 32px) 0 64px; }
  .pf-beam { aspect-ratio: 1 / 1.05; }
  .pf-beam-source { width: 56px; height: 56px; margin-left: -28px; border-radius: 16px; }
  .pf-beam-source img { width: 36px; height: 36px; }
  .pf-beam-row { gap: 6px; inset-inline: 3%; }
  .pf-beam-row a { padding: 8px 2px; }
  .pf-beam-row b { font-size: 0.85rem; }
  .pf-beam-row span { font-size: 0.68rem; }
  .pf-index-grid { gap: 10px; }
  .pf-index-card { padding: 18px 16px 16px; }
  .pf-index-card strong { font-size: 1.2rem; }
  .pf-section { padding: 64px 0; }
  .pf-product-copy { padding: 22px 20px 24px; }
  .pf-soon { padding: 24px 20px; }
  .pf-soon-list { grid-template-columns: 1fr; }
}

/* a phone screen beside the desktop screen (e-menus) */
.pf-product-media img.is-phone {
  top: auto;
  bottom: -18%;
  left: 7%;
  width: 24%;
  aspect-ratio: auto;
  border: 5px solid #0f1c2a;
  border-radius: 18px;
}
/* one screen only: centred, larger */
.pf-product-media.is-single img:first-child { right: 7%; width: 86%; top: 9%; }
/* AERP: three programs in a row on wide screens */
@media (min-width: 1100px) {
  .pf-products--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-products--three .pf-product-copy { padding: 22px 22px 24px; }
  .pf-products--three .pf-product-copy h3 { font-size: 1.3rem; }
}

/* English (left-to-right) */
.pf-hero h1 span.pf-h1-lead { color: inherit; }
html[dir="ltr"] .pf-more .pf-arrow { display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] .pf-more:hover .pf-arrow { transform: scaleX(-1) translateX(-4px); }

/* ---------- 3D orbit (replaces the beam card) ---------- */
.pf-orbit { position: relative; aspect-ratio: 1 / 0.92; }
.pf-orbit-stage { position: absolute; inset: 0; transform-origin: 0 0; }
.pf-orbit-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-orbit-logo {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px;
  object-fit: contain; pointer-events: none; opacity: 0; will-change: transform;
}
.pf-orbit-caption {
  position: absolute; left: 0; right: 0; bottom: 4%; margin: 0;
  text-align: center; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; font-weight: 600;
  opacity: 0; pointer-events: none;
}
.pf-orbit-label {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  border-radius: 50%; text-decoration: none;
  opacity: 0; will-change: transform, opacity;
}
.pf-orbit-label:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
/* the name, printed on the planet */
.pf-orbit-label b {
  color: #0b2a44; font-weight: 800; line-height: 1; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* what the platform is for, just under the planet */
.pf-orbit-label span {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 6px; white-space: nowrap;
  color: rgba(255, 255, 255, 0.78); font-size: 0.74rem; line-height: 1.2;
  text-shadow: 0 1px 6px rgba(4, 22, 38, 0.8);
}
.pf-orbit-label:hover span, .pf-orbit-label:focus-visible span { color: var(--white); }

/* no WebGL: logo in the middle, the four platforms in a grid */
.pf-orbit.is-static .pf-orbit-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; padding: 8%; }
.pf-orbit.is-static canvas, .pf-orbit.is-static .pf-orbit-caption { display: none; }
.pf-orbit.is-static .pf-orbit-logo { position: static; grid-column: 1 / -1; justify-self: center; opacity: 1; width: 72px; height: 72px; }
.pf-orbit.is-static .pf-orbit-label { position: relative; opacity: 1; width: 96px; height: 96px; justify-self: center; background: var(--pc); margin-bottom: 22px; }
.pf-orbit.is-static .pf-orbit-label b { font-size: 1rem; }

/* ---------- the opening animation ---------- */
.pf-intro { display: none; }
.pf-intro-on .pf-intro {
  display: block; position: fixed; inset: 0; z-index: 1200;
  background: linear-gradient(135deg, #082946 0%, var(--navy) 48%, #0b304d 100%);
}
.pf-intro-on .pf-intro::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}
.pf-intro-on .pf-orbit-stage.is-flying { position: fixed; right: auto; bottom: auto; z-index: 1201; }
.pf-intro-skip {
  position: absolute; bottom: 28px; inset-inline-end: 28px; z-index: 1;
  padding: 8px 18px; border-radius: 50px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.pf-intro-skip:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.pf-intro-on .pf-intro-skip { z-index: 1202; position: fixed; }

/* hero copy waits for the orbit, then comes in */
.pf-intro-on .pf-hero-copy > * { opacity: 0; transform: translateY(16px); }
.pf-intro-reveal .pf-hero-copy > * {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pf-intro-reveal .pf-hero-copy > :nth-child(2) { transition-delay: 0.08s; }
.pf-intro-reveal .pf-hero-copy > :nth-child(3) { transition-delay: 0.16s; }
.pf-intro-reveal .pf-hero-copy > :nth-child(4) { transition-delay: 0.24s; }
.pf-intro-reveal .pf-hero-copy > :nth-child(5) { transition-delay: 0.32s; }

@media (max-width: 991px) {
  .pf-orbit { order: -1; aspect-ratio: 1 / 0.82; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .pf-orbit { aspect-ratio: 1 / 0.9; }
  .pf-orbit-label span { font-size: 0.62rem; margin-top: 3px; }
  .pf-orbit-caption { font-size: 0.95rem; }
}
