/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0A0A0F;
  --surface: #141420;
  --card: #1E1E2E;
  --card-border: rgba(255, 255, 255, 0.06);
  --green: #22C55E;
  --green-light: #4ADE80;
  --green-glow: rgba(34, 197, 94, 0.15);
  --green-subtle: rgba(34, 197, 94, 0.08);
  --text: #F5F5F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --protein: #3B82F6;
  --carbs: #F59E0B;
  --fat: #EF4444;
  --water: #06B6D4;
  --radius-card: 16px;
  --radius-btn: 28px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, 'SF Pro Rounded', 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(30, 30, 46, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav-badge img {
  height: 32px;
  width: auto;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--green);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 4px 30px rgba(34, 197, 94, 0.3);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #a6a6a6;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #FBBF24;
}

.hero-rating-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-rating-text strong {
  color: var(--text);
}

/* Phone mockup */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: #000;
  border-radius: 40px;
  border: 3px solid #2A2A3A;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(34, 197, 94, 0.1);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
}

.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--protein); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--carbs); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--water); }

.feature-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Step connector line */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 65px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.05) 100%);
}

/* ===== NUTRITION PREVIEW ===== */
.nutrition-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
}

.macro-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.macro-ring-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.macro-ring-circle.protein {
  background: rgba(59, 130, 246, 0.15);
  border: 3px solid var(--protein);
  color: var(--protein);
}

.macro-ring-circle.carbs {
  background: rgba(245, 158, 11, 0.15);
  border: 3px solid var(--carbs);
  color: var(--carbs);
}

.macro-ring-circle.fat {
  background: rgba(239, 68, 68, 0.15);
  border: 3px solid var(--fat);
  color: var(--fat);
}

.macro-ring-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  padding: 32px;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
}

.testimonial-detail {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== PRICING ===== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 60px auto 0;
}

.pricing-card {
  padding: 36px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--green);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-period {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-cta.primary {
  background: var(--green);
  color: #000;
}

.pricing-cta.primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.pricing-cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pricing-cta.secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.final-cta-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.final-cta .section-title {
  max-width: 600px;
  margin: 0 auto 20px;
}

.final-cta .section-subtitle {
  margin: 0 auto 36px;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-header .last-updated {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--green);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content .highlight-box {
  background: rgba(34, 197, 94, 0.05);
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 24px 0;
}

.legal-content .highlight-box p {
  margin-bottom: 0;
}

.legal-content .warning-box {
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid var(--fat);
  padding: 16px 20px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 24px 0;
}

.legal-content .warning-box p {
  margin-bottom: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.legal-content table th,
.legal-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.legal-content table th {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-content table td {
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-phone-wrapper {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 450px;
    border-radius: 32px;
  }

  .phone-mockup::before {
    width: 100px;
    height: 24px;
  }

  .phone-screen {
    border-radius: 29px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
}

.sticky-cta a {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .sticky-cta {
    display: block;
  }
}
