/* ===== Variables ===== */
:root {
  --color-bg: #0d1117;
  --color-surface: #161b22;
  --color-card: #21262d;
  --color-primary: #3fb950;
  --color-primary-light: #56d364;
  --color-accent: #f0883e;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1140px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
}
main { width: 100%; overflow-x: hidden; min-width: 0; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--color-primary); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav a:hover { color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2ea043 100%);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(63, 185, 80, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(63, 185, 80, 0.45);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(63, 185, 80, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(240, 136, 62, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(63, 185, 80, 0.06) 0%, transparent 50%);
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 { width: 400px; height: 400px; background: var(--color-primary); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--color-accent); bottom: 20%; left: -80px; }
.shape-3 { width: 200px; height: 200px; background: var(--color-primary-light); bottom: -50px; right: 20%; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(63, 185, 80, 0.2);
  color: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.title-line { display: block; }
.title-line.accent { color: var(--color-primary); }

.hero-content { min-width: 0; }
.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-desc strong { color: var(--color-text); }

.hero-cta { margin-bottom: 16px; }

.hero-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 12px 0 0;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual { min-width: 0; }
.phone-mockup {
  width: 280px;
  max-width: 100%;
  height: 560px;
  background: var(--color-surface);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    var(--shadow),
    0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1f26 0%, #0d1117 100%);
  border-radius: 28px;
  overflow: hidden;
  padding: 32px 20px 24px;
}

.app-preview { height: 100%; min-width: 0; overflow: hidden; }

.app-header {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}

.app-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.6;
}

.app-calories {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.app-calories small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.app-bar {
  height: 8px;
  background: var(--color-card);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 28px;
}

.app-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 100px;
  transition: width 0.6s ease;
}

.app-meals .meal {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.app-meals .meal span:last-child { color: var(--color-primary); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== Section: How ===== */
.how {
  padding: 100px 0;
  position: relative;
  width: 100%;
  min-width: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 56px;
  color: var(--color-text);
  min-width: 0;
  overflow-wrap: break-word;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  min-width: 0;
}
.step { min-width: 0; }

.step {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 185, 80, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), #2ea043);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Section: Bonus ===== */
.bonus {
  padding: 100px 0;
  width: 100%;
  min-width: 0;
}

.bonus-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--color-card) 0%, var(--color-surface) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  border: 1px solid rgba(63, 185, 80, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 0;
  overflow: hidden;
}
.bonus-content { min-width: 0; }

.bonus-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.bonus-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--color-text);
  line-height: 1.3;
}

.bonus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.bonus-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.bonus-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.gift-icon {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(63, 185, 80, 0.2));
}

/* ===== Section: Download ===== */
.download {
  padding: 100px 0 120px;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.download-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin: 0 0 40px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.store-btn-google {
  min-width: 260px;
}

.store-buttons { min-width: 0; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  min-width: 200px;
  max-width: 100%;
}

.store-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-btn small {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.store-btn strong { font-size: 1.1rem; }

.download-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .bonus-card { grid-template-columns: 1fr; text-align: center; }
  .bonus-content .btn { margin: 0 auto; }
  .bonus-list li { text-align: left; }

  .how { padding: 60px 0; }
  .bonus { padding: 60px 0; }
  .download { padding: 60px 0 80px; }
  .section-title { margin-bottom: 36px; font-size: clamp(1.75rem, 4vw, 2.25rem); }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav.open { transform: translateX(0); }

  .nav a {
    font-size: 1rem;
    padding: 12px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .burger { display: flex; z-index: 101; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); margin-bottom: 20px; }
  .hero-desc { font-size: 1rem; margin-bottom: 28px; }
  .hero-badge { font-size: 0.8rem; padding: 6px 14px; margin-bottom: 20px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 48px; }

  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 28px;
    padding: 10px;
  }

  .phone-screen {
    padding: 24px 14px 20px;
    border-radius: 22px;
  }

  .app-header { margin-bottom: 24px; }
  .app-calories { font-size: 1.4rem; margin-bottom: 2px; }
  .app-bar { margin-bottom: 20px; }
  .app-meals .meal { padding: 10px 0; font-size: 0.85rem; }

  .hero-scroll { bottom: 20px; font-size: 0.75rem; }

  .step {
    padding: 28px 24px;
  }

  .step-num { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 20px; }
  .step h3 { font-size: 1.1rem; }
  .step p { font-size: 0.9rem; }

  .bonus-card { padding: 32px 24px; gap: 28px; }
  .bonus-content h2 { font-size: clamp(1.5rem, 5vw, 1.75rem); margin-bottom: 20px; }
  .bonus-list { margin-bottom: 24px; }
  .bonus-list li { font-size: 0.95rem; margin-bottom: 10px; }
  .gift-icon { width: 96px; height: 96px; }

  .download-desc { font-size: 1rem; margin-bottom: 28px; }
  .store-buttons { margin-bottom: 20px; width: 100%; }
  .store-btn-google { min-width: 0; }
  .store-btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 18px 20px;
    min-height: 56px;
    font-size: 1.05rem;
  }
  .store-btn strong { font-size: 1.15rem; }
  .download-note { font-size: 0.85rem; padding: 0 8px; max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header { padding: 12px 0; }
  .logo { font-size: 1.1rem; }

  .hero { padding: 88px 0 48px; }
  .hero-inner { gap: 28px; }
  .hero-title { font-size: 1.85rem; }
  .hero-scroll { display: none; }

  .phone-mockup {
    width: 180px;
    height: 360px;
    border-radius: 24px;
    padding: 8px;
  }

  .phone-screen {
    padding: 20px 12px 16px;
    border-radius: 18px;
  }

  .app-calories { font-size: 1.2rem; }
  .app-header .dot { width: 6px; height: 6px; }
  .app-meals .meal { font-size: 0.8rem; padding: 8px 0; }

  .how { padding: 48px 0; }
  .section-title { margin-bottom: 28px; font-size: 1.5rem; }
  .steps { gap: 16px; }
  .step { padding: 24px 20px; }

  .bonus { padding: 48px 0; }
  .bonus-card { padding: 24px 20px; }
  .bonus-content .btn { width: 100%; max-width: 100%; }
  .gift-icon { width: 72px; height: 72px; }

  .download { padding: 48px 0 64px; }
  .download-desc { margin-bottom: 24px; }
  .store-btn { width: 100%; min-width: 0; padding: 16px 16px; }

  .footer { padding: 24px 0; }
  .footer p { font-size: 0.85rem; line-height: 1.5; }
}
