/* ============================================
   DUELLY — Landing Page Styles v2
   Animated dark theme · Multi-color accents
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d0d1a;
  --bg-light: #111126;
  --bg-card: #16162e;
  --bg-card-hover: #1c1c3a;
  --orange: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.35);
  --orange-dark: #ea580c;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --pink: #ec4899;
  --white: #ffffff;
  --gray: #a1a1aa;
  --gray-light: #d4d4d8;
  --gray-dark: #52525b;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1320px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100vw;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-dark);
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

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

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, var(--purple) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Animated Background --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(249, 115, 22, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  animation: bg-pulse 12s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Floating Emojis --- */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: emoji-drift linear infinite;
  will-change: transform;
}

@keyframes emoji-drift {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg);
  }
  5% { opacity: 0.15; }
  95% { opacity: 0.08; }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg);
  }
}

/* --- Pulse Glow Effect --- */
.pulse-glow {
  position: relative;
}

.pulse-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  animation: pulse-glow-anim 2.5s ease-in-out infinite;
}

@keyframes pulse-glow-anim {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

/* --- Glow Card --- */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0), rgba(124, 58, 237, 0));
  z-index: -1;
  transition: background 0.4s ease;
}

.glow-card:hover::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(124, 58, 237, 0.15));
}

.glow-card:hover {
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.1), 0 0 80px rgba(124, 58, 237, 0.05);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 8px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--orange-glow);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--orange);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  margin-bottom: 16px;
}

.title-line {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* --- Tagline Animation --- */
.tagline {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tagline-word {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tagline-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.tagline-word:nth-child(1) { color: var(--orange); }
.tagline-word:nth-child(2) { color: var(--purple); }
.tagline-word:nth-child(3) { color: var(--cyan); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  padding: 16px 32px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--orange-glow);
  color: var(--white);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.88rem;
}

.meta-icon {
  font-size: 1rem;
}

/* =========================================
   PHONE MOCKUPS — Three phones hero
   ========================================= */

.hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
  perspective: 1200px;
}

@media (max-width: 1350px) {
  .phone-left, .phone-right {
    display: none;
  }
}

.phone-wrapper {
  position: relative;
  transition: transform 0.4s ease;
}

.phone-left {
  transform: rotateY(12deg) translateX(20px) scale(0.85);
  z-index: 1;
}

.phone-center {
  z-index: 3;
  transform: scale(1);
}

.phone-right {
  transform: rotateY(-12deg) translateX(-20px) scale(0.85);
  z-index: 1;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* --- Phone Frame --- */
.phone-frame {
  position: relative;
  width: 220px;
  height: 460px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 0;
  border: 2.5px solid #2d2d50;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.phone-frame-hero {
  width: 260px;
  height: 540px;
  border-color: #3a3a60;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px var(--orange-glow),
    0 30px 80px rgba(0, 0, 0, 0.6);
  animation: phone-float 6s ease-in-out infinite;
}

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

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0d0d1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-frame-hero .phone-notch {
  width: 100px;
  height: 26px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0d1a 0%, #12122a 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 34px;
}

.phone-frame-hero .phone-screen {
  border-radius: 34px;
}

/* --- Mock Status Bar --- */
.mock-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.mock-icons {
  font-size: 0.5rem;
  letter-spacing: 2px;
}

/* ======================
   Center Phone: Feed
   ====================== */
.feed-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.feed-tab {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.feed-tab.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.feed-video-area {
  flex: 1;
  position: relative;
  margin: 6px 8px;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a2e;
}

.feed-video-bg {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%),
    url('../assets/breakdance.jpg') center/cover no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}

.feed-challenge-overlay {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 2;
}

.feed-challenge-tag {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--white);
}

.feed-action-rail {
  position: absolute;
  right: 8px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail-icon {
  font-size: 1.1rem;
}

.rail-item span {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--white);
}

.feed-creator-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 50px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 2;
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  flex-shrink: 0;
  object-fit: cover;
}

.creator-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--white);
}

.creator-caption {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.feed-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 12px;
  background: rgba(13, 13, 26, 0.95);
  flex-shrink: 0;
}

.bnav-item {
  font-size: 0.9rem;
  opacity: 0.5;
}

.bnav-active {
  opacity: 1;
}

.bnav-create {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  opacity: 1;
  color: var(--white);
}

/* ======================
   Left Phone: Challenge
   ====================== */
.mock-back-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-light);
}

.mock-arrow {
  font-size: 1rem;
  color: var(--orange);
}

.challenge-hero-area {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
  margin: 0 10px;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.challenge-category-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 6px;
}

.challenge-title-big {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.challenge-meta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.5rem;
  color: var(--gray);
}

.challenge-entries {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 10px;
  border-radius: 10px;
}

.entry-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.rank-2 { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #000; }
.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }

.entry-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  flex-shrink: 0;
}

.entry-thumb.thumb-2 { background: linear-gradient(135deg, var(--purple), var(--cyan)); }
.entry-thumb.thumb-3 { background: linear-gradient(135deg, var(--cyan), #22d3ee); }

.entry-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.entry-user {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--white);
}

.entry-votes {
  font-size: 0.5rem;
  color: var(--gray);
}

.challenge-cta-mock {
  margin: 8px 10px 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ======================
   Right Phone: Leaderboard
   ====================== */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 14px 6px;
}

.lb-trophy {
  font-size: 1.1rem;
}

.lb-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
}

.lb-period-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 10px 8px;
}

.lb-tab {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--gray);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.lb-tab.active {
  background: var(--orange);
  color: var(--white);
}

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 4px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.podium-crown {
  font-size: 0.7rem;
}

.podium-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.av-1 { background: url('../assets/face1.jpg') center/cover; border-color: #fbbf24; }
.av-2 { background: url('../assets/face2.jpg') center/cover; border-color: #9ca3af; }
.av-3 { background: url('../assets/face3.jpg') center/cover; border-color: #d97706; }

.podium-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--gray-light);
}

.podium-medal {
  font-size: 0.7rem;
}

.podium-bar {
  width: 44px;
  border-radius: 6px 6px 0 0;
}

.bar-1 { height: 48px; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.bar-2 { height: 36px; background: linear-gradient(180deg, #9ca3af, #6b7280); }
.bar-3 { height: 28px; background: linear-gradient(180deg, #d97706, #92400e); }

.lb-list {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 8px;
  border-radius: 8px;
}

.lb-pos {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gray);
  width: 14px;
  text-align: center;
}

.lb-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.av-4 { background: url('../assets/face4.jpg') center/cover; }
.av-5 { background: url('../assets/face5.jpg') center/cover; }
.av-6 { background: url('../assets/face6.jpg') center/cover; }

.lb-name {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--gray-light);
  flex: 1;
}

.lb-pts {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--orange);
}

/* --- Ticker Section --- */
.ticker-section {
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg), var(--bg-light), var(--bg));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0;
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ticker-track {
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  padding: 0 20px;
}

.ticker-sep {
  color: var(--orange);
  font-size: 0.8rem;
  padding: 0 8px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.step-card {
  text-align: center;
  padding: 28px 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.2);
  background: var(--bg-card-hover);
}

.step-number-wrap {
  margin-bottom: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.step-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.4));
}

/* Connecting arrows between steps */
.steps-grid {
  position: relative;
}
.step-card {
  position: relative;
}
.step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--orange);
  z-index: 2;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.step-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  padding: 24px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.2);
  background: var(--bg-card-hover);
}

.feature-icon-wrap {
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(124, 58, 237, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.feature-icon {
  font-size: 1.8rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Compare Section --- */
.compare-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.compare-grid .compare-card {
  flex: 1;
}

.compare-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
}

.compare-us-card {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.08);
}

.compare-header {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-them {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray);
}

.compare-us {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(124, 58, 237, 0.1));
  color: var(--white);
}

.compare-us img {
  border-radius: 6px;
}

.compare-list {
  list-style: none;
  padding: 16px 24px 24px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.compare-x {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.testimonial-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.15);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--gray-light);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ta-1 { background: url('../assets/avatar-travel.jpg') center/cover; }
.ta-2 { background: url('../assets/avatar-dance.jpg') center/cover; }
.ta-3 { background: url('../assets/face-maya.jpg') center/cover; }

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.testimonial-handle {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.15);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 140px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(124, 58, 237, 0.1) 40%, transparent 70%);
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--gray);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-available {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-info {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-info p {
  color: var(--gray-dark);
  font-size: 0.8rem;
  line-height: 1.8;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 0.12s);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--orange);
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--white);
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--gray-light);
}

.legal-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--orange);
}

.legal-content strong {
  color: var(--gray-light);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

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

  .tagline {
    justify-content: center;
  }

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

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

  .hero-phones {
    order: -1;
    margin-top: 70px;
    margin-bottom: 24px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero-phones {
    transform: scale(0.8);
    margin: 70px 0 32px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .nav-cta {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

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

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

  .hero {
    padding: 0 0 40px;
    min-height: auto;
  }

  .hero-phones {
    transform: scale(0.65);
    margin: 70px 0 36px 0;
  }

  .phone-left, .phone-right {
    display: none;
  }

  .phone-center {
    transform: scale(1.1);
  }

  .cta-section {
    padding: 80px 0;
  }
}

@media (max-width: 420px) {
  .hero-phones {
    transform: scale(0.55);
    margin: 70px 0 40px 0;
  }
}

/* Real Phone Frame with Screenshot */
.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid #2a2a4a;
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.3), 0 25px 80px rgba(0,0,0,0.5);
  animation: phoneFloat 6s ease-in-out infinite;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0d0d1a;
  border-radius: 20px;
  z-index: 2;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
}

@media (max-width: 640px) {
  .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 32px;
    padding: 10px;
  }
  .phone-screenshot {
    border-radius: 22px;
  }
}

/* Tighter mobile hero */
@media (max-width: 1024px) {
  .hero { padding: 0 0 30px; }
  .hero-content { gap: 24px; }
  .hero-title { font-size: 2rem; }
}


/* Hero elements visible immediately — no scroll-to-reveal */
.hero .title-line,
.hero .hero-subtitle,
.hero .hero-actions,
.hero .hero-meta,
.hero .hero-phones,
.hero .tagline {
  opacity: 1 !important;
  transform: none !important;
}

/* Compact sections — fit on one screen */
/* === COMPACT SECTIONS === */
.section-compact { padding: 40px 0; }

.compact-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.compact-sub {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* Steps — Create → Compete → Rise */
.steps-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.step-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 42px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(124, 58, 237, 0.08));
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-inline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-inline:hover::before { opacity: 1; }

.step-inline:hover {
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.25), 0 0 24px rgba(249, 115, 22, 0.1);
}

.step-inline-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.5));
}

.step-inline-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.step-arrow {
  font-size: 2.2rem;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(249, 115, 22, 0.6);
  animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* Features — clean 3x2 grid with icons */
.features-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}

.feature-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.feature-tile:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

.feature-tile-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(124, 58, 237, 0.12));
  border-radius: 10px;
}

.feature-tile-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .features-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps-inline { gap: 6px; flex-wrap: nowrap; }
  .step-inline { padding: 14px 16px; min-width: 0; flex: 1; }
  .step-inline-icon { font-size: 1.8rem; }
  .step-inline-label { font-size: 0.8rem; }
  .step-arrow { font-size: 1.2rem; min-width: 16px; }
  .features-grid-compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-tile { padding: 12px 14px; }
}


/* Rotating phone backgrounds */
.feed-bg-1 {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%), url('../assets/breakdance.jpg') center/cover no-repeat;
}
.feed-bg-2 {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%), url('../assets/rotate-gym.jpg') center/cover no-repeat;
  opacity: 0;
}
.feed-bg-3 {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%), url('../assets/challenge1.jpg') center/cover no-repeat;
  opacity: 0;
}
.feed-video-bg {
  transition: opacity 1.2s ease-in-out;
}

/* Store badges — side by side iOS + Android */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.store-badge:hover {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.store-icon { flex-shrink: 0; }

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-badge-lg {
  padding: 14px 28px;
}

.store-badge-lg .store-name {
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .store-badge { padding: 10px 16px; gap: 8px; }
  .store-name { font-size: 0.95rem; }
  .store-badge-lg { padding: 12px 20px; }
  .store-badge-lg .store-name { font-size: 1.05rem; }
}

/* Download popup dropdown */
.nav .container { position: relative; }

.download-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px rgba(249, 115, 22, 0.1);
}

.download-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-arrow {
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: rgba(20, 20, 40, 0.95);
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: rotate(45deg);
}

.popup-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.popup-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.popup-badge:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateX(4px);
}

/* Close popup on click outside */
.nav-cta { position: relative; border: none; cursor: pointer; }

/* Prevent double-tap zoom on iOS */
* { touch-action: manipulation; }
