/* ═══════════════════════════════════════════════════════
   JOEL APEX SOLUTIONS — css/style.css
   Homepage stylesheet (shared with all pages via link)
═══════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────── */
:root {
  /* Background */
  --bg-deep:      #07071a;
  --bg-surface:   #0c0c26;
  --bg-card:      rgba(255 255 255 / 0.028);
  --bg-card-h:    rgba(255 255 255 / 0.055);

  /* Accent palette */
  --clr-gold:     #F5A623;
  --clr-gold-dim: #c2831a;
  --clr-teal:     #00D4E4;
  --clr-teal-dim: #00a8b5;
  --clr-purple:   #9D4EDD;
  --clr-purple-dim:#7a34b8;
  --clr-red:      #FF4D6D;
  --clr-red-dim:  #cc3654;

  /* Text */
  --txt-primary:  #ffffff;
  --txt-secondary:rgba(255 255 255 / 0.58);
  --txt-muted:    rgba(255 255 255 / 0.35);

  /* Border */
  --border-subtle: rgba(255 255 255 / 0.07);
  --border-mid:    rgba(255 255 255 / 0.13);

  /* Layout */
  --nav-h:        90px;
  --max-w:        1280px;
  --pad-x:        clamp(16px, 4vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--txt-primary);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── SHARED UTILITIES ───────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.accent-gold   { color: var(--clr-gold); }
.accent-teal   { color: var(--clr-teal); }


/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  background: rgba(7, 7, 26, 0.97);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0 0 0 / 0.4);
  transition: box-shadow 0.4s var(--ease-out);
}

/* Deeper shadow when page is scrolled */
.navbar.scrolled {
  box-shadow: 0 1px 0 var(--border-subtle), 0 8px 40px rgba(0 0 0 / 0.7);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

/* logo.png — set height; add transparent background.
   NOTE: If logo.png has a white background, open the file
   in Canva → Background Remover → export as PNG (transparent).
   That is the permanent fix for a clean look on dark backgrounds. */
.logo-img {
  height: 65px;
  width: auto;
  display: block;
  border-radius: 8px;
  /* Removes white box from logos that haven't been made transparent yet */
  mix-blend-mode: screen;
}

/* Footer logo is slightly smaller */
.footer-logo .logo-img {
  height: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}
.logo-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--clr-teal);
}

/* Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: rgba(255 255 255 / 0.7);
  position: relative;
  padding-block-end: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-block-end: -4px;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover         { color: #fff; }
.nav-link:hover::after  { transform: scaleX(1); }
.nav-link.active        { color: var(--clr-gold); }
.nav-link.active::after { transform: scaleX(1); }

/* Google Play badge in nav ── */
.nav-gplay {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-mid);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px 10px;
  background: rgba(255 255 255 / 0.04);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-gplay img { height: 32px; width: auto; }
.nav-gplay:hover {
  border-color: rgba(255 255 255 / 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0 212 228 / 0.18);
}

/* Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav dropdown ── */
.mobile-nav {
  display: none; /* shown via JS */
  background: rgba(7, 7, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px var(--pad-x) 24px;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  padding-block: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(255 255 255 / 0.7);
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--clr-gold); }
.mobile-gplay { display: inline-block; margin-top: 20px; }
.mobile-gplay img { height: 38px; }


/* ═══════════════════════════════════════════════════════
   HERO — FULL-WIDTH BANNER IMAGE
   Banner file: images/JAS_websitebanner.png (1983 × 793px)
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--bg-deep);
  padding-top: var(--nav-h); /* push banner below the fixed navbar */
}

/* Wrapper is position:relative so absolute children
   are positioned relative to the banner image area */
.hero-banner-wrap {
  position: relative;
  width: 100%;
  line-height: 0; /* eliminates inline-block whitespace gap beneath img */
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Functional CTA buttons overlaid on the banner.
   Banner: 1983 × 793px. Buttons in graphic sit at ~67% from top.
   bottom: 29% = 100 - (507/793 × 100) — measured from banner image. */
.hero-banner-btns {
  position: absolute;
  bottom: 29%;
  left: 3.5%;
  display: flex;
  gap: 14px;
  z-index: 5;
}

/* ─── Shared CTA Button styles (used across all pages) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
              background 0.2s, color 0.2s;
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn--teal {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  background: rgba(0 212 228 / 0.08);
}
.btn--teal:hover {
  color: #fff;
  background: rgba(0 212 228 / 0.18);
  box-shadow: 0 0 26px rgba(0 212 228 / 0.4), 0 6px 24px rgba(0 0 0 / 0.3);
}

.btn--gold {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(245 166 35 / 0.08);
}
.btn--gold:hover {
  color: #fff;
  background: rgba(245 166 35 / 0.18);
  box-shadow: 0 0 26px rgba(245 166 35 / 0.4), 0 6px 24px rgba(0 0 0 / 0.3);
}


/* ═══════════════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════════════ */
.section-games,
.section-features {
  padding-block: 90px;
  position: relative;
}
.section-games::before,
.section-features::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.09), transparent);
}

/* Section heading with side separator lines ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-block-end: 52px;
  justify-content: center;
}
/* Lines grow equally to fill the row, pushing title to center */
.sh-line {
  flex: 1;
  height: 1px;
}
/* Left line: fades IN from left edge toward the title (transparent → pink) */
.sh-line:first-child {
  background: linear-gradient(90deg, transparent 0%, rgba(255 77 109 / 0.7) 100%);
}
/* Right line: fades OUT from title toward right edge (pink → transparent) */
.sh-line:last-child {
  background: linear-gradient(90deg, rgba(255 77 109 / 0.7) 0%, transparent 100%);
}
.sh-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(255 255 255 / 0.25);
}


/* ═══════════════════════════════════════════════════════
   FEATURED GAMES
═══════════════════════════════════════════════════════ */
.games-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Game card base ── */
.gcard {
  display: flex;
  align-items: stretch;
  /* Dark navy background — distinct from page background */
  background: linear-gradient(135deg, rgba(14 14 48 / 0.98) 0%, rgba(10 10 36 / 0.98) 100%);
  border: 1px solid transparent; /* overridden per variant below */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 210px; /* ensures image always has height to fill */
  transition: transform 0.35s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.gcard:hover { transform: translateY(-8px); }

/* Left colored accent strip — gradient for depth */
.gcard-accent {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
}
.gcard--red  .gcard-accent { background: linear-gradient(180deg, var(--clr-red)  0%, rgba(255 77 109 / 0.15) 100%); }
.gcard--teal .gcard-accent { background: linear-gradient(180deg, var(--clr-teal) 0%, rgba(0 212 228 / 0.15) 100%); }
.gcard--gold .gcard-accent { background: linear-gradient(180deg, var(--clr-gold) 0%, rgba(245 166 35 / 0.15) 100%); }

/* ── DEFAULT colored glowing border (always on, not just hover) ── */
.gcard--red {
  border-color: rgba(255 77 109 / 0.55);
  box-shadow:
    0 0 18px rgba(255 77 109 / 0.22),   /* outer glow */
    0 0 6px  rgba(255 77 109 / 0.15),   /* tight edge glow */
    0 8px 32px rgba(0 0 0 / 0.6);       /* depth shadow */
}
.gcard--teal {
  border-color: rgba(0 212 228 / 0.55);
  box-shadow:
    0 0 18px rgba(0 212 228 / 0.22),
    0 0 6px  rgba(0 212 228 / 0.15),
    0 8px 32px rgba(0 0 0 / 0.6);
}
.gcard--gold {
  border-color: rgba(245 166 35 / 0.55);
  box-shadow:
    0 0 18px rgba(245 166 35 / 0.22),
    0 0 6px  rgba(245 166 35 / 0.15),
    0 8px 32px rgba(0 0 0 / 0.6);
}

/* ── HOVER — stronger glow on mouse-over ── */
.gcard--red:hover {
  border-color: rgba(255 77 109 / 0.85);
  box-shadow:
    0 0 35px rgba(255 77 109 / 0.45),
    0 0 12px rgba(255 77 109 / 0.3),
    0 24px 60px rgba(255 77 109 / 0.25),
    0 8px 32px rgba(0 0 0 / 0.7);
}
.gcard--teal:hover {
  border-color: rgba(0 212 228 / 0.85);
  box-shadow:
    0 0 35px rgba(0 212 228 / 0.45),
    0 0 12px rgba(0 212 228 / 0.3),
    0 24px 60px rgba(0 212 228 / 0.25),
    0 8px 32px rgba(0 0 0 / 0.7);
}
.gcard--gold:hover {
  border-color: rgba(245 166 35 / 0.85);
  box-shadow:
    0 0 35px rgba(245 166 35 / 0.45),
    0 0 12px rgba(245 166 35 / 0.3),
    0 24px 60px rgba(245 166 35 / 0.25),
    0 8px 32px rgba(0 0 0 / 0.7);
}

/* Card image container —
   align-self:stretch (from parent align-items:stretch) fills card height.
   Width set to ~45% of typical card width for balanced proportions. */
.gcard-img-wrap {
  display: block;
  width: 175px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0 0 0 / 0.5);
  align-self: stretch; /* explicitly stretch to full card height */
}
.gcard-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.gcard:hover .gcard-img-wrap img { transform: scale(1.08); }

/* Card body */
.gcard-body {
  flex: 1;
  padding: 24px 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Game title — glowing colored text */
.gcard-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.gcard-title--red  {
  color: #ff7a91;
  text-shadow: 0 0 14px rgba(255 77 109 / 0.65), 0 0 28px rgba(255 77 109 / 0.3);
}
.gcard-title--teal {
  color: var(--clr-teal);
  text-shadow: 0 0 14px rgba(0 212 228 / 0.65), 0 0 28px rgba(0 212 228 / 0.3);
}
.gcard-title--gold {
  color: var(--clr-gold);
  text-shadow: 0 0 14px rgba(245 166 35 / 0.65), 0 0 28px rgba(245 166 35 / 0.3);
}

.gcard-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.7;
  flex: 1;
}

/* Card CTA button */
.gcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 7px;
  border: 1.5px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring);
  width: fit-content;
  margin-block-start: auto;
}
.gcard-btn:hover { transform: translateX(4px); }

.gcard-btn--red  {
  border-color: rgba(255 77 109 / 0.45);
  color: #ff7a91;
  background: rgba(255 77 109 / 0.06);
}
.gcard-btn--red:hover  {
  background: rgba(255 77 109 / 0.15);
  border-color: rgba(255 77 109 / 0.8);
}
.gcard-btn--teal {
  border-color: rgba(0 212 228 / 0.45);
  color: var(--clr-teal);
  background: rgba(0 212 228 / 0.06);
}
.gcard-btn--teal:hover {
  background: rgba(0 212 228 / 0.15);
  border-color: rgba(0 212 228 / 0.8);
}
.gcard-btn--gold {
  border-color: rgba(245 166 35 / 0.45);
  color: var(--clr-gold);
  background: rgba(245 166 35 / 0.06);
}
.gcard-btn--gold:hover {
  background: rgba(245 166 35 / 0.15);
  border-color: rgba(245 166 35 / 0.8);
}

.btn-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
}
.gcard-btn:hover .btn-arrow { transform: translateX(2px); }


/* ═══════════════════════════════════════════════════════
   FEATURE PILLARS
═══════════════════════════════════════════════════════ */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.pillar:hover .pillar-icon { transform: scale(1.1) rotate(-4deg); }

.pillar-icon--teal   { background: rgba(0 212 228 / 0.1);   color: var(--clr-teal);   border: 1px solid rgba(0 212 228 / 0.2);   }
.pillar-icon--purple { background: rgba(157 78 221 / 0.1);  color: var(--clr-purple); border: 1px solid rgba(157 78 221 / 0.2);  }
.pillar-icon--gold   { background: rgba(245 166 35 / 0.1);  color: var(--clr-gold);   border: 1px solid rgba(245 166 35 / 0.2);  }

.pillar-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-block-end: 8px;
}
/* Glowing pillar title text — matches the reference design */
.pillar-title--teal   { color: var(--clr-teal);   text-shadow: 0 0 14px rgba(0 212 228 / 0.55),   0 0 28px rgba(0 212 228 / 0.25);   }
.pillar-title--purple { color: var(--clr-purple); text-shadow: 0 0 14px rgba(157 78 221 / 0.55), 0 0 28px rgba(157 78 221 / 0.25); }
.pillar-title--gold   { color: var(--clr-gold);   text-shadow: 0 0 14px rgba(245 166 35 / 0.55),  0 0 28px rgba(245 166 35 / 0.25);  }

.pillar-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.72;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: rgba(0 0 0 / 0.5);
  border-top: 1px solid var(--border-subtle);
  padding-block: 28px;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { text-decoration: none; }

.footer-copy {
  font-size: 12px;
  color: rgba(255 255 255 / 0.3);
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   Elements are VISIBLE by default. JS adds .pre-anim to
   enable the hidden starting state. This prevents elements
   staying invisible if JS is slow or IntersectionObserver
   fails to fire.
═══════════════════════════════════════════════════════ */
.reveal {
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
/* JS adds this class to opt elements into the animation */
.reveal.pre-anim {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.pre-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger grid children */
.games-row   .reveal.pre-anim:nth-child(2),
.features-row .reveal.pre-anim:nth-child(2) { transition-delay: 0.12s; }
.games-row   .reveal.pre-anim:nth-child(3),
.features-row .reveal.pre-anim:nth-child(3) { transition-delay: 0.22s; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════ */

/* ── Tablet landscape (1080px and below) ── */
@media (max-width: 1080px) {
  .games-row    { grid-template-columns: 1fr; }
  .features-row { gap: 28px; }
}

/* ── Tablet portrait (768px and below) ── */
@media (max-width: 768px) {
  :root { --nav-h: 66px; }

  /* Collapse desktop nav links and Google Play badge; show hamburger */
  .nav-links { display: none; }
  .nav-gplay { display: none; }
  .hamburger { display: flex; }

  /* Banner buttons: too small to overlay precisely on narrow screens.
     Switch to a static row below the banner image. */
  .hero-banner-btns {
    position: relative;
    bottom: auto;
    left: auto;
    padding: 18px var(--pad-x) 24px;
    background: rgba(7, 7, 26, 0.85);
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .features-row { grid-template-columns: 1fr; gap: 30px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
}

/* ── Mobile (480px and below) ── */
@media (max-width: 480px) {
  .btn { width: 100%; max-width: 240px; justify-content: center; }
  .sh-line { display: none; }
  .section-heading { justify-content: center; }
  .footer-links { flex-direction: column; gap: 12px; }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ═══════════════════════════════════════════════════════
   INNER PAGES — SHARED STYLES
   (Games, Apps, About, Contact sub-pages)
═══════════════════════════════════════════════════════ */

/* ── btn--red variant (Truth or Dare) ── */
.btn--red {
  border-color: var(--clr-red);
  color: var(--clr-red);
  background: rgba(255 77 109 / 0.08);
}
.btn--red:hover {
  color: #fff;
  background: rgba(255 77 109 / 0.2);
  box-shadow: 0 0 26px rgba(255 77 109 / 0.4), 0 6px 24px rgba(0 0 0 / 0.3);
}

/* ── Page Hero (small hero for inner pages) ── */
.page-hero {
  padding-block: 130px 70px;
  margin-block-start: var(--nav-h);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(98 36 255 / 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 110%, rgba(0 180 255 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 85% 110%, rgba(245 166 35 / 0.12) 0%, transparent 60%),
    var(--bg-deep);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.1), transparent);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.ph-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-block-end: 14px;
}
.ph-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-block-end: 18px;
}
.ph-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--txt-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Catalog section (Games / Apps listing page) ── */
.catalog-section {
  padding-block: 70px 100px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Catalog card — vertical layout with banner image on top */
.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14 14 50 / 0.98) 0%, rgba(9 9 32 / 0.98) 100%);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}
.catalog-card:hover { transform: translateY(-10px); }

/* Default colored borders — matches the homepage glow card style */
.catalog-card--red  {
  border-color: rgba(255 77 109 / 0.55);
  box-shadow: 0 0 22px rgba(255 77 109 / 0.2), 0 8px 32px rgba(0 0 0 / 0.55);
}
.catalog-card--teal {
  border-color: rgba(0 212 228 / 0.55);
  box-shadow: 0 0 22px rgba(0 212 228 / 0.2), 0 8px 32px rgba(0 0 0 / 0.55);
}
.catalog-card--gold {
  border-color: rgba(245 166 35 / 0.55);
  box-shadow: 0 0 22px rgba(245 166 35 / 0.2), 0 8px 32px rgba(0 0 0 / 0.55);
}
.catalog-card--teal-app {
  border-color: rgba(0 212 228 / 0.55);
  box-shadow: 0 0 22px rgba(0 212 228 / 0.2), 0 8px 32px rgba(0 0 0 / 0.55);
}

/* Stronger hover glow */
.catalog-card--red:hover  { box-shadow: 0 0 40px rgba(255 77 109 / 0.4), 0 24px 60px rgba(255 77 109 / 0.25), 0 8px 32px rgba(0 0 0 / 0.7); border-color: rgba(255 77 109 / 0.8); }
.catalog-card--teal:hover { box-shadow: 0 0 40px rgba(0 212 228 / 0.4), 0 24px 60px rgba(0 212 228 / 0.25), 0 8px 32px rgba(0 0 0 / 0.7); border-color: rgba(0 212 228 / 0.8); }
.catalog-card--gold:hover { box-shadow: 0 0 40px rgba(245 166 35 / 0.4), 0 24px 60px rgba(245 166 35 / 0.25), 0 8px 32px rgba(0 0 0 / 0.7); border-color: rgba(245 166 35 / 0.8); }
.catalog-card--teal-app:hover { box-shadow: 0 0 40px rgba(0 212 228 / 0.4), 0 24px 60px rgba(0 212 228 / 0.25), 0 8px 32px rgba(0 0 0 / 0.7); border-color: rgba(0 212 228 / 0.8); }

/* Banner image area */
.catalog-banner {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.catalog-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.catalog-card:hover .catalog-banner img { transform: scale(1.06); }
.catalog-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0 0 0 / 0) 40%, rgba(9 9 32 / 0.85) 100%);
}
.catalog-genre-tags {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.genre-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  color: rgba(255 255 255 / 0.85);
  border: 1px solid rgba(255 255 255 / 0.2);
}

/* Card body (below banner) */
.catalog-body {
  flex: 1;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.catalog-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.catalog-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0 0 0 / 0.4);
}
.catalog-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.catalog-title--red  { color: #ff7a91; text-shadow: 0 0 12px rgba(255 77 109 / 0.5); }
.catalog-title--teal { color: var(--clr-teal); text-shadow: 0 0 12px rgba(0 212 228 / 0.5); }
.catalog-title--gold { color: var(--clr-gold); text-shadow: 0 0 12px rgba(245 166 35 / 0.5); }
.catalog-title--teal-app { color: var(--clr-teal); text-shadow: 0 0 12px rgba(0 212 228 / 0.5); }

.catalog-platform {
  font-size: 11px;
  color: var(--txt-muted);
  margin-block-start: 2px;
}
.catalog-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.7;
}
.catalog-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.catalog-features li {
  font-size: 12.5px;
  color: rgba(255 255 255 / 0.65);
  padding-inline-start: 18px;
  position: relative;
}
.catalog-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--clr-teal);
  font-weight: 700;
}
.catalog-actions {
  margin-block-start: auto;
  padding-block-start: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.catalog-play-btn img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  border: 1px solid rgba(255 255 255 / 0.15);
  transition: border-color 0.2s, transform 0.2s;
}
.catalog-play-btn:hover img {
  border-color: rgba(255 255 255 / 0.35);
  transform: translateY(-2px);
}

/* ── Game / App Detail Pages ── */
/* Detail hero — full-width banner with overlay */
.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block-start: var(--nav-h);
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7 7 26 / 0.3) 0%,
    rgba(7 7 26 / 0.6) 50%,
    rgba(7 7 26 / 0.95) 100%
  );
}
.detail-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 60px var(--pad-x) 48px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.detail-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0 0 0 / 0.6);
  border: 2px solid rgba(255 255 255 / 0.15);
}
.detail-meta { flex: 1; }
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-end: 10px;
}
.detail-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
  color: rgba(255 255 255 / 0.8);
  border: 1px solid rgba(255 255 255 / 0.18);
}
.detail-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #fff;
  margin-block-end: 8px;
}
.detail-subtitle {
  font-size: 15px;
  color: var(--txt-secondary);
}
.detail-download {
  flex-shrink: 0;
}
.detail-download img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  border: 1.5px solid rgba(255 255 255 / 0.2);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.detail-download:hover img {
  border-color: rgba(255 255 255 / 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0 0 0 / 0.4);
}

/* Detail info section */
.detail-section {
  padding-block: 70px;
  position: relative;
}
.detail-section::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.09), transparent);
}
.detail-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-block-end: 20px;
}
.detail-desc {
  font-size: 15px;
  color: rgba(255 255 255 / 0.75);
  line-height: 1.8;
  max-width: 760px;
}

/* Features grid on detail pages */
.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-start: 40px;
}
.detail-feature-card {
  background: rgba(255 255 255 / 0.03);
  border: 1px solid rgba(255 255 255 / 0.08);
  border-radius: 14px;
  padding: 22px 20px;
  transition: background 0.2s, border-color 0.2s;
}
.detail-feature-card:hover {
  background: rgba(255 255 255 / 0.055);
  border-color: rgba(255 255 255 / 0.14);
}
.detail-feature-icon {
  font-size: 26px;
  margin-block-end: 12px;
  display: block;
}
.detail-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-block-end: 6px;
}
.detail-feature-desc {
  font-size: 12.5px;
  color: var(--txt-secondary);
  line-height: 1.65;
}

/* Screenshots grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-start: 8px;
}
.screenshot-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255 255 255 / 0.08);
  aspect-ratio: 9 / 16;
  background: rgba(0 0 0 / 0.4);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.screenshot-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0 0 0 / 0.5);
}
.screenshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Full-width download CTA banner */
.detail-cta {
  padding-block: 70px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(0 180 255 / 0.08) 0%, transparent 70%),
    rgba(255 255 255 / 0.015);
  border-block: 1px solid rgba(255 255 255 / 0.07);
}
.detail-cta-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  color: #fff;
  margin-block-end: 10px;
}
.detail-cta-sub {
  font-size: 14px;
  color: var(--txt-secondary);
  margin-block-end: 30px;
}
.detail-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-play-badge img {
  height: 54px;
  width: auto;
  border-radius: 10px;
  border: 1.5px solid rgba(255 255 255 / 0.2);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cta-play-badge:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0 0 0 / 0.5);
  border-color: rgba(255 255 255 / 0.4);
}
.cta-back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}
.cta-back-link:hover { color: #fff; transform: translateX(-3px); }

/* ── App Showcase card (apps/index.html - single large card) ── */
.app-showcase-section {
  padding-block: 70px 100px;
}
.app-showcase-card {
  display: grid;
  /* Give image column more space (55%) so wide banner isn't over-cropped */
  grid-template-columns: 55% 45%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14 14 50 / 0.98) 0%, rgba(9 9 32 / 0.98) 100%);
  border: 1px solid rgba(0 212 228 / 0.5);
  box-shadow: 0 0 28px rgba(0 212 228 / 0.18), 0 12px 48px rgba(0 0 0 / 0.6);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.4s var(--ease-out);
  min-height: 420px;
}
.app-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 45px rgba(0 212 228 / 0.35), 0 24px 60px rgba(0 0 0 / 0.7);
}
.app-showcase-image {
  overflow: hidden;
  position: relative;
}
.app-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift anchor point left so the "HOME BUYERS GUIDE" text is centred in view */
  object-position: 30% center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.app-showcase-card:hover .app-showcase-image img { transform: scale(1.04); }
.app-showcase-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.app-showcase-icon-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-end: 6px;
}
.app-showcase-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0 0 0 / 0.4);
  flex-shrink: 0;
}
.app-showcase-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-block-end: 4px;
}
.app-showcase-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}
.app-showcase-desc {
  font-size: 13.5px;
  color: var(--txt-secondary);
  line-height: 1.75;
}
.app-showcase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.app-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0 212 228 / 0.08);
  color: var(--clr-teal);
  border: 1px solid rgba(0 212 228 / 0.22);
}
.app-showcase-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  padding: 0;
  margin: 0;
}
.app-showcase-features li {
  font-size: 12.5px;
  color: rgba(255 255 255 / 0.65);
  padding-inline-start: 18px;
  position: relative;
}
.app-showcase-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--clr-teal);
  font-weight: 700;
}
.app-showcase-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-block-start: 8px;
}

/* ── App Pricing cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-block-start: 8px;
}
.pricing-card {
  border-radius: 16px;
  padding: 28px 26px;
  background: rgba(255 255 255 / 0.035);
  border: 1px solid rgba(255 255 255 / 0.09);
  transition: border-color 0.25s;
}
.pricing-card--premium {
  border-color: rgba(245 166 35 / 0.5);
  background: rgba(245 166 35 / 0.04);
  box-shadow: 0 0 20px rgba(245 166 35 / 0.12);
}
.pricing-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-block-end: 6px;
}
.pricing-tier--free    { color: var(--clr-teal); }
.pricing-tier--premium { color: var(--clr-gold); }
.pricing-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-block-end: 4px;
}
.pricing-period {
  font-size: 12px;
  color: var(--txt-muted);
  margin-block-end: 18px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-features li {
  font-size: 13px;
  color: rgba(255 255 255 / 0.65);
  padding-inline-start: 20px;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--clr-teal);
  font-weight: 700;
}
.pricing-card--premium .pricing-features li::before { color: var(--clr-gold); }

/* ── Responsive for inner pages ── */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
  .app-showcase-card { grid-template-columns: 1fr; }
  .app-showcase-image { aspect-ratio: 16 / 9; max-height: 300px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .detail-hero-content { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail-features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .app-showcase-body { padding: 28px 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; }
  .page-hero { padding-block: 100px 50px; }
}
