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

:root {
  --red:       #ff3c3c;
  --orange:    #ff7b00;
  --gold:      #ffd600;
  --dark:      #09090f;
  --dark2:     #111120;
  --dark3:     #181830;
  --glass:     rgba(255,255,255,0.05);
  --glass-b:   rgba(255,255,255,0.10);
  --border:    rgba(255,255,255,0.08);
  --text:      #f0f0ff;
  --muted:     #9090b0;
  --radius:    20px;
  --radius-lg: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==============================
   ANIMATED BG ORBS
============================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #ff3c3c, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 20s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff7b00, transparent 70%);
  bottom: -150px; right: -100px;
  animation-duration: 24s;
  animation-delay: -8s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5c00e6, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 16s;
  animation-delay: -4s;
  opacity: 0.2;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ==============================
   FLOATING SPORT ICONS
============================== */
.floating-icons {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fi {
  position: absolute;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  opacity: 0.12;
  animation: floatUp linear infinite;
  user-select: none;
}

.fi-1 { left: 5%;  animation-duration: 14s; animation-delay: 0s;   font-size: 2rem; }
.fi-2 { left: 15%; animation-duration: 18s; animation-delay: -3s;  font-size: 1.6rem; }
.fi-3 { left: 28%; animation-duration: 22s; animation-delay: -7s;  }
.fi-4 { left: 45%; animation-duration: 16s; animation-delay: -1s;  }
.fi-5 { left: 62%; animation-duration: 20s; animation-delay: -5s;  }
.fi-6 { left: 75%; animation-duration: 12s; animation-delay: -9s;  }
.fi-7 { left: 87%; animation-duration: 19s; animation-delay: -2s;  }
.fi-8 { left: 93%; animation-duration: 15s; animation-delay: -6s;  }

@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.12; }
  100% { transform: translateY(-15vh) rotate(360deg); opacity: 0; }
}

/* ==============================
   LAYOUT
============================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   BADGE
============================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: #ff6868;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #ff3c3c;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff3c3c;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #ff3c3c; transform: scale(1); }
  50%       { box-shadow: 0 0 14px #ff3c3c; transform: scale(1.3); }
}

/* ==============================
   HERO
============================== */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.logo-wrap {
  position: relative;
  margin-bottom: 36px;
}

.app-logo {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 8px 32px rgba(255, 60, 60, 0.4),
    0 24px 64px rgba(0,0,0,0.5);
  animation: logo-float 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255,60,60,0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
  animation: logo-float 5s ease-in-out infinite;
}

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

/* TITLE */
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.gradient-text {
  background: linear-gradient(135deg, var(--red), var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

/* STATS */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 40px;
  margin-bottom: 44px;
  backdrop-filter: blur(12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff3c3c, #ff7b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

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

/* DOWNLOAD BUTTON */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  color: #fff;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow:
    0 4px 24px rgba(255,60,60,0.5),
    0 0 0 0 rgba(255,60,60,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
  animation: btn-glow 2.5s ease-in-out infinite;
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  border-radius: inherit;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(255,60,60,0.5), 0 0 0 0 rgba(255,100,50,0.3); }
  50%       { box-shadow: 0 8px 40px rgba(255,80,20,0.7), 0 0 0 14px rgba(255,100,50,0); }
}

.btn-download:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 12px 48px rgba(255,60,60,0.65);
  animation: none;
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-sub {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.btn-arrow {
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.7;
}

.btn-sm {
  font-size: 0.95rem;
  padding: 16px 32px;
}

.install-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.install-note strong {
  color: #ffd600;
}

/* ==============================
   FEATURES
============================== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  backdrop-filter: blur(10px);
  animation: fade-in-up 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--glass-b);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,100,50,0.2);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255,100,50,0.4));
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==============================
   INSTALL STEPS
============================== */
.install-steps {
  padding: 80px 0;
}

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

.step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(255,60,60,0.4);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 26px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  opacity: 0.5;
}

/* ==============================
   CTA CARD
============================== */
.cta-section {
  padding: 40px 0 80px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(255,60,60,0.12), rgba(255,123,0,0.10));
  border: 1px solid rgba(255,100,50,0.25);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255,60,60,0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255,123,0,0.15), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ==============================
   FOOTER
============================== */
.footer {
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer p + p {
  margin-top: 6px;
  opacity: 0.7;
}

/* ==============================
   DOWNLOAD PROGRESS TOAST
============================== */
#download-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--dark3);
  border: 1px solid rgba(255,100,50,0.35);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}

#download-toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.toast-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toast-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 700px) {
  .stats-row {
    padding: 16px 20px;
    gap: 0;
  }

  .stat {
    padding: 0 14px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .step-connector {
    display: none;
  }

  .steps-row {
    gap: 28px;
  }

  .step {
    min-width: 140px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .btn-download {
    padding: 16px 24px;
    gap: 12px;
  }

  #download-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: unset;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 70px 0 60px;
  }

  .app-logo {
    width: 110px;
    height: 110px;
  }

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