/* ===============================
   POPME THEME – GLOBAL STYLES
   =============================== */

:root {
  --bg: #fbf6ee;
  --bg-alt: #f3ece2;
  --black: #0e0c0a;
  --gray: #8b8176;
  --soft-gray: #eee6da;

  --gold: #f7c443;
  --gold-strong: #f0a620;
  --amber: #ffdda1;
  --red: #ff4b4b;

  --radius-lg: 26px;
  --radius-md: 18px;

  --shadow-soft: 0 18px 60px rgba(22, 16, 10, 0.12);
  --shadow-gold: 0 20px 60px rgba(240, 166, 32, 0.28);

  --transition: all 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff6e6 0%, #f8f1e6 40%, #f0e6d7 100%);
  color: var(--black);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 221, 161, 0.5), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(240, 166, 32, 0.25), transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(14, 12, 10, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--black);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: white;
  color: var(--black);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

section, header {
  padding: 110px 24px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-band {
  background: var(--bg-alt);
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  background: rgba(14, 12, 10, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
}

.store-badge img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.18));
}

.appstore-logo {
  height: 48px;
  width: 48px;
}

/* Typography */

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  font-size: 1.08rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Hero */

.hero {
  padding-top: 130px;
  padding-bottom: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
}

.hero-copy p {
  max-width: 520px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--black);
  color: #fff0d1;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.small {
  font-size: 0.75rem;
  padding: 6px 12px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  gap: 26px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  min-width: 120px;
}

.stat strong {
  font-size: 1.6rem;
  display: block;
}

.stat span {
  color: var(--gray);
  font-size: 0.95rem;
}

.micro-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  color: var(--gray);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

/* Video section */

.video-section {
  position: relative;
  padding: 120px 0 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 244, 236, 0.85));
  overflow: hidden;
}

.video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(820px, 80vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(28, 25, 20, 0.2), transparent);
}

.video-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(0, 0, 0, 0.35) 0.5px, transparent 0.5px);
  background-size: 6px 6px;
  pointer-events: none;
}

.video-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.video-copy h2 {
  max-width: 18ch;
}

.video-copy p {
  max-width: 32ch;
}

.video-description {
  margin-top: 16px;
  max-width: 44ch;
}

.badge-row span {
  border: 1px solid rgba(21, 21, 21, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.6);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
}

.phone-highlight {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(247, 196, 67, 0.22), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  width: clamp(220px, 34vw, 320px);
  height: 50vh;
  max-height: 560px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #0d0d0d, #1b1b1b);
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 26px 70px rgba(10, 8, 6, 0.35), 0 12px 26px rgba(10, 8, 6, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 38%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%);
  pointer-events: none;
}

.gameplay-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-small {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.btn-black {
  background: var(--black);
  color: white;
}

.btn-black:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(14, 12, 10, 0.2);
  color: var(--black);
}

.btn-ghost:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

/* Cards */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.feature-card {
  border: 1px solid rgba(14, 12, 10, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(20, 16, 10, 0.18);
}

.power-card {
  background: linear-gradient(135deg, #fff6e2, #fff);
}

.detail-text {
  margin-top: 12px;
  color: var(--gray);
  font-size: 0.98rem;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.08);
  font-size: 0.8rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gold highlight */

.gold {
  color: var(--gold-strong);
}

/* Orb */

.orb {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, #2b2218, #0b0907);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite, pulse 3.2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14, 12, 10, 0.15);
  animation: ring 6s ease-in-out infinite;
}

.ring-1 {
  width: 310px;
  height: 310px;
}

.ring-2 {
  width: 380px;
  height: 380px;
  animation-delay: 0.6s;
}

.ring-3 {
  width: 460px;
  height: 460px;
  animation-delay: 1.2s;
}

.score-chip {
  position: absolute;
  background: var(--black);
  color: #ffe9b6;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 12px 36px rgba(10, 8, 6, 0.25);
  z-index: 3;
}

.chip-1 {
  top: 20px;
  left: 20px;
}

.chip-2 {
  bottom: 30px;
  right: 10px;
}

.chip-3 {
  top: 55%;
  right: 60px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 60px rgba(247, 196, 67, 0.3); }
  50% { box-shadow: 0 0 120px rgba(247, 196, 67, 0.55); }
  100% { box-shadow: 0 0 60px rgba(247, 196, 67, 0.3); }
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.04); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.phone {
  background: #f7f3ee;
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(18, 12, 8, 0.2);
  position: relative;
  border: 1px solid rgba(14, 12, 10, 0.08);
  min-height: 420px;
}

.phone-notch {
  width: 70px;
  height: 18px;
  background: #0e0c0a;
  border-radius: 999px;
  margin: 0 auto 16px;
}

.phone-ui {
  display: grid;
  gap: 12px;
}

.ui-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ui-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.ui-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.08);
  font-size: 0.85rem;
}

.ui-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(14, 12, 10, 0.08);
  font-size: 0.85rem;
}

.ui-card {
  padding: 12px 16px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.ui-card.dark {
  background: #0e0c0a;
  color: #ffe9b6;
}

.ui-card.gold {
  background: linear-gradient(135deg, #f7c443, #f6d47b);
  color: #0e0c0a;
  text-align: center;
}

.ui-card.coin,
.ui-card.shop {
  flex: 1;
  text-align: center;
}

.ui-bar {
  margin-top: 18px;
  background: #0e0c0a;
  color: #ffe9b6;
  text-align: center;
  padding: 12px 0;
  border-radius: 999px;
}

.shop-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.shop-card p {
  font-size: 0.9rem;
}

.price {
  font-weight: 700;
  color: var(--gold-strong);
}

.mini-btn {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--black);
  color: white;
  font-weight: 600;
}

.leader-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7c443;
  color: #2a1900;
  font-weight: 600;
}

.leader-card.top {
  background: #0e0c0a;
  color: #ffe9b6;
}

/* Grids */

.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Sections */

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.list-item {
  padding-left: 24px;
  position: relative;
  font-weight: 500;
}

.list-item::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--gold-strong);
}

.rank-card {
  background: var(--black);
  color: #ffe9b6;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rank-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 233, 182, 0.2);
}

.rank-progress {
  height: 10px;
  background: rgba(255, 233, 182, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 18px;
}

.rank-fill {
  width: 72%;
  height: 100%;
  background: var(--gold);
}

.rank-note {
  color: #ffe9b6;
  margin-top: 16px;
}

.leaderboard {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(14, 12, 10, 0.08);
  align-items: center;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row em {
  font-style: normal;
  font-weight: 600;
}

.leaderboard-row.hot {
  background: linear-gradient(90deg, rgba(247, 196, 67, 0.22), transparent);
  border-radius: 16px;
  padding: 16px;
}

/* Quotes */

.quote {
  background: white;
  border: 1px solid rgba(14, 12, 10, 0.06);
}

.quote span {
  display: block;
  margin-top: 14px;
  color: var(--gray);
}

/* Steps */

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.step-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-strong);
}

/* FAQ */

.faq {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}

/* Focus CTA */

.focus-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer {
  padding: 80px 24px 100px;
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: flex-start;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links p + p {
  margin-top: 8px;
}

.footer-links a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Reveal animation */

.reveal-group > .card {
  animation: fadeUp 0.8s ease both;
}

.reveal-group > .card:nth-child(2) {
  animation-delay: 0.12s;
}

.reveal-group > .card:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .top-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .focus-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-grid {
    gap: 48px;
    text-align: left;
  }

  .phone-stage {
    justify-self: center;
  }

  .video-copy {
    order: 2;
  }

  .phone-stage {
    order: 1;
  }

  .phone-frame {
    height: 45vh;
    max-height: 500px;
  }
}

@media (max-width: 640px) {
  section, header {
    padding: 90px 20px;
  }

  .top-nav {
    gap: 10px;
  }

  .nav-links {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .store-badge img {
    height: 52px;
  }

  .appstore-logo {
    height: 42px;
    width: 42px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .video-section {
    padding: 100px 0 120px;
  }

  .phone-frame {
    height: 42vh;
  }
}
