/* ============================================================
   NutriLens Landing Page — Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  --white: #ffffff;
  --black: #000000;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-glow: 0 0 60px rgba(22, 163, 74, .15);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22, 163, 74, .3);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  box-shadow: 0 4px 16px rgba(22, 163, 74, .4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-200);
}
.btn--outline:hover {
  background: var(--green-50);
  border-color: var(--green-400);
}

.btn--ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn--ghost:hover {
  background: var(--gray-200);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
  padding: 14px 24px;
}

/* ---------- Section Helpers ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}

.navbar--scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
}

.navbar__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
}
.navbar__link:hover {
  color: var(--green-600);
}

.navbar__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(22, 163, 74, .25);
  transition: all .25s;
}
.navbar__cta-btn:hover {
  box-shadow: 0 4px 16px rgba(22, 163, 74, .35);
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s;
}
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(175deg, var(--white) 0%, var(--green-50) 100%);
}

.hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
  pointer-events: none;
}
.hero__bg-glow--1 {
  width: 600px;
  height: 600px;
  background: var(--green-200);
  top: -200px;
  right: -150px;
}
.hero__bg-glow--2 {
  width: 400px;
  height: 400px;
  background: var(--green-100);
  bottom: -100px;
  left: -100px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 220px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.feature-card--highlight {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  border: none;
  color: var(--white);
}
.feature-card--highlight:hover {
  border-color: transparent;
}
.feature-card--highlight .feature-card__title {
  color: var(--white);
}
.feature-card--highlight .feature-card__desc {
  color: rgba(255,255,255,.85);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon--green {
  background: rgba(255,255,255,.2);
  color: var(--white);
}
.feature-card__icon--orange {
  background: #fff7ed;
  color: #f97316;
}
.feature-card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}
.feature-card__icon--purple {
  background: #faf5ff;
  color: #8b5cf6;
}
.feature-card__icon--rose {
  background: #fff1f2;
  color: #f43f5e;
}
.feature-card__icon--teal {
  background: #f0fdfa;
  color: #14b8a6;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-600);
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
}

.step__connector {
  display: flex;
  align-items: center;
  padding-top: 100px;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 100px 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  position: relative;
  transition: all .3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--popular {
  border-color: var(--green-400);
  box-shadow: var(--shadow-glow);
}
.pricing-card--popular:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 20px;
}

.pricing-card__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--gray-500);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.pricing-card__amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -.02em;
}

.pricing-card__period {
  font-size: 16px;
  color: var(--gray-400);
  font-weight: 500;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.pricing-card__features li svg {
  flex-shrink: 0;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  padding: 100px 0;
}

.waitlist__card {
  position: relative;
  background: var(--gray-900);
  border-radius: var(--radius-2xl);
  padding: 72px 40px;
  overflow: hidden;
}

.waitlist__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.waitlist__glow--1 {
  width: 400px;
  height: 400px;
  background: var(--green-600);
  opacity: .15;
  top: -120px;
  right: -80px;
}
.waitlist__glow--2 {
  width: 300px;
  height: 300px;
  background: var(--green-400);
  opacity: .1;
  bottom: -80px;
  left: -60px;
}

.waitlist__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.waitlist__subtitle {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 36px;
  line-height: 1.65;
}

.waitlist__form {
  width: 100%;
}

.waitlist__form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.waitlist__input-group {
  flex: 1;
  min-width: 160px;
}

.waitlist__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  color: var(--white);
  outline: none;
  transition: all .25s;
}
.waitlist__input::placeholder {
  color: var(--gray-500);
}
.waitlist__input:focus {
  border-color: var(--green-400);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
}

.waitlist__submit {
  padding: 14px 28px;
  flex-shrink: 0;
  position: relative;
}

.waitlist__submit-spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.waitlist__submit.loading .waitlist__submit-text {
  opacity: 0;
}
.waitlist__submit.loading .waitlist__submit-spinner {
  display: block;
  position: absolute;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.waitlist__message {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  min-height: 22px;
}
.waitlist__message--success {
  color: var(--green-400);
}
.waitlist__message--error {
  color: #f87171;
}

.waitlist__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray-500);
}

.waitlist__privacy svg {
  flex-shrink: 0;
  color: var(--gray-500);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__brand .footer__logo {
  display: inline-flex;
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  max-width: 280px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color .2s;
}
.footer__links a:hover {
  color: var(--green-600);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  transition: all .25s;
}

.footer__socials a:hover {
  background: var(--green-50);
  color: var(--green-600);
  transform: translateY(-2px);
}

.footer__bottom p {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step__connector {
    transform: rotate(90deg);
    padding-top: 0;
    margin: -8px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
  }
  .navbar__links.active {
    opacity: 1;
    visibility: visible;
  }

  .navbar__link {
    font-size: 18px;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .waitlist__card {
    padding: 48px 24px;
  }

  .waitlist__form-row {
    flex-direction: column;
  }

  .waitlist__submit {
    width: 100%;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .section-title {
    font-size: 26px;
  }

}

/* ============================================================
   ANIMATION - Fade in on scroll
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
