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

:root {
  --bg: #0A0A0F;
  --bg-elevated: #111118;
  --primary: #00B894;
  --secondary: #FDCB6E;
  --danger: #E24B4A;
  --text: #E8E6E3;
  --text-secondary: #888;
  --border: rgba(255,255,255,0.06);
  --card-bg: rgba(255,255,255,0.03);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xl: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #00d4a8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ── Typography helpers ── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #55efc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-danger {
  background: linear-gradient(135deg, var(--danger), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section headers ── */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.logo-icon { font-size: 24px; }
.logo-accent { color: var(--primary); }

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

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

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

.nav-cta {
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
  animation: glowFloat 8s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--danger);
  bottom: -100px;
  left: -200px;
  animation: glowFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, -30px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0, 184, 148, 0.1);
  border: 1px solid rgba(0, 184, 148, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--danger) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 4s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.hero-stat-suffix {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Phone mockup */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--bg-elevated);
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.phone-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 12px;
}

.phone-hero-icon { font-size: 48px; }

.phone-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.phone-hero-sub {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.phone-scan-btn {
  background: var(--primary);
  color: var(--bg);
  padding: 12px 32px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

.phone-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  justify-content: space-around;
}

.phone-stat {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-stat strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 20px;
  border-top: 1px solid var(--border);
}

.phone-tab { font-size: 18px; opacity: 0.4; }
.phone-tab-active { opacity: 1; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 56px; }
}

/* ── Social Proof ── */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof-text {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.social-proof-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sp-icon { font-size: 20px; }

/* ── Features ── */
.features {
  padding: 120px 0;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.feature-card-lg {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon-primary { background: rgba(0,184,148,0.12); }
.feature-icon-secondary { background: rgba(253,203,110,0.12); }
.feature-icon-danger { background: rgba(226,75,74,0.12); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Scan animation inside feature card */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-animation {
  position: relative;
  width: 100%;
  padding: 40px 20px;
  background: rgba(0,184,148,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(0,184,148,0.1);
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 2px); }
}

.scan-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.scan-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,184,148,0.1);
  border: 1px solid rgba(0,184,148,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  animation: tagAppear 0.5s ease-out both;
  animation-delay: calc(var(--delay) * 0.3s);
}

@keyframes tagAppear {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── How It Works ── */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-elevated);
}

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

.step { margin-bottom: 32px; }

.step-number {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  margin-bottom: -20px;
  position: relative;
  z-index: 0;
}

.step-content {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-phone {
  flex-shrink: 0;
  width: 200px;
  height: 380px;
  border-radius: 28px;
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 8px;
  overflow: hidden;
}

.step-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-screen-1 {
  background: linear-gradient(135deg, #1a1a25 0%, #0d0d15 100%);
}

/* Camera viewfinder */
.camera-viewfinder {
  width: 140px;
  height: 140px;
  position: relative;
}

.viewfinder-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
}

.viewfinder-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.viewfinder-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.viewfinder-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.viewfinder-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

.viewfinder-text {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-screen-2 {
  background: var(--bg);
  padding: 12px;
}

.recipe-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.recipe-mini {
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.recipe-mini-faded { opacity: 0.5; }

.recipe-mini-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,184,148,0.12);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.recipe-mini-badge-gold {
  color: var(--secondary);
  background: rgba(253,203,110,0.12);
}

.recipe-mini-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.recipe-mini-meta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.step-screen-3 {
  background: var(--bg);
  padding: 16px;
}

.duel-preview { text-align: center; }

.duel-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.duel-player { text-align: center; }

.duel-avatar {
  font-size: 32px;
  margin-bottom: 4px;
}

.duel-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.duel-vs-badge {
  font-size: 14px;
  font-weight: 900;
  color: var(--danger);
  background: rgba(226,75,74,0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duel-timer {
  font-size: 22px;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 4px;
}

.duel-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.step-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.step-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  justify-content: center;
  margin: -16px 0;
  opacity: 0.5;
}

.step-connector svg {
  width: 160px;
  height: 60px;
}

/* ── Duels Section ── */
.duels-section {
  padding: 120px 0;
}

.duel-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.duel-flow-step {
  text-align: center;
  padding: 20px;
  min-width: 120px;
}

.duel-flow-icon { font-size: 28px; margin-bottom: 8px; }
.duel-flow-label { font-size: 13px; font-weight: 700; color: var(--text); }
.duel-flow-time { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.duel-flow-arrow { font-size: 20px; color: var(--text-secondary); opacity: 0.3; }

.duel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.duel-highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all 0.4s;
}

.duel-highlight-card:hover {
  border-color: rgba(226,75,74,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(226,75,74,0.1);
}

.dhc-icon { font-size: 32px; margin-bottom: 16px; }

.duel-highlight-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.duel-highlight-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Gamification ── */
.gamification {
  padding: 120px 0;
  background: var(--bg-elevated);
}

.gamification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.gamification-info .section-title {
  text-align: left;
}

.gamification-info .section-subtitle {
  text-align: left;
  margin-bottom: 32px;
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.score-row-highlight {
  background: rgba(0,184,148,0.06);
  border-color: rgba(0,184,148,0.15);
}

.score-action {
  font-size: 14px;
  font-weight: 500;
}

.score-points {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Leaderboard card */
.leaderboard-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lb-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

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

.lb-rank {
  width: 24px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.lb-row-gold .lb-rank { color: #FFD700; }
.lb-row-silver .lb-rank { color: #C0C0C0; }
.lb-row-bronze .lb-rank { color: #CD7F32; }

.lb-avatar { font-size: 22px; }
.lb-name { flex: 1; font-weight: 600; font-size: 14px; }

.lb-score {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.lb-row-you {
  background: rgba(0,184,148,0.06);
}

.lb-row-you .lb-name { color: var(--primary); }
.lb-row-you .lb-score { color: var(--text-secondary); }

/* ── Download / CTA ── */
.download {
  padding: 120px 0;
}

.download-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,184,148,0.08), rgba(226,75,74,0.08));
}

.download-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.08;
  top: -200px;
  right: -100px;
}

.download-content {
  position: relative;
  padding: 64px;
  text-align: center;
}

.download-content h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
}

.download-content > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto 32px;
}

.waitlist-input-group {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
}

.waitlist-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 8px 12px;
  font-family: var(--font);
}

.waitlist-input::placeholder {
  color: var(--text-secondary);
}

.waitlist-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.download-stores {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  color: var(--text);
}

.store-badge:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.store-badge small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
}

.store-badge strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

/* ── Footer ── */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Legal Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease-out;
}

.modal-overlay.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.modal-body li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}

.modal-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

.modal-body strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal-header {
    padding: 20px 24px;
  }

  .modal-body {
    padding: 24px;
  }
}

/* ── Scroll Reveal Animations ── */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hidden.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-hidden.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-hidden.reveal-delay-3 { transition-delay: 0.45s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

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

  .hero-subtitle { margin-left: auto; margin-right: auto; }

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

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

  .hero-phone { order: -1; }

  .phone-frame { width: 240px; height: 500px; }

  .feature-card-lg {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .feature-card-lg {
    grid-column: span 1;
  }

  .duel-cards {
    grid-template-columns: 1fr;
  }

  .duel-flow-arrow { display: none; }

  .duel-flow {
    gap: 4px;
  }

  .duel-flow-step {
    padding: 12px;
    min-width: 0;
    flex: 1;
  }

  .download-content {
    padding: 40px 24px;
  }

  .waitlist-input-group {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-scroll-indicator {
    display: none;
  }
}
