/* FitnessData Platform — Landing Site Styles v2 */
:root {
  --bg: #0B0F19;
  --bg-elevated: #111827;
  --bg-card: #0F172A;
  --border: #1E293B;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --cyan: #06B6D4;
  --violet: #8B5CF6;
  --gradient: linear-gradient(135deg, var(--cyan), var(--violet));
  --radius: 16px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,25,0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(30,41,59,0.6);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; color: var(--text); }
.logo img { width: 38px; height: 38px; border-radius: var(--radius-sm); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 14px; transition: color .2s; position: relative; }
.nav a::after { content:""; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gradient); transition:width .3s; border-radius:2px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a:hover::after { width:100%; }
.nav .btn-sm { margin-left: 8px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px; gap: 16px; }
  .nav.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg, rgba(255,255,255,0.15), transparent); opacity:0; transition:opacity .3s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); text-decoration: none; }
.btn:hover::before { opacity:1; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 32px rgba(6,182,212,0.28); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(6,182,212,0.4); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.1); }
.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--border); }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* ===== Hero ===== */
.hero { padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 500px at 20% -10%, rgba(139,92,246,0.22), transparent),
    radial-gradient(600px 400px at 80% 10%, rgba(6,182,212,0.18), transparent),
    radial-gradient(500px 400px at 50% 110%, rgba(139,92,246,0.12), transparent);
  animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.06); opacity: 1; }
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none;
}
.hero-orb.orb-1 { width: 400px; height: 400px; background: var(--violet); top: -100px; right: 10%; animation: floatOrb 10s ease-in-out infinite; }
.hero-orb.orb-2 { width: 300px; height: 300px; background: var(--cyan); bottom: -40px; left: 5%; animation: floatOrb 12s ease-in-out infinite 2s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px,-30px); }
}
.hero h1 { font-size: clamp(38px, 5.5vw, 68px); font-weight: 900; line-height: 1.05; letter-spacing: -1.6px; margin-bottom: 22px; position: relative; z-index: 2; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 660px; margin: 0 auto 40px; line-height: 1.6; position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-badges { margin-top: 48px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; position: relative; z-index: 2; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: rgba(17,24,39,0.7); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); backdrop-filter: blur(6px); }

/* ===== Section headers ===== */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 72px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 18px; line-height: 1.55; }

/* ===== Features grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background:var(--gradient); opacity:0; transition:opacity .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(6,182,212,0.35); box-shadow: 0 16px 48px rgba(0,0,0,0.45); }
.feature-card:hover::before { opacity:1; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--bg-elevated); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; border: 1px solid var(--border); transition: transform .3s; }
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 28px; position: relative; }
.step-number { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin: 0 auto 18px; color: #fff; box-shadow: 0 8px 24px rgba(6,182,212,0.25); transition: transform .3s; }
.step:hover .step-number { transform: scale(1.1); }
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ===== Screenshots ===== */
.screenshots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .screenshots-grid { grid-template-columns: 1fr; } }
.shot-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; transition: transform .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.shot-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-color: rgba(6,182,212,0.3); }
.shot-item img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 9/19; object-fit: cover; object-position: top; }
.shot-label { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; font-weight: 500; }

/* Video section */
.video-wrap { max-width: 720px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.video-wrap video { width: 100%; display: block; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px;
  position: relative; transition: transform .3s, border-color .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border: 2px solid transparent; background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--gradient) border-box; }
.badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  padding: 5px 14px; border-radius: 999px;
}
.pricing-card h3 { font-size: 15px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 48px; font-weight: 900; letter-spacing: -1px; margin: 8px 0 4px; }
.pricing-card .price span { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.pricing-card .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing-card li { padding: 7px 0; font-size: 14px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }
.pricing-card li strong { color: var(--text); font-weight: 600; }
.pricing-card li::before { content: "✓"; color: var(--cyan); font-weight: 800; flex-shrink:0; }
.pricing-card li.x::before { content: "—"; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: rgba(6,182,212,0.25); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-weight: 700; font-size: 15px; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--text-muted); transition: transform .3s; flex-shrink:0; }
.faq-item.open .faq-q::after { content: "−"; color: var(--cyan); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 24px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ===== CTA section ===== */
.cta-section { text-align: center; position: relative; }
.cta-inner {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 72px 24px;
  position: relative; overflow: hidden;
}
.cta-inner::before { content:""; position:absolute; top:-50%; left:-20%; width:140%; height:140%; background:radial-gradient(circle at center, rgba(6,182,212,0.08), transparent 60%); pointer-events:none; }
.cta-section h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 14px; position:relative; }
.cta-section p { color: var(--text-muted); font-size: 18px; max-width: 580px; margin: 0 auto 30px; position:relative; }

/* ===== Footer ===== */
.footer { border-top: 1px solid rgba(30,41,59,0.6); padding: 52px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--text-muted); font-size: 13px; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track { display: inline-flex; gap: 48px; animation: marqueeScroll 28s linear infinite; padding-right: 48px; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

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

/* ===== Legal pages ===== */
.legal-page { padding: 56px 0 90px; }
.legal-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 36px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.legal-page p { color: var(--text-muted); margin-bottom: 12px; }
.legal-page ul { margin: 8px 0 16px 20px; color: var(--text-muted); }
.legal-page li { margin-bottom: 6px; }

/* ===== Store badges ===== */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-elevated); border: 1px solid var(--border); padding: 10px 18px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14px; }
.store-badge:hover { border-color: var(--cyan); text-decoration: none; }
