/* FitnessData Platform — Landing Site Styles */
: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: 14px;
  --radius-sm: 10px;
  --max-w: 1160px;
  --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;
}
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.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.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; }
.nav a:hover { color: var(--text); text-decoration: none; }
.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;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); text-decoration: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 24px rgba(6,182,212,0.25); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(6,182,212,0.35); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--cyan); }
.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: 100px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(600px 400px at 70% 10%, rgba(139,92,246,0.18), transparent),
              radial-gradient(500px 300px at 20% 80%, rgba(6,182,212,0.14), transparent);
}
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 20px; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 40px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-elevated); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); }

/* Section headers */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* 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: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.35); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-elevated); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; border: 1px solid var(--border); }
.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.55; }

/* 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: 24px; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin: 0 auto 16px; color: #fff; }
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* 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: 32px;
  position: relative; transition: transform .2s, border-color .2s;
}
.pricing-card:hover { transform: translateY(-2px); }
.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: 44px; 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; }
.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; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-weight: 700; font-size: 15px; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 22px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* CTA section */
.cta-section { text-align: center; position: relative; }
.cta-section .container { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 64px 24px; }
.cta-section h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 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); }
.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(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Terms / Privacy pages */
.legal-page { padding: 48px 0 80px; }
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 28px 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; }

/* Download 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; }
