/* ========== DESIGN TOKENS (WHITE + YELLOW #FFC600 + BLACK) ========== */
:root {
  /* Palette */
  --yellow:      #FFC600;
  --yellow-glow: rgba(255, 198, 0, 0.4);
  --yellow-soft: rgba(255, 198, 0, 0.15);
  --black:       #050505;
  --bg:          #FFFFFF;
  --bg-subtle:   #FAFAFA;
  --bg-card:     #F4F4F5;
  --text:        #050505;
  --text-dim:    #333333;
  --text-muted:  #71717A;
  --border:      rgba(0, 0, 0, 0.08);
  --border-dim:  rgba(0, 0, 0, 0.04);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 12px 24px rgba(0,0,0,0.06);
  --shadow-lg:   0 20px 40px rgba(0,0,0,0.08);

  /* Typography */
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Layout */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;

  /* Transitions */
  --t-fast:      0.2s ease;
  --t-med:       0.4s ease;
  --t-slow:      0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Scroll height */
  --scroll-h:    650vh;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  cursor: none;
  font-style: normal !important;
}
em, i, cite { font-style: normal !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }

@media (hover: none), (pointer: coarse) {
  body, button, a { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ========== CURSOR ========== */
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(*:hover) #cursor-ring.on-hover {
  width: 56px; height: 56px;
  border-color: var(--yellow);
  box-shadow: 0 0 20px var(--yellow-glow);
}

/* ========== FILM GRAIN ========== */
#film-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ========== PARTICLES ========== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0.3;
}

/* ========== LOADER ========== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, filter 0.8s ease;
}
#loader.hide {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
.loader-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.loader-bar-wrap {
  width: 140px;
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 0.1s;
}
.loader-pct {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#navbar:not(.scrolled) .nav-links a {
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  box-shadow: var(--shadow-sm);
}
#navbar.scrolled .nav-links a {
  color: #050505;
  text-shadow: none;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--yellow) !important; }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-btn-android {
  padding: 9px 18px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
  box-shadow: 0 4px 12px var(--yellow-glow);
}
.nav-btn-android:hover {
  background: #e6b200;
  transform: translateY(-1px);
}
.nav-btn-iphone {
  padding: 9px 18px;
  background: #000;
  color: #FFF;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.nav-btn-iphone:hover {
  background: #222;
  transform: translateY(-1px);
}
.nav-btn-android svg, .nav-btn-iphone svg {
  flex-shrink: 0;
  display: block;
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}
#nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
#navbar:not(.scrolled) #nav-toggle span {
  background: #FFFFFF;
}

/* ========== HERO / SCROLL ANIMATION SECTION ========== */
#scroll-section {
  position: relative;
  height: var(--scroll-h);
}
#canvas-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #050505;
}
#main-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.canvas-grad-left {
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 65%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.canvas-grad-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
#color-tint {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
}

/* ========== CHAPTER MARKERS ========== */
#chapter-markers {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: opacity 0.4s ease;
}
#chapter-markers.hide-markers {
  opacity: 0;
  pointer-events: none;
}
.chapter-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  margin: 4px 0;
}
.chapter-dot.active {
  background: var(--yellow);
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--yellow-glow);
}
.chapter-dot .dot-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--yellow);
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
  font-family: var(--font-head);
}
.chapter-dot:hover .dot-label { opacity: 1; }
.chapter-line {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.chapter-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--yellow);
  transition: height 0.1s;
}

/* ========== CLEAN HERO OVERLAYS ========== */
.scroll-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 80px 6% 100px;
}
.scroll-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-overlay-inner {
  max-width: 580px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transform: translateX(-20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
}
.scroll-overlay.visible .scroll-overlay-inner {
  transform: translateX(0);
}

/* Hero Typography */
.hero-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero-label::before {
  display: none !important;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
}
.hero-headline strong {
  color: var(--yellow);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  color: #E4E4E7;
  line-height: 1.6;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.btn-primary {
  padding: 14px 28px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: none;
  box-shadow: 0 8px 24px var(--yellow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #e6b200;
  box-shadow: 0 12px 30px var(--yellow-glow);
}
.btn-secondary {
  padding: 14px 28px;
  background: #000000;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  cursor: none;
}
.btn-secondary:hover {
  border-color: var(--yellow);
  background: #111111;
  transform: translateY(-2px);
}
.btn-primary svg, .btn-secondary svg {
  flex-shrink: 0;
  display: block;
}

/* Minimal Floating Stat Bar */
.hero-stats {
  position: fixed;
  bottom: 28px;
  left: 6%;
  right: 6%;
  z-index: 10;
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-stats.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-stats.hide-stats {
  opacity: 0;
  pointer-events: none;
}
.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.stat-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Overlay section titles */
.ov-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.ov-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.ov-body {
  font-size: 15px;
  color: #E4E4E7;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ========== BELOW-FOLD SECTIONS ========== */
.section {
  padding: 100px 6%;
  position: relative;
  background: var(--bg);
  z-index: 20;
}
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  max-width: 780px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 16px;
}

/* ========== PROVOCATIVE PROBLEM SECTION ========== */
#problem-section {
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}
.problem-card {
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--border);
}
.problem-card.bad {
  background: #FFF5F5;
  border-color: rgba(229, 57, 53, 0.2);
}
.problem-card.good {
  background: #FFFCF0;
  border-color: rgba(255, 198, 0, 0.5);
  box-shadow: var(--shadow-sm);
}
.card-badge {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.bad .card-badge { color: #E53935; }
.good .card-badge { color: #000; background: var(--yellow); padding: 3px 10px; border-radius: 4px; }

.card-headline {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========== SECTION: DATA / NUMBERS ========== */
#data-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.number-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.number-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.number-val {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  display: block;
}
.number-unit {
  color: var(--yellow);
}
.number-lbl {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 14px;
  line-height: 1.5;
}

/* ========== SECTION: FEATURES ========== */
#features {
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: var(--radius);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  border: 1px solid rgba(255,198,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #000;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ========== SECTION: GAMIFICATION ========== */
#gamification {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: center;
  padding: 100px 6%;
}
.phone-mockup {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  width: 100%;
}
.phone-frame {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  padding: 22px;
  box-shadow: var(--shadow-lg), 0 0 0 12px #F4F4F5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-screen-bar {
  height: 28px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.phone-cam-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.phone-cam-dot.main { background: #94A3B8; width: 10px; height: 10px; }

.xp-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
}
.xp-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 8px;
}
.xp-bar-bg {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.xp-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.xp-nums {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.level-badge {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.level-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}
.level-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.level-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.streak-row {
  display: flex;
  gap: 6px;
}
.streak-day {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.3s;
}
.streak-day.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.gami-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.gami-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Sleek 2-column Ranks Grid */
.ranks-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.rank-item:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.rank-item.active-level {
  border: 2px solid var(--yellow);
  background: #FFFDF0;
  box-shadow: 0 4px 16px var(--yellow-glow);
}
.rank-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.active-level .rank-badge-icon {
  background: var(--yellow);
  border-color: var(--yellow);
}
.rank-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.rank-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.rank-pts {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========== SECTION: TIMELINE ========== */
#timeline {
  background: var(--bg);
  padding: 100px 6%;
  text-align: center;
}
.timeline-track {
  position: relative;
  max-width: 680px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  min-height: 80px;
}
.timeline-item:nth-child(odd) .timeline-text { text-align: right; grid-column: 1; }
.timeline-item:nth-child(even) .timeline-text { text-align: left; grid-column: 3; }
.timeline-item:nth-child(odd) .timeline-empty { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }
.timeline-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--yellow-glow);
  z-index: 2;
}
.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, var(--yellow) 0%, rgba(255,198,0,0.1) 100%);
}
.timeline-date {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.timeline-close {
  margin-top: 50px;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ========== HOW IT WORKS ========== */
#how-it-works {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 6%;
}
.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  position: relative;
}
.steps-track::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow) 0%, #000 100%);
  z-index: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  transition: all 0.4s;
}
.step-item:hover .step-num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
  box-shadow: 0 0 24px var(--yellow-glow);
}
.step-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========== FAQ ========== */
#faq {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 100px 6%;
}
.faq-list {
  max-width: 760px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  border-color: var(--yellow);
  box-shadow: var(--shadow-md);
}
.faq-q {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}
.faq-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.4s;
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 700;
}
.faq-item.open .faq-toggle {
  background: var(--yellow);
  transform: rotate(45deg);
  color: #000;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ========== CTA FINAL ========== */
#cta-final {
  position: relative;
  min-height: 75vh;
  padding: 100px 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.cta-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn-android {
  padding: 16px 36px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px var(--yellow-glow);
  transition: all 0.3s;
}
.cta-btn-android:hover {
  transform: translateY(-2px);
  background: #e6b200;
  box-shadow: 0 15px 40px var(--yellow-glow);
}
.cta-btn-iphone {
  padding: 16px 36px;
  background: #000;
  color: #FFF;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}
.cta-btn-iphone:hover {
  transform: translateY(-2px);
  background: #222;
}
.cta-btn-android svg, .cta-btn-iphone svg {
  flex-shrink: 0;
  display: block;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 50px 6%;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.footer-social a:hover {
  border-color: var(--yellow);
  color: var(--text);
  transform: translateY(-2px);
}
.footer-copy {
  width: 100%;
  padding-top: 30px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.mytho-credit {
  font-weight: 700;
  color: var(--text);
}

/* ========== ANIMATE ON SCROLL UTILITY ========== */
.fade-up {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.appear { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.appear { opacity: 1; }

/* ========== SCROLL HINT ========== */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.5s;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(180deg, transparent, #FFF);
  animation: scroll-line 1.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-hint-text {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFF;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root { --scroll-h: 600vh; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  #problem-section .problem-grid { grid-template-columns: 1fr; }
  #gamification { grid-template-columns: 1fr; gap: 40px; }
  .ranks-list { grid-template-columns: repeat(2, 1fr); }
  .phone-mockup { max-width: 280px; }
}
@media (max-width: 768px) {
  #navbar { padding: 12px 18px; }
  #navbar.scrolled { padding: 10px 18px; }
  .nav-links, .nav-cta-group { display: none; }
  #nav-toggle { display: flex; }
  
  /* Reduced Mobile Section Spacing (Compact & Tight) */
  .section { padding: 42px 5% !important; text-align: center; }
  .section-label, .section-title, .section-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .numbers-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; margin-top: 24px !important; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; text-align: left; margin-top: 28px !important; }
  .feature-card { text-align: left; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 18px !important; }
  .problem-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px !important; }
  .problem-card { text-align: left; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 20px !important; }
  .steps-track { grid-template-columns: 1fr; gap: 16px; text-align: left; margin-top: 28px !important; }
  .step-card { align-items: flex-start; text-align: left; padding: 22px 18px !important; }
  .steps-track::before { display: none; }
  #chapter-markers { display: none; }

  /* Mobile Hero: Clean Video Background */
  .canvas-grad-left, .canvas-grad-bottom {
    background: none !important;
  }

  /* Overlay Positioning: #overlay-0 at TOP (Clean Sky Matrix Area), Others at Bottom */
  .scroll-overlay {
    padding: 70px 4% 80px !important;
    text-align: center !important;
  }
  #overlay-0 {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 75px !important;
    padding-bottom: 0 !important;
  }
  #overlay-1, #overlay-2, #overlay-3, #overlay-4, #overlay-5 {
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 80px !important;
  }
  .scroll-overlay-inner {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-label { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 8px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.9); }
  .hero-headline { font-size: clamp(21px, 5vw, 28px); line-height: 1.18; margin-bottom: 10px; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 18px rgba(0,0,0,0.9); }
  .hero-sub { font-size: 13px; margin-bottom: 16px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.9); }
  .ov-title { text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 18px rgba(0,0,0,0.9) !important; }
  .ov-body { text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.9) !important; }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary {
    flex: 1;
    padding: 11px 12px;
    font-size: 12px;
    border-radius: 50px;
    justify-content: center;
    gap: 6px;
  }
  .hero-buttons svg { width: 14px; height: 14px; }

  /* Mobile Stat Cards - Compact 2x2 Grid at bottom */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    bottom: 8px;
    left: 4%;
    right: 4%;
    text-align: center;
  }
  .stat-card {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
  }
  .stat-val { font-size: 14px; }
  .stat-lbl { font-size: 8px; margin-top: 0px; letter-spacing: 0.04em; }

  /* Gamification Section */
  #gamification { padding: 42px 5% !important; gap: 32px; grid-template-columns: 1fr; text-align: center; }
  .gami-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ranks-list { grid-template-columns: 1fr; width: 100%; gap: 8px; }
  .rank-item { justify-content: space-between; text-align: left; padding: 12px 16px; }

  /* FAQ Mobile Alignment */
  .faq-item {
    border-radius: 14px !important;
  }
  .faq-q {
    padding: 16px 18px !important;
    text-align: left !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .faq-q span {
    text-align: left !important;
    flex: 1 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .faq-toggle {
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .faq-a {
    padding: 0 18px !important;
    text-align: left !important;
  }
  .faq-item.open .faq-a {
    padding: 0 18px 18px !important;
  }
  .cta-headline { font-size: clamp(26px, 6.5vw, 42px); text-align: center; }
  .cta-btn-group { flex-direction: column; width: 100%; align-items: center; }
  .cta-btn-android, .cta-btn-iphone { width: 100%; justify-content: center; }

  /* Hide Custom Cursor on Mobile */
  html, body, *, *::before, *::after {
    cursor: auto !important;
  }
  #cursor-dot, #cursor-ring {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }

  /* Strict Footer Centering on Mobile */
  footer {
    text-align: center !important;
    padding: 36px 5% !important;
  }
  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .footer-inner a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .footer-logo-img {
    margin: 0 auto !important;
    display: block !important;
  }
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .footer-links li {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .footer-links a {
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
  }
  .footer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .footer-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
  }
  .footer-copy span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
}

/* Specific Overlay Alignments per user request */
#overlay-0 {
  align-items: flex-start;
  padding-top: 100px;
}
#overlay-1, #overlay-2, #overlay-3, #overlay-4 {
  align-items: flex-end;
  padding-bottom: 120px;
}
#overlay-5 {
  align-items: center;
  justify-content: center;
}

/* ========== MOBILE NAV (WHITE BACKGROUND) ========== */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-nav a {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #050505;
  transition: color 0.3s;
}
#mobile-nav a:hover { color: var(--yellow); }
#mobile-nav .nav-btn-android {
  background: var(--yellow);
  color: #000000 !important;
}
#mobile-nav .nav-btn-iphone {
  background: #000000;
  color: #FFFFFF !important;
  border: none;
}
#mobile-nav .nav-btn-iphone svg {
  fill: #FFFFFF !important;
}
