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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== VARIABLES ===== */
:root {
  --green-50: #e8f5e9;
  --green-100: #c8e6c9;
  --green-400: #66bb6a;
  --green-500: #4caf50;
  --green-600: #43a047;
  --green-700: #388e3c;
  --orange-400: #ffa726;
  --orange-500: #ff9800;
  --red-500: #ef5350;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 15px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-400);
}

.btn--outline:hover {
  background: var(--green-50);
}

.nav__cta {
  background: var(--green-500);
  color: var(--white);
}

.nav__cta:hover {
  background: var(--green-600);
}

/* ===== SECTION COMMON ===== */
.section__title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--gray-900);
}

.nav__logo-icon {
  font-size: 26px;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--green-600);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.hero__input:focus {
  border-color: var(--green-400);
}

.hero__note {
  font-size: 13px;
  color: var(--gray-500);
}

/* ===== PHONE MOCKUP ===== */
.mockup-phone {
  width: 320px;
  height: 640px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  margin: 0 auto;
  position: relative;
}

.mockup-phone__content {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mockup-phone__notch {
  width: 120px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mockup-phone__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 8px;
  margin-top: 8px;
}

.mockup-phone__time {
  font-weight: 600;
  font-size: 14px;
}

.mockup-phone__dots {
  letter-spacing: 2px;
  font-size: 14px;
}

.mockup-phone__screen {
  flex: 1;
  padding: 16px 20px;
  overflow: hidden;
}

.mockup-phone__bottom {
  height: 4px;
  width: 120px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 0 auto 10px;
}

/* ===== MOCKUP HOME SCREEN ===== */
.mockup-home__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
}

.mockup-home__date {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}

.mockup-home__calorie-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.mockup-home__ring {
  width: 120px;
  height: 120px;
}

.mockup-home__ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.mockup-home__ring-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.mockup-home__ring-label {
  font-size: 10px;
  color: var(--gray-500);
}

.mockup-home__macros {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
}

.mockup-home__macro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-home__macro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-home__meals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-home__meal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 10px;
  font-size: 13px;
}

.mockup-home__meal-cal {
  font-weight: 600;
  color: var(--green-600);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.social-proof__text {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.social-proof__logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.social-proof__logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.feature-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 100px 0;
  background: var(--gray-50);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screenshot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.screenshot-card__placeholder {
  aspect-ratio: 9 / 19;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
}

.screenshot-card__label {
  font-weight: 700;
  font-size: 16px;
  color: var(--green-700);
}

.screenshot-card__file {
  font-size: 11px;
  color: var(--green-600);
  font-family: monospace;
  background: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== RECIPE PREVIEW ===== */
.recipe-preview {
  padding: 100px 0;
}

.recipe-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.recipe-card__image {
  min-height: 400px;
}

.recipe-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 8px;
}

.recipe-card__placeholder-text {
  font-family: monospace;
  font-size: 11px;
  color: var(--orange-500);
  background: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border-radius: 4px;
}

.recipe-card__placeholder-sub {
  font-size: 13px;
  color: var(--gray-600);
}

.recipe-card__info {
  padding: 40px;
}

.recipe-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.recipe-card__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.recipe-card__diet {
  font-size: 14px;
  color: var(--gray-500);
  display: block;
  margin-bottom: 20px;
}

.recipe-card__macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.recipe-card__macro {
  text-align: center;
  padding: 12px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.recipe-card__macro-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--green-600);
}

.recipe-card__macro-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
}

.recipe-card__ingredients {
  list-style: none;
  margin-bottom: 24px;
}

.recipe-card__ingredients li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.recipe-card__ingredients li:last-child {
  border-bottom: none;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--gray-50);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.05) translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-card__amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
}

.pricing-card__period {
  font-size: 16px;
  color: var(--gray-500);
}

.pricing-card__yearly {
  display: block;
  font-size: 14px;
  color: var(--green-600);
  margin-bottom: 24px;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--gray-700);
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--green-500);
  font-weight: 700;
  margin-right: 10px;
}

.pricing-card__btn {
  width: 100%;
}

/* ===== DOWNLOAD / CTA ===== */
.download {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
}

.download__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.store-badge:hover {
  background: #000;
  transform: translateY(-2px);
}

.store-badge__icon {
  font-size: 24px;
}

.store-badge__text {
  text-align: left;
  line-height: 1.3;
}

.store-badge__small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-badge__big {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.footer__tagline {
  font-size: 14px;
  margin-top: 8px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--green-400);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__legal a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--green-400);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-700);
}

.footer__bottom p {
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card--featured {
    transform: none;
  }
  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__form {
    flex-direction: column;
  }

  .mockup-phone {
    width: 260px;
    height: 520px;
  }

  .recipe-card {
    grid-template-columns: 1fr;
  }

  .recipe-card__image {
    min-height: 250px;
  }

  .recipe-card__img-placeholder {
    min-height: 250px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .nav__links {
    display: none;
  }

  .hero__title {
    font-size: 32px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .screenshots__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .mockup-phone {
    width: 220px;
    height: 440px;
    border-radius: 30px;
    padding: 8px;
  }

  .mockup-phone__content {
    border-radius: 24px;
  }

  .recipe-card__macros {
    grid-template-columns: repeat(2, 1fr);
  }

  .download__buttons {
    flex-direction: column;
    align-items: center;
  }
}
