﻿/* GamePeek Landing Page — page-specific styles
   Shared nav/footer/device-bar styles live in styles.css
   ─────────────────────────────────────────────────────── */

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 96px 5% 80px;
  padding-bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30,105,248,.18) 0%, transparent 70%);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(30,105,248,.12); border: 1px solid rgba(30,105,248,.3);
  color: #7EB0FF; border-radius: 20px;
  padding: 4px 14px; font-size: 12px; font-weight: 600; letter-spacing: .6px;
  margin-bottom: 24px; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  max-width: 780px;
}
.hero h1 em { font-style: normal; color: var(--blue); }

.hero p {
  margin-top: 20px; max-width: 560px;
  font-size: 18px; color: var(--muted); line-height: 1.7;
}

.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px;
}

.hero-mockup {
  margin-top: 64px;
  width: min(320px, 80vw);
  aspect-ratio: 9/19.5;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 36px;
  box-shadow: 0 40px 120px rgba(30,105,248,.15), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
}
.hero-mockup::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,105,248,.08) 0%, transparent 60%);
}
.mockup-screen {
  position: absolute; inset: 12px;
  border-radius: 28px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.mockup-label {
  font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .4px;
  text-align: center; padding: 0 20px; line-height: 1.8;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #33E64F;
  box-shadow: 0 0 8px #33E64F;
  display: inline-block; margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Gentle bounce on the scroll-down CTA */
.btn-outline svg {
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ── SECTION COMMON ────────────────────────────────────────────────────────── */
section { padding: 96px 5%; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.5px; line-height: 1.2;
  max-width: 560px;
}
.section-sub {
  margin-top: 12px; color: var(--muted); font-size: 16px;
  max-width: 520px; line-height: 1.7;
}

/* ── FEATURES ──────────────────────────────────────────────────────────────── */
#features { border-top: 1px solid var(--border); text-align: center; }
#features .section-label,
#features .section-title,
#features .section-sub { margin-left: auto; margin-right: auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.feature-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(30,105,248,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ──────────────────────────────────────────────────────────── */
#how { border-top: 1px solid var(--border); text-align: center; }
#how .section-label,
#how .section-title { margin-left: auto; margin-right: auto; }

.steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 48px auto 0; max-width: 600px;
  text-align: left;
}

.step {
  display: flex; gap: 20px;
  padding-bottom: 36px;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 1px; background: var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--s1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--blue);
}

.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── PRICING ───────────────────────────────────────────────────────────────── */
#pricing { border-top: 1px solid var(--border); text-align: center; }
#pricing .section-label,
#pricing .section-title,
#pricing .section-sub { margin-left: auto; margin-right: auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  gap: 16px; margin: 48px auto 0; max-width: 760px;
  text-align: left;
}

.plan {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.plan.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(30,105,248,.08) 0%, var(--s1) 60%);
}
.plan.lifetime {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(255,183,0,.07) 0%, var(--s1) 60%);
}

.plan-badge {
  position: absolute; top: -1px; right: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}
.plan.featured .plan-badge { background: var(--blue); color: #fff; }
.plan.lifetime .plan-badge { background: var(--gold); color: #000; }

.plan-name  { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.plan-price {
  font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px;
}
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-price .was { font-size: 18px; color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.plan-desc       { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5;
}
.plan-features li::before {
  content: "✓"; flex-shrink: 0;
  color: var(--blue); font-weight: 700; font-size: 13px; margin-top: 1px;
}
.plan-features li.pro-item::before  { content: "★"; color: var(--gold); }
.plan-features li.gold-item::before { content: "♾"; color: var(--gold); }

.plan-cta {
  display: block; text-align: center;
  margin-top: 28px; padding: 11px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: opacity .15s;
}
.plan-cta:hover { opacity: .85; }
.plan-cta.primary   { background: var(--blue); color: #fff; }
.plan-cta.gold      { background: var(--gold); color: #000; }
.plan-cta.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Lifetime FAQ */
.lifetime-faq {
  margin: 32px auto 0;
  max-width: 1020px;
  text-align: left;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
}
.lifetime-faq h3 {
  font-size: 15px; font-weight: 700; color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.lifetime-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.faq-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.faq-item p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DOWNLOAD ──────────────────────────────────────────────────────────────── */
#download { border-top: 1px solid var(--border); text-align: center; }
#download .section-label,
#download .section-title,
#download .section-sub { margin-left: auto; margin-right: auto; }

.download-group {
  margin: 48px auto 0;
  max-width: 920px;
}
.download-group + .download-group {
  margin-top: 40px;
}
.download-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.platform-grid {
  display: grid;
  /* 280px min ensures button text never wraps at 3-column layout */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}

.platform-card-top {
  display: block;
}

.platform-qr {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 100px;
  height: 100px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .platform-qr { display: none; }
}

.platform-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s;
  position: relative;
}
.platform-card:hover { border-color: #444; }

.platform-logo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.platform-logo img { width: 100%; height: 100%; object-fit: contain; }

.platform-card h3 { font-size: 18px; font-weight: 700; }
.platform-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }

.platform-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--s2); border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;           /* never fold onto two lines */
  transition: border-color .15s, background .15s;
}
.platform-btn:hover { border-color: var(--blue); background: rgba(30,105,248,.08); }

/* ── ICON HELPERS ──────────────────────────────────────────────────────────── */
/* .icon-w — renders a black-fill SVG as white on dark backgrounds */
.icon-w      { filter: invert(1); flex-shrink: 0; vertical-align: middle; }
img.icon     { flex-shrink: 0; vertical-align: middle; display: inline-block; }

/* ── SHOWCASE ──────────────────────────────────────────────────────────────── */
#showcase { border-top: 1px solid var(--border); text-align: center; }
#showcase .section-label,
#showcase .section-title,
#showcase .section-sub { margin-left: auto; margin-right: auto; }

.showcase-videos {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.showcase-video-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.showcase-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── DEMO ──────────────────────────────────────────────────────────────────── */
#demo {
  text-align: center;
  padding-top: 48px;
}
#demo .section-label,
#demo .section-title,
#demo .section-sub { margin-left: auto; margin-right: auto; }

.demo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
}

/* ── MacBook mockup ─────────────────────────────────────────────────────── */
.demo-mac {
  width: min(680px, 65vw);
  flex-shrink: 0;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.55));
}
.mac-lid {
  background: linear-gradient(180deg, #3c3c3c 0%, #2d2d2d 100%);
  border-radius: 14px 14px 3px 3px;
  padding: 8px 8px 4px;
  border: 1.5px solid #4a4a4a;
  border-bottom: none;
}
.mac-bezel {
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.mac-cam {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #252525;
  border-radius: 50%;
  border: 1px solid #333;
  z-index: 2;
}

/* Unity Editor skin */
.unity-ui {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #383838;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px; color: #ccc;
  user-select: none;
}
.unity-title-bar {
  display: flex; align-items: center; gap: 8px;
  height: 20px;
  background: #2d2d2d;
  padding: 0 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 9px; color: #888;
}
.unity-traffic { display: flex; gap: 4px; }
.utl { width: 9px; height: 9px; border-radius: 50%; }
.utl.r { background: #FF5F57; }
.utl.y { background: #FFBD2E; }
.utl.g { background: #28C840; }

.unity-menu-bar {
  display: flex; align-items: center; gap: 0;
  height: 20px;
  background: #3c3c3c;
  padding: 0 4px;
  flex-shrink: 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 9px;
}
.unity-menu-bar > span {
  padding: 2px 8px;
  color: #ddd; cursor: default;
}
.unity-menu-bar > span:hover { background: #505050; }

/* Toolbar with centered play controls */
.unity-toolbar {
  display: flex; align-items: center;
  height: 24px;
  background: #383838;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.utb-spacer { flex: 1; }
.unity-play-group { display: flex; gap: 1px; }
.upb {
  background: #585858;
  border: 1px solid #666;
  color: #ddd;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  cursor: default;
  line-height: 1;
}
.upb.playing {
  background: rgba(30,105,248,.3);
  border-color: var(--blue);
  color: #7EB0FF;
}

.unity-body { display: flex; flex: 1; overflow: hidden; }

.unity-hier {
  width: 16%;
  border-right: 1px solid #1a1a1a;
  background: #383838;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.upanel-hdr {
  background: #3c3c3c;
  padding: 3px 8px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 9px; color: #bbb; font-weight: 600;
  flex-shrink: 0;
}
.hier-list { overflow: hidden; }
.hi {
  padding: 2px 8px;
  font-size: 9px; color: #ddd;
  cursor: default;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hi.sub { padding-left: 14px; color: #bbb; }
.hi.sel { background: rgba(30,105,248,.3); color: #fff; }

.unity-center {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.unity-tabs {
  display: flex; align-items: center;
  background: #3c3c3c;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.utab {
  padding: 3px 12px;
  font-size: 9px; color: #999;
  cursor: default;
  border-right: 1px solid #2a2a2a;
}
.utab.active { background: #383838; color: #eee; }
.streaming-badge {
  display: flex; align-items: center; gap: 5px;
  margin-left: auto;
  padding: 0 10px;
  font-size: 8px; color: #33E64F;
}
.sb-dot {
  width: 6px; height: 6px;
  background: #33E64F;
  border-radius: 50%;
  box-shadow: 0 0 4px #33E64F;
  animation: pulse 2s ease-in-out infinite;
}

.game-view-wrap {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-view-wrap iframe {
  height: 100%;
  aspect-ratio: 9/19.5;
  max-width: 100%;
  border: none; display: block;
  pointer-events: none;
}

/* GamePeek right panel */
.unity-peek {
  width: 20%;
  border-left: 1px solid #1a1a1a;
  background: #383838;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.up-content { padding: 5px; }
.up-status-row {
  display: flex; align-items: center; gap: 5px;
  padding: 4px;
  background: #2d2d2d;
  border-radius: 3px;
  margin-bottom: 5px;
}
.up-dot-green {
  width: 8px; height: 8px;
  background: #33E64F;
  border-radius: 50%;
  box-shadow: 0 0 4px #33E64F;
  flex-shrink: 0;
}
.up-name { font-size: 9px; font-weight: 600; color: #eee; }
.up-ip   { font-size: 7px; color: #888; }
.up-stop-btn {
  background: #C62828;
  color: #fff;
  text-align: center;
  padding: 3px;
  border-radius: 3px;
  font-size: 8px; font-weight: 600;
  margin-bottom: 5px;
}
.up-stats {
  display: flex; gap: 3px;
  font-size: 7px; color: #aaa;
  padding: 3px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 4px;
}
.up-stats span {
  padding: 1px 3px;
  background: #2d2d2d;
  border-radius: 2px;
}
.up-section {
  font-size: 7px; color: #888;
  font-weight: 700;
  letter-spacing: .4px;
  margin: 3px 0 2px;
}
.up-opt {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
  font-size: 7px; color: #aaa;
}
.up-opt span:last-child { color: #ccc; }

/* Console bottom bar */
.unity-console {
  height: 18px;
  display: flex; align-items: center;
  padding: 0 8px;
  background: #3c3c3c;
  border-top: 1px solid #1a1a1a;
  font-size: 9px; color: #aaa;
  flex-shrink: 0;
}

/* MacBook base */
.mac-foot { display: flex; flex-direction: column; }
.mac-hinge {
  height: 3px;
  background: linear-gradient(180deg, #1f1f1f 0%, #333 100%);
}
.mac-base {
  background: linear-gradient(180deg, #383838 0%, #2a2a2a 100%);
  height: 22px;
  border-radius: 0 0 10px 10px;
  border: 1.5px solid #404040;
  border-top: none;
  position: relative;
}
.mac-notch-cut {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 7px;
  background: #111;
  border-radius: 5px 5px 0 0;
}

/* ── iPhone mockup ──────────────────────────────────────────────────────── */
.demo-iphone-wrap {
  display: flex; flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.demo-iphone {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.7));
}
.iphone-body {
  width: min(185px, 22vw);
  aspect-ratio: 9/19.5;
  background: linear-gradient(160deg, #2e2e2e 0%, #1c1c1c 100%);
  border-radius: 40px;
  border: 1.5px solid #3a3a3a;
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 0 0 0 2px rgba(0,0,0,.5);
}

/* Side buttons */
.iphone-power-btn {
  position: absolute; right: -3px; top: 30%;
  width: 3px; height: 55px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}
.iphone-vol-up {
  position: absolute; left: -3px; top: 22%;
  width: 3px; height: 36px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
}
.iphone-vol-dn {
  position: absolute; left: -3px; top: 37%;
  width: 3px; height: 36px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
}
.iphone-island {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 23px;
  background: #000;
  border-radius: 16px;
  z-index: 10;
}
.iphone-screen {
  flex: 1;
  margin: 8px 5px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.iphone-screen iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.iphone-touch-layer {
  position: absolute; inset: 0;
  cursor: crosshair;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px;
  border-radius: 30px;
  overflow: hidden;
}
.tap-prompt {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 9px; color: rgba(255,255,255,.65);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .5s;
}
.iphone-home-ind {
  height: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.iphone-home-ind::after {
  content: '';
  width: 80px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
}
/* Demo legend */
.demo-legend {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 32px; flex-wrap: wrap;
}
.dl-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.dl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Demo responsive */

/* Tablet: stack vertically, iPhone on top */
@media (max-width: 860px) {
  .demo-stage {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .demo-iphone-wrap {
    order: -1; /* iPhone first */
    margin-bottom: 0;
    align-self: auto;
  }
  .demo-iphone { height: auto; }
  .iphone-body { width: min(200px, 44vw); height: auto; }
  .demo-mac { width: min(520px, 92vw); }
  .unity-peek { display: none; }
  .unity-hier { width: 20%; }
}

/* Mobile: hide Mac, show big phone */
@media (max-width: 520px) {
  .demo-mac { display: none; }
  .demo-iphone { height: auto; }
  .iphone-body { width: min(240px, 60vw); height: auto; }
  .iphone-touch-layer { cursor: pointer; }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  /* on very small screens allow wrapping as a last resort */
  .platform-btn { white-space: normal; }

  .plans { grid-template-columns: 1fr; max-width: 400px; }
}
