/* FitSync marketing site — dark, premium, matches the app's language. */

:root {
  --bg: #000000;
  --card: #1a1a1a;
  --card-2: #202022;
  --text: #ffffff;
  --muted: #a0a0a8;
  --accent: #33c78d;      /* app accent green */
  --accent-2: #2ab07c;
  --radius: 20px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--accent); font-size: 20px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(51, 199, 141, 0.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 520px; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn { font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 14px; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #04140d; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid rgba(255,255,255,0.08); }
.reassure { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* Phone mock */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 280px; background: #0c0c0c; border-radius: 40px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
}
.phone-notch { width: 120px; height: 26px; background: #000; border-radius: 0 0 16px 16px; margin: 0 auto 8px; }
.phone-screen { background: #000; border-radius: 30px; padding: 20px 16px; }
.p-title { font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: space-between; }
.p-chip { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(51,199,141,0.15); padding: 4px 10px; border-radius: 999px; }
.p-hero { background: var(--card); border-radius: 16px; padding: 16px; margin: 16px 0; }
.p-hero-label { color: var(--muted); font-size: 13px; }
.p-hero-num { font-size: 28px; font-weight: 800; margin: 2px 0; }
.p-hero-sub { color: var(--muted); font-size: 12px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-cell { background: var(--card); border-radius: 14px; padding: 14px; font-size: 22px; font-weight: 800; position: relative; }
.p-cell small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.p-cell .dot { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 6px; }
.dot.orange { background: #f5a623; } .dot.red { background: #ff5a5f; }
.dot.pink { background: #ff7eb3; } .dot.cyan { background: #40c4ce; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: #0a0a0a; }
.section h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; text-align: center; }
.section-lede { color: var(--muted); font-size: 18px; text-align: center; margin: 12px auto 0; max-width: 560px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); padding: 28px; }
.feature-ico { font-size: 34px; }
.feature h3 { font-size: 20px; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(51,199,141,0.15); color: var(--accent);
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.copyright { color: #666; font-size: 13px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: #c8c8d0; font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 24px; }
.legal a { color: var(--accent); }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); font-weight: 500; }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 40px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { margin-top: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
