/* ============================================================
   GymQuest Landing Page — Styles
   Dark gaming aesthetic matching the app
   ============================================================ */

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

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f23;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-muted: rgba(240, 240, 245, 0.4);
  --indigo: #6366f1;
  --pink: #ec4899;
  --purple: #a855f7;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15), rgba(236,72,153,0.15));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

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

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

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

/* ─── Gradient text ─────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--indigo);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}
.btn-white {
  background: white;
  color: var(--bg-primary);
}
.btn-white:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

/* ─── Nav ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.nav-logo img { border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-free {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone {
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.1);
  position: relative;
  z-index: 2;
}
.hero-screenshot { width: 100%; display: block; }
.hero-avatars { position: absolute; inset: 0; z-index: 1; }
.floating-avatar {
  position: absolute;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
}
.avatar-1 { width: 120px; top: -20px; left: -60px; animation-delay: 0s; }
.avatar-2 { width: 100px; bottom: 40px; right: -50px; animation-delay: -2s; }
.avatar-3 { width: 90px; top: 40%; left: -80px; animation-delay: -4s; }

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

/* ─── Features ──────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Screenshots ───────────────────────────────────── */
.screenshots {
  padding: 120px 0;
}
.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
  text-align: center;
}
.screenshot-item img {
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
}
.screenshot-label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── Classes ───────────────────────────────────────── */
.classes {
  padding: 120px 0;
  background: var(--bg-secondary);
}
.classes-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  width: 180px;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.class-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
}
.class-card img {
  width: 120px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}
.class-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.class-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Free / Pricing ────────────────────────────────── */
.pricing {
  padding: 120px 0;
}
.free-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

/* ─── Download CTA ──────────────────────────────────── */
.download {
  padding: 120px 0;
  background: var(--bg-secondary);
}
.download-card {
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}
.download-card h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.download-card p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Footer ────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.footer-brand img { border-radius: 6px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-visual { margin-top: 40px; }
  .hero-phone { width: 220px; }
  .avatar-1 { width: 80px; left: -20px; }
  .avatar-2 { width: 70px; right: -10px; }
  .avatar-3 { width: 60px; left: -30px; }

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

  .classes-grid {
    gap: 12px;
  }
  .class-card {
    width: 140px;
    padding: 20px 16px;
  }
  .class-card img { width: 80px; height: 120px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card-premium { transform: none; }

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