/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09090f;
  --bg-2: #0d0f1a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --green-accent: #30D158;
  --green-light: #4AE57B;
  --purple: #5856D6;
  --gold: #F5C842;
  --gold-dark: #C8970A;
  --red: #FF3B30;
  --text: #ffffff;
  --text-2: rgba(255,255,255,0.62);
  --text-3: rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

/* ============================================================
   HEADER — floating glassmorphism
   ============================================================ */
#site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(9, 9, 15, 0.65);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
}

#site-header.header-hidden {
  transform: translateX(-50%) translateY(calc(-100% - 24px));
  opacity: 0;
}

.header-inner {
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.logo-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-name {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 16px;
  padding: 14px 28px;
}

.btn-xl {
  font-size: 18px;
  padding: 18px 36px;
}

.btn-primary {
  background: var(--green-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(48,209,88,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #F5C842, #C8970A);
  color: #fff;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(245,200,66,0.35);
}

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(48,209,88,0.12);
  color: var(--green-light);
  border: 1px solid rgba(48,209,88,0.2);
  margin-bottom: 16px;
}

.pill--gold {
  background: rgba(245,200,66,0.12);
  color: var(--gold);
  border-color: rgba(245,200,66,0.2);
}

.pill--red {
  background: rgba(255,59,48,0.12);
  color: #FF6961;
  border-color: rgba(255,59,48,0.2);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #4AE57B 0%, #00C896 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-mockup {
  position: relative;
  display: inline-block;
  width: 260px;
  /* natural aspect: 316 × 644 */
  aspect-ratio: 316 / 644;
  flex-shrink: 0;
}

.phone-mockup .screenshot {
  position: absolute;
  top: 2%;
  left: 5%;
  width: 90%;
  height: 96%;
  border-radius: 38px;
  object-fit: cover;
  z-index: 1;
}

.phone-mockup .device-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.phone-mockup--md {
  width: 210px;
}

.phone-mockup--md .screenshot {
  border-radius: 30px;
}

.phone-mockup--sm {
  width: 170px;
}

.phone-mockup--sm .screenshot {
  border-radius: 24px;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.phone-glow--gold {
  background: radial-gradient(circle, rgba(245,200,66,0.25) 0%, transparent 70%);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb--blue {
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  top: -100px;
  right: -100px;
}

.hero-orb--purple {
  width: 400px;
  height: 400px;
  background: rgba(88,86,214,0.14);
  bottom: -80px;
  left: -80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-text h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
}

.hero-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 48px;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--green-light);
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: var(--bg-2);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.how-step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}

.how-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-2);
}

.how-connector {
  flex-shrink: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-accent) 0%, var(--purple) 100%);
  align-self: center;
  margin: 0 -4px;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(48,209,88,0.1);
  border: 1px solid rgba(48,209,88,0.2);
  border-radius: 18px;
  margin: 0 auto 16px;
  color: var(--green-accent);
}

.how-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.feature-card--large {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.feature-card-text {
  flex: 1;
}

.feature-card-mockup {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.difficulty {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.difficulty.easy {
  background: rgba(52,199,89,0.15);
  color: var(--green);
}

.difficulty.medium {
  background: rgba(255,149,0,0.15);
  color: #FF9500;
}

.difficulty.hard {
  background: rgba(255,59,48,0.15);
  color: var(--red);
}

.feature-phone-center {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   1v1 BATTLES
   ============================================================ */
.battles {
  background: var(--bg-2);
  overflow: hidden;
}

.battles-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,59,48,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.battles-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.battles-phones {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 560px;
}

.battles-phone {
  position: absolute;
}

.battles-phone--back {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-5deg) translateX(-10px);
  opacity: 0.85;
}

.battles-phone--front {
  bottom: 0;
  right: 0;
  z-index: 2;
  transform: rotate(4deg) translateX(10px);
}

.battles-text {
  flex: 1;
}

.battles-text h2 {
  margin-bottom: 16px;
}

.battles-text > p {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.65;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(52,199,89,0.15);
  color: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-list li div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-list li strong {
  font-size: 15px;
  font-weight: 600;
}

.check-list li span {
  font-size: 14px;
  color: var(--text-2);
}

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard {
  background: var(--bg);
}

.leaderboard-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.leaderboard-text {
  flex: 1;
}

.leaderboard-text h2 {
  margin-bottom: 16px;
}

.leaderboard-text > p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
}

.lb-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lb-tab {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: default;
}

.lb-tab--active {
  background: rgba(48,209,88,0.12);
  border-color: rgba(48,209,88,0.3);
  color: var(--green-light);
}

.lb-note {
  font-size: 13px;
  color: var(--text-3);
}

.leaderboard-mockup {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   GO PRO
   ============================================================ */
.pro {
  background: var(--bg-2);
  overflow: hidden;
}

.pro-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,200,66,0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pro-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.pro-mockup {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.pro-text {
  flex: 1;
}

.pro-text h2 {
  margin-bottom: 16px;
}

.pro-text > p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
}

.pro-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.pro-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pro-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-benefits li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.pro-benefits li strong {
  font-size: 16px;
  font-weight: 600;
}

.pro-benefits li span {
  font-size: 14px;
  color: var(--text-2);
}

.pro-price-row {
  margin-bottom: 28px;
}

.pro-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--gold);
}

.price-period {
  font-size: 18px;
  color: var(--text-2);
}

.pro-fine {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   MONTHLY BADGES
   ============================================================ */
.badges {
  background: var(--bg);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px 18px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}

.badge-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245,200,66,0.25);
  transform: translateY(-4px);
}

.badge-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.badge-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  background: var(--bg-2);
  text-align: center;
  overflow: hidden;
}

.download-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.download-orb--blue {
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  top: -150px;
  left: -100px;
}

.download-orb--purple {
  width: 400px;
  height: 400px;
  background: rgba(88,86,214,0.12);
  bottom: -100px;
  right: -80px;
}

.download-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.download-inner h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.download-inner > p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 40px;
}

.download-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px;
    gap: 48px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .feature-card--large {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .battles-inner {
    flex-direction: column;
    gap: 48px;
  }

  .battles-phones {
    width: 280px;
    height: 440px;
  }

  .leaderboard-inner {
    flex-direction: column-reverse;
    gap: 48px;
    text-align: center;
  }

  .lb-tabs {
    justify-content: center;
  }

  .pro-inner {
    flex-direction: column;
    gap: 48px;
  }

  .badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .how-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--green-accent) 0%, var(--purple) 100%);
    margin: 0;
  }

  .stats-inner {
    gap: 12px;
  }

  .stat-item {
    padding: 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
  }

  .phone-mockup {
    width: 210px;
  }

  .battles-phone--back {
    width: 180px;
  }

  .battles-phone--front {
    width: 180px;
  }
}
