:root {
  --bg: #f7f6f1;
  --bg-card: #ffffff;
  --fg: #111110;
  --fg-muted: #6b6a63;
  --fg-subtle: #a8a79f;
  --accent: #c2511a;
  --accent-light: #f5e6df;
  --green: #1a7a4a;
  --green-light: #e3f2eb;
  --teal: #0e5c54;
  --teal-light: #e0f0ee;
  --teal-dark: #0a453f;
  --amber: #d98b0c;
  --amber-light: #fdf3dc;
  --border: #e5e3dc;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner { max-width: 1100px; margin: 0 auto; height: 56px; display: flex; align-items: center; }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.5px; color: var(--fg); }

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bg-shape {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(194, 81, 26, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* --- PHONE MOCKUP --- */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { position: relative; }
.phone-frame {
  width: 280px;
  background: #111110;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.phone-screen {
  background: #faf9f5;
  border-radius: 30px;
  overflow: hidden;
  padding: 20px 16px;
  min-height: 460px;
}
.mock-scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.5; }
.mock-meal { display: flex; justify-content: center; margin-bottom: 16px; }
.mock-bowl {
  width: 120px;
  height: 80px;
  background: linear-gradient(145deg, #e8c97a 0%, #d4a84a 40%, #b8843a 70%, #8b5e2a 100%);
  border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.mock-bowl::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 50%;
}
.mock-result { text-align: center; margin-bottom: 14px; padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.mock-cal { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--fg); letter-spacing: -2px; }
.mock-cal-label { font-size: 12px; color: var(--fg-subtle); margin-bottom: 10px; }
.mock-macros { display: flex; flex-direction: column; gap: 6px; }
.macro { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.macro-bar { height: 4px; border-radius: 2px; width: 60px; }
.macro-bar.protein { background: var(--teal); }
.macro-bar.carbs { background: var(--amber); }
.macro-bar.fat { background: var(--accent); }
.mock-swap { background: var(--green-light); border: 1px solid rgba(26, 122, 74, 0.2); border-radius: 14px; padding: 12px; }
.swap-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 8px; }
.swap-item { display: flex; align-items: center; gap: 10px; }
.swap-icon { font-size: 20px; }
.swap-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.swap-cal { font-size: 11px; color: var(--green); }

/* --- SECTION LABELS --- */
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- HOW --- */
.how { padding: 80px 24px; background: #fff; }
.how-header { max-width: 1100px; margin: 0 auto 60px; }
.how-header h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.8px; }
.steps { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { padding: 28px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: rgba(194, 81, 26, 0.12); letter-spacing: -2px; margin-bottom: 16px; }
.step-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

/* --- FEATURES --- */
.features { padding: 80px 24px; }
.features-header { max-width: 1100px; margin: 0 auto 50px; }
.features-header h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.8px; }
.feature-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s ease; }
.feature-card:hover { transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* --- SCAN DEMO --- */
.scan-demo { padding: 80px 24px; background: #fff; }
.scan-demo-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.scan-demo-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.scan-demo-text p { font-size: 16px; color: var(--fg-muted); line-height: 1.7; }
.scan-comparison { display: flex; flex-direction: column; gap: 16px; }
.scan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.scan-card.before { border-left: 3px solid var(--accent); }
.scan-card.after { border-left: 3px solid var(--green); }
.scan-card-header { margin-bottom: 10px; }
.scan-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding: 4px 10px; background: var(--accent-light); border-radius: 100px; }
.scan-tag.green { color: var(--green); background: var(--green-light); }
.scan-food-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.scan-stats { display: flex; flex-direction: column; gap: 8px; }
.stat-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-muted); }
.stat-row.highlight { color: var(--fg); font-weight: 600; }
.stat-val { font-weight: 600; }
.stat-diff { font-size: 12px; font-weight: 500; color: var(--accent); }
.stat-diff.green { color: var(--green); }
.scan-target { margin-top: 10px; font-size: 12px; color: var(--fg-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.scan-overshoot { font-size: 12px; color: var(--accent); font-weight: 500; }
.scan-savings { font-size: 12px; color: var(--green); font-weight: 500; }

/* --- CLOSING --- */
.closing { padding: 100px 24px; position: relative; overflow: hidden; text-align: center; }
.closing-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 81, 26, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.closing-inner { max-width: 640px; margin: 0 auto; position: relative; }
.closing h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.closing p { font-size: 18px; color: var(--fg-muted); line-height: 1.7; }

/* --- FOOTER --- */
.footer { background: #111110; color: #fff; padding: 60px 24px 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 50px; }
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 6px; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.footer-col span:not(.footer-col-label) { font-size: 14px; color: rgba(255,255,255,0.6); cursor: pointer; }
.footer-col span:not(.footer-col-label):hover { color: rgba(255,255,255,0.9); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.3); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-frame { width: 220px; }
  .phone-screen { min-height: 380px; }
  .hero { padding: 50px 20px 70px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .scan-demo-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
}

/* --- PWA INSTALL BANNER --- */
.pwa-banner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pwa-banner-icon { font-size: 22px; flex-shrink: 0; }
.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-banner-text strong { font-size: 14px; font-weight: 600; color: var(--fg); }
.pwa-banner-text span { font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 4px; }
.pwa-banner-share-icon { display: inline-block; vertical-align: middle; }
.pwa-banner-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--fg-muted);
  padding: 4px; line-height: 1;
}
