/* ==========================================================================
   Footer — sits below the hero, scrolls into view. The bg-layer canvas
   stays fixed behind it so the arena remains the visual backdrop.
   ========================================================================== */

/* Subtle scroll cue at the bottom of the hero */
.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  opacity: 0;
  animation: scroll-cue-fade 1200ms ease-out 2200ms forwards,
             scroll-cue-bob 2.4s ease-in-out 3000ms infinite;
  z-index: 35;
}
.scroll-cue svg { color: rgba(255, 255, 255, 0.6); }
@keyframes scroll-cue-fade {
  to { opacity: 1; }
}
@keyframes scroll-cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 4px); }
}

/* ==========================================================================
   Gameplay showcase — section between hero and footer
   ========================================================================== */
.gameplay {
  position: relative;
  z-index: 5;
  padding: 96px 56px 80px;
  background: rgba(5, 8, 13, 0.94);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
}
.gameplay-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.section-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.85);
}
.section-title {
  margin: 0;
  font-family: 'Big Shoulders Display', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #ffffff;
}
.section-sub {
  margin: 0 0 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

/* Phone frame for gameplay screenshot — portrait, the way the app actually looks. */
.gameplay-shot {
  margin: 0;
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;     /* iPhone 14 Pro proportions */
  background: #0a0a0e;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    /* outer dark contour (the chassis edge) */
    0 0 0 2px rgba(255, 255, 255, 0.06),
    /* deep dramatic drop shadow */
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(167, 139, 250, 0.15),
    /* subtle inner highlight on the bezel top */
    inset 0 2px 0 rgba(255, 255, 255, 0.05);
  /* metallic chassis hint */
  background:
    linear-gradient(160deg, #1a1a24 0%, #0a0a0e 60%, #050508 100%);
}
/* Dynamic Island / notch */
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  position: relative;
  z-index: 1;
}
.phone-frame img.is-missing {
  display: none;
}
/* Placeholder hint when no screenshot is present */
.phone-frame::after {
  content: 'GAMEPLAY \\A drop a portrait screenshot at \\A assets/screenshots/gameplay-1.png';
  white-space: pre;
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background:
    radial-gradient(ellipse at center, rgba(167, 139, 250, 0.10) 0%, #08080c 70%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  line-height: 2;
  pointer-events: none;
  z-index: 0;
}
.phone-frame:has(img:not(.is-missing))::after {
  display: none;
}

@media (max-width: 768px) {
  .gameplay { padding: 64px 20px 56px; }
}

/* --- Footer ---------------------------------------------------------- */
/* The footer is a discrete surface sitting below the hero. A thin top
   divider line separates it from the hero, and the entire footer block has
   a solid backdrop so its content reads cleanly against the bg-layer canvas. */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 56px 56px 32px;
  background: rgba(5, 8, 13, 0.96);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

/* --- Brand block (tagline + longer blurb — color logo lives up top) --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-tagline {
  margin: 0;
  font-family: 'Big Shoulders Display', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #f5f5f7;
  max-width: 380px;
}
.footer-blurb {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
}

/* --- App Store CTA --------------------------------------------------- */
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.appstore-badge {
  display: inline-block;
  transition: transform 180ms ease, filter 180ms ease;
  text-decoration: none;
}
.appstore-badge img {
  display: block;
  height: 50px;     /* Apple's recommended badge height */
  width: auto;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.25));
}
.appstore-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.85);
  font-weight: 500;
}

/* --- Follow Us ------------------------------------------------------- */
.footer-follow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-heading {
  margin: 0;
  font-family: 'Big Shoulders Display', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f5f7;
}
.social-list {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-list a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 180ms ease;
  text-decoration: none;
}
.social-list a:hover {
  color: #fff;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-1px);
}

/* --- Footer bottom: parent + meta ------------------------------------ */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-parent {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-parent a {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.footer-parent a:hover { opacity: 1; }
.footer-parent img {
  display: block;
  height: 24px;
  width: auto;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
.footer-meta a:hover { color: #fff; }

/* --- Mobile ---------------------------------------------------------- */
@media (max-width: 768px) {
  .site-footer { padding: 56px 24px 24px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
  }
  .footer-meta { flex-wrap: wrap; gap: 16px; }
  .scroll-cue { bottom: 32px; }
}
