:root {
  --bg: #faf8f4;
  --bg-warm: #f3efe8;
  --bg-dark: #2c2418;
  --fg: #2c2418;
  --fg-muted: #6b5e4f;
  --accent: #e07a3a;
  --accent-light: #f4a261;
  --accent-glow: rgba(224, 122, 58, 0.15);
  --green: #4a8c5c;
  --red: #c0392b;
  --radius: 12px;
  --max-width: 1080px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

/* ---- HERO ---- */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 24px;
  color: var(--fg);
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Pantry shelf visual */
.hero-visual {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.shelf {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.shelf-item {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(44, 36, 24, 0.08);
  position: relative;
  transition: transform 0.2s;
}

.shelf-item:hover {
  transform: translateY(-4px);
}

.shelf-item.low::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.sync-pulse {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: sync-ring 3s ease-out infinite;
  pointer-events: none;
}

@keyframes sync-ring {
  0% { width: 100px; height: 100px; opacity: 0.4; }
  100% { width: 300px; height: 300px; opacity: 0; }
}

/* ---- PROBLEM ---- */
.problem {
  padding: 80px 24px;
  background: var(--bg-dark);
  color: #f3efe8;
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 40px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.problem-card {
  padding: 32px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}

.problem-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.problem-card p {
  color: rgba(243, 239, 232, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.problem-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #f3efe8;
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 24px;
  background: var(--bg);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features .section-label {
  color: var(--accent);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(44, 36, 24, 0.1);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--fg);
}

.feature-content p {
  color: var(--fg-muted);
  font-size: 0.98rem;
}

/* ---- HOW ---- */
.how {
  padding: 80px 24px;
  background: var(--bg-warm);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how .section-label {
  color: var(--accent);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 8px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--fg);
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 32px 24px;
  background: var(--bg-dark);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3efe8;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(243, 239, 232, 0.5);
}

.footer-tagline a {
  color: var(--accent-light);
  text-decoration: none;
}

.footer-tagline a:hover {
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    padding: 24px 16px;
  }

  .feature-row {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
  }

  .shelf-item {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .hero {
    padding: 72px 20px 60px;
  }

  .problem, .features, .how, .closing {
    padding: 60px 20px;
  }

  .problem-statement {
    font-size: 1.2rem;
  }
}

/* ---- HERO CTA ---- */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 0;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(224, 122, 58, 0.35);
}

.cta-btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.88rem;
  color: var(--fg-muted);
}

@media (max-width: 480px) {
  .shelf {
    gap: 10px;
  }

  .shelf-item {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
}