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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #22c55e33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #022c22;
  font-size: 18px;
}

.logo-circle.small {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  border: none;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #16a34a;
  color: white;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #0f172a;
}

.btn-outline:hover {
  background: rgba(148, 163, 184, 0.08);
}

.btn-ghost {
  background: transparent;
  color: #0f172a;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.15);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

/* HERO */

.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #166534;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

.hero-sub {
  margin: 0 0 20px;
  color: #475569;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #64748b;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

.hero-metrics strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SECTIONS */

.section {
  padding: 40px 0;
}

.section-alt {
  background: #e5e7eb33;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* FEATURES – currently unused */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* HOW IT WORKS */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0f172a;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* DOWNLOAD / WAITLIST */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.waitlist-form {
  margin-top: 12px;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 14px;
  outline: none;
}

.waitlist-row input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.3);
}

.waitlist-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

.waitlist-thanks {
  margin-top: 8px;
  font-size: 13px;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.store-badges {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 16px;
  background: #f9fafb;
}

.coming-soon {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: white;
}

.icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.store-label {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.store-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.tiny-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #9ca3af;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 0;
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-muted {
  color: #64748b;
}

.dot {
  color: #cbd5f5;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  text-decoration: none;
  color: #64748b;
}

.footer-link:hover {
  color: #0f172a;
}

/* CLEAN CALORIE CARD (HERO RIGHT) */

.clean-card {
  width: 340px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.clean-card-image {
  height: 200px;
  background-image: url("https://images.unsplash.com/photo-1604908177522-0404d8f0a4c9?w=900");
  background-size: cover;
  background-position: center;
}

.clean-card-info {
  padding: 18px 20px 22px;
}

.meal-name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.clean-kcal {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.clean-kcal strong {
  font-size: 32px;
  color: #0f172a;
}

.clean-kcal span {
  font-size: 14px;
  color: #64748b;
}

.clean-macros {
  display: flex;
  justify-content: space-between;
}

.clean-macros div {
  text-align: center;
}

.clean-macros strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.clean-macros span {
  font-size: 12px;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
    margin-bottom: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    gap: 12px;
  }

  .features-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .clean-card {
    width: 100%;
  }
}