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

:root {
  --green: #16a34a;
  --green-light: #dcfce7;
  --indigo: #4f46e5;
  --indigo-light: #ede9fe;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

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

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.nav-icon { width: 24px; height: 24px; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; cursor: pointer; border: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--bg-alt); }

/* Hero */
.hero { min-height: 80vh; display: flex; align-items: center; padding: 80px 24px; max-width: 1100px; margin: 0 auto; gap: 64px; }
.hero-inner { flex: 1; min-width: 0; }
.badge { display: inline-block; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 20px; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 480px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--text-muted); }

/* Phone mockup */
.hero-preview { flex: 0 0 280px; }
.phone-frame { background: var(--text); border-radius: 40px; padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.1); }
.phone-screen { background: #f1f5f9; border-radius: 28px; overflow: hidden; height: 520px; }
.mock-app { display: flex; flex-direction: column; height: 100%; position: relative; }
.mock-nav { display: flex; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; }
.mock-nav-item { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 4px; }
.mock-nav-item.active { color: var(--indigo); }
.mock-header { background: #fff; font-weight: 700; font-size: 20px; padding: 16px 16px 12px; }
.mock-list { flex: 1; background: #fff; margin: 8px; border-radius: 12px; overflow: hidden; }
.mock-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mock-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mock-line { height: 8px; background: #e2e8f0; border-radius: 4px; }
.mock-title { width: 70%; }
.mock-sub { width: 45%; }
.mock-weight { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: monospace; }
.mock-fab { position: absolute; bottom: 16px; right: 16px; width: 48px; height: 48px; background: var(--indigo); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 12px rgba(79,70,229,.4); }

/* Weight bar */
.weight-bar { background: var(--text); color: #fff; padding: 24px 0; }
.weight-stats { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat { text-align: center; padding: 8px 40px; }
.stat-div { width: 1px; height: 32px; background: rgba(255,255,255,.15); }
.stat-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; }
.stat-value.highlight { color: #4ade80; }

/* Features */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Platforms */
.platforms { padding: 100px 0; background: var(--bg-alt); }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.platform-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.platform-card.featured { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.platform-card svg { color: var(--text-muted); margin-bottom: 16px; }
.platform-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.featured-badge { display: inline-block; background: var(--indigo-light); color: var(--indigo); font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 100px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* Download */
.download { padding: 100px 0; text-align: center; }
.download h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.download > .container > p { color: var(--text-muted); font-size: 18px; margin-bottom: 40px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.store-btn { display: flex; align-items: center; gap: 12px; background: var(--text); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 12px; transition: opacity .15s; }
.store-btn:hover { opacity: .85; }
.store-label { font-size: 11px; color: rgba(255,255,255,.7); }
.store-name { font-size: 18px; font-weight: 700; }
.open-source { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; color: var(--text-muted); }
.open-source a { color: var(--text); font-weight: 600; text-decoration: none; }
.open-source a:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 40px 24px; min-height: auto; }
  .hero-preview { width: 100%; display: flex; justify-content: center; }
  .phone-frame { width: 240px; }
  .phone-screen { height: 440px; }
  .weight-stats { gap: 0; }
  .stat { padding: 8px 20px; }
  .stat-div { display: none; }
  .nav-links a:not(.btn) { display: none; }
}
