@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #13131e;
  --surface-elevated: #1a1a2a;
  --surface-light: #1e1e2e;
  --border: #25253a;
  --border-hover: #3a3a55;
  --text: #ffffff;
  --text-secondary: #a1a1b5;
  --text-muted: #6b7280;
  --primary: #ff6b6b;
  --primary-end: #ff8e53;
  --gradient-start: #ff6b7e;
  --gradient-end: #ff6b6b;
  --success: #6bcb77;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 15, .78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(42, 42, 58, .4);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
}

.nav-logo-img {
  width: 36px; height: 36px; border-radius: 10px;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  display: flex; background: var(--surface); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--text-muted); border: none; cursor: pointer;
  transition: all .2s;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--primary-end));
  color: #fff;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Coral glow */
.hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255, 107, 107, .14) 0%, rgba(255, 142, 83, .06) 35%, transparent 65%);
  pointer-events: none;
}

/* Secondary ambient glow (adds warmth) */
.hero::after {
  content: '';
  position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 600px;
  background: radial-gradient(ellipse, rgba(255, 107, 126, .05) 0%, transparent 60%);
  pointer-events: none;
}

/* Squat rack background illustration */
.hero-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: 800px; height: 940px;
  background: url('squat-rack.svg') center/contain no-repeat;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 10%, transparent 60%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 10%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 680px; z-index: 1; padding: 0 24px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .18);
  font-size: 13px; font-weight: 600; color: var(--primary);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.05;
  margin-bottom: 20px; letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gradient-start), var(--primary-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 40px;
  line-height: 1.7;
}

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

.badge-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: all .25s;
}
.badge-link:hover {
  border-color: var(--primary); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, .15);
}

.badge-icon { font-size: 28px; }
.badge-text { text-align: left; }
.badge-text small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; }
.badge-text strong { display: block; font-size: 16px; font-weight: 700; }

.hero-support-link {
  display: inline-block; margin-top: 24px;
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: color .2s;
}
.hero-support-link:hover { color: var(--primary); }

/* ── Features ────────────────────────────────────── */
.features {
  padding: 100px 24px;
  max-width: 1100px; margin: 0 auto;
  position: relative;
}

.features::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.features-heading {
  text-align: center; margin-bottom: 64px;
}
.features-heading h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em;
}
.features-heading p {
  font-size: 16px; color: var(--text-secondary); max-width: 480px; margin: 0 auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.feature-card:hover {
  border-color: rgba(255, 107, 107, .25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 107, 107, .04);
}

.feature-card:hover::before { opacity: 1; }

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

.feature-icon.ai { background: rgba(255, 107, 126, .12); }
.feature-icon.nutrition { background: rgba(107, 203, 119, .12); }
.feature-icon.form { background: rgba(139, 92, 246, .12); }
.feature-icon.analytics { background: rgba(6, 182, 212, .12); }
.feature-icon.calendar { background: rgba(249, 115, 22, .12); }
.feature-icon.gamification { background: rgba(255, 217, 61, .12); }

.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.65;
}

/* ── Screenshots (inside hero) ────────────────────── */
.screenshots-track {
  position: relative;
  width: 100vw;
  margin-top: 56px;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshots-scroll img {
  flex: 0 0 auto;
  width: 280px;
  height: auto;
  border-radius: 20px;
  scroll-snap-align: center;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0.85;
}

.screenshots-scroll img:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* ── CTA Section ─────────────────────────────────── */
.cta-section {
  padding: 80px 24px 120px;
  text-align: center;
}

.cta-card {
  max-width: 640px; margin: 0 auto;
  padding: 56px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 107, 126, .06), rgba(255, 142, 83, .04));
  border: 1px solid rgba(255, 107, 107, .12);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 107, .06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em;
  position: relative;
}
.cta-card p {
  font-size: 16px; color: var(--text-secondary); margin-bottom: 32px;
  position: relative;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1100px; margin: 0 auto;
}

.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Legal page ──────────────────────────────────── */
.legal-page {
  max-width: 720px; margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em;
}

.legal-page .last-updated {
  font-size: 14px; color: var(--text-muted); margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 17px; font-weight: 600; margin-top: 28px; margin-bottom: 8px;
}

.legal-page p, .legal-page li {
  font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 12px;
}

.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }

.legal-page a {
  color: var(--primary); text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .hero { padding: 100px 0 40px; }
  .hero p { font-size: 16px; }
  .hero-bg { width: 400px; height: 480px; opacity: 0.04; }
  .download-badges { flex-direction: column; align-items: center; }
  .badge-link { width: 100%; max-width: 280px; justify-content: center; }
  .features { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-track { margin-top: 36px; }
  .screenshots-scroll { gap: 16px; padding: 0 20px; }
  .screenshots-scroll img { width: 220px; border-radius: 16px; }
  .cta-card { padding: 40px 24px; }
  footer { flex-direction: column; align-items: center; text-align: center; }
}
