/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FDFAF6;
  --surface: #FFFFFF;
  --fg: #1B1B18;
  --fg-muted: #6B6960;
  --accent: #E8633A;
  --accent-dark: #C44F27;
  --green: #1B3D2F;
  --green-light: #2D5C47;
  --green-surface: #EEF4F1;
  --border: #E8E4DC;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
}

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

::selection { background: var(--accent); color: #fff; }

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: sticky;
  top: 0;
  background: rgba(253,250,246,0.88);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-color: var(--border); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 48px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Food orb */
.food-orb {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.3;
  animation: orb-pulse 3s ease-in-out infinite;
}
.orb-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.orb-ring-2 { width: 120px; height: 120px; animation-delay: 0.5s; }
.orb-ring-3 { width: 160px; height: 160px; animation-delay: 1s; }
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.6; }
}
.orb-core {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1;
}
.orb-icon { font-size: 2rem; }

/* Scan card */
.scan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(27,61,47,0.08);
  position: relative;
}
.scan-camera {
  width: 100%;
  height: 100px;
  background: var(--green-surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.cam-frame {
  width: 60px;
  height: 60px;
  border: 2px solid var(--green);
  border-radius: 8px;
  opacity: 0.6;
}
.cam-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
.cam-dot-1 { top: 12px; right: 12px; animation-delay: 0s; }
.cam-dot-2 { bottom: 12px; left: 12px; animation-delay: 0.75s; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.scan-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.scan-result { margin-bottom: 20px; }
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.result-item:last-child { border-bottom: none; }
.result-name { color: var(--fg); font-weight: 500; }
.result-cal { color: var(--fg-muted); font-size: 0.8rem; }
.scan-macros { display: flex; gap: 12px; }
.macro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
}
.macro-bar {
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  width: var(--pct);
  opacity: 0.7;
}
.macro-bar-carb { background: var(--accent); }
.macro-bar-fat { background: #8B7355; }
.macro span { color: var(--fg-muted); }
.macro strong { color: var(--fg); font-weight: 600; }

/* AI question */
.ai-question {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.q-bubble {
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  max-width: 200px;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== HOW ===== */
.how { background: var(--green); padding: 100px 48px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  line-height: 1.1;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.step p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.step-connector {
  display: flex;
  align-items: center;
  padding: 0 24px;
  padding-top: 32px;
}
.step-connector::after {
  content: '';
  display: block;
  width: 48px;
  height: 1.5px;
  background: rgba(255,255,255,0.2);
}

/* ===== FEATURES ===== */
.features { padding: 100px 48px; background: var(--bg); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 0;
}
.feature {
  padding: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27,61,47,0.07);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* ===== MANIFESTO ===== */
.manifesto { background: var(--green-surface); padding: 100px 48px; }
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.manifesto-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.manifesto-text p { font-size: 1rem; color: var(--fg-muted); line-height: 1.75; margin-bottom: 16px; }
.manifesto-stat {
  text-align: center;
  padding: 48px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.stat-label { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* ===== CLOSING ===== */
.closing { padding: 100px 48px; background: var(--bg); text-align: center; }
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.closing p { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.75; margin-bottom: 16px; }

/* ===== FOOTER ===== */
.footer { background: var(--green); padding: 48px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.footer-links { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 60px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-connector { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; }
  .how, .features, .manifesto, .closing { padding: 60px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .scan-card { padding: 20px; }
  .scan-camera { height: 80px; }
}