/* =====================================================
   SnapMeal Landing Page — Premium Dark Design System
   Colors: #0d2818 (bg), #22c55e (primary), #a7f3d0 (mint)
   Font: Plus Jakarta Sans
   ===================================================== */

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

:root {
  --bg: #080f0b;
  --bg-alt: #0d2818;
  --surface: #111a14;
  --surface-2: #162b1d;
  --surface-3: #1c3825;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-light: #4ade80;
  --mint: #a7f3d0;
  --mint-dim: rgba(167,243,208,0.1);
  --white: #ffffff;
  --gray-100: #e2e8e4;
  --gray-300: #a8b8af;
  --gray-500: #6b8078;
  --gray-700: #3d4a40;
  --border: rgba(255,255,255,0.08);
  --border-green: rgba(34,197,94,0.3);
  --glow: rgba(34,197,94,0.15);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.3);
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.6);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--gray-100);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }

/* ---- SELECTION ---- */
::selection { background: var(--green); color: #003915; }

/* ===================== UTILITIES ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; position: relative; }
.gradient-text {
  background: linear-gradient(135deg, #22c55e, #86efac, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.12);
  border: 1px solid var(--border-green);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #003915;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(34,197,94,0.4); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.btn-lg { font-size: 16px; padding: 16px 36px; }
.btn-full { width: 100%; justify-content: center; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(8,15,11,0.85);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; }
.logo-icon.small { width: 28px; height: 28px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { font-size: 14px; padding: 10px 22px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

/* The trigger button */
.lang-current {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--gray-100);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 126px;
}
.lang-current:hover {
  border-color: var(--border-green);
  background: var(--surface-3);
  color: var(--white);
}
.lang-switcher.open .lang-current {
  border-color: var(--border-green);
  background: var(--surface-3);
  color: var(--white);
}
.lang-current span {
  flex: 1;
  text-align: left;
}
.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.6;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(17, 26, 20, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Individual language option */
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  text-align: left;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.lang-option:hover {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--white);
}
.lang-option.active {
  background: rgba(34,197,94,0.1);
  border-color: var(--border-green);
  color: var(--green);
}
.lang-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-native {
  font-weight: 600;
}

/* i18n transition: flash fade when language changes */
@keyframes langSwitch {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}
.lang-transitioning * {
  animation: langSwitch 0.3s ease forwards;
}



/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 40px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.25), transparent 70%);
  top: -200px;
  left: -200px;
  animation: pulse 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167,243,208,0.1), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: pulse 10s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34,197,94,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
}
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border-green);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  width: fit-content;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-300);
  line-height: 1.8;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---- PHONE MOCKUP — Real Screenshot ---- */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute;
  width: 340px;
  height: 680px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.22), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.hero-phone-real {
  position: relative;
  z-index: 1;
  width: 290px;
  border-radius: 50px;
  border: 10px solid #162b1e;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.1),
    0 40px 100px rgba(0,0,0,0.75),
    0 0 60px rgba(34,197,94,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  animation: phoneFloat 6s ease-in-out infinite;
  background: #0c1510;
}
.hero-phone-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}
/* Keep old phone-frame hidden if still present */
.phone-frame { display: none; }


.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
}
.app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.app-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  flex: 1;
}
.app-bell { font-size: 14px; }
.app-card {
  border-radius: 14px;
  padding: 10px;
}
.daily-card {
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--border-green);
}
.daily-label {
  font-size: 9px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.daily-kcal {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.daily-kcal span { font-size: 12px; font-weight: 500; color: var(--gray-300); }
.macro-bars { display: flex; flex-direction: column; gap: 5px; }
.macro-row { display: flex; align-items: center; gap: 6px; }
.macro-name { font-size: 9px; color: var(--gray-300); width: 36px; }
.macro-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.macro-fill { height: 100%; border-radius: 2px; }
.macro-val { font-size: 9px; font-weight: 600; color: var(--white); width: 26px; text-align: right; }
.ai-card {
  background: rgba(167,243,208,0.07);
  border: 1px solid rgba(167,243,208,0.15);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ai-icon { font-size: 14px; }
.ai-title { font-size: 10px; font-weight: 700; color: var(--mint); margin-bottom: 2px; }
.ai-text { font-size: 9px; color: var(--gray-300); line-height: 1.5; }
.meal-timeline { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow: hidden; }
.meal-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.meal-time { font-size: 8px; color: var(--gray-500); width: 28px; }
.meal-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.breakfast-img { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lunch-img { background: linear-gradient(135deg, #22c55e, #16a34a); }
.snack-img { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.dinner-img { background: linear-gradient(135deg, #f97316, #ea580c); }
.meal-info { flex: 1; }
.meal-name { font-size: 10px; font-weight: 600; color: var(--white); }
.meal-desc { font-size: 8px; color: var(--gray-500); }
.meal-kcal { font-size: 10px; font-weight: 700; color: var(--green); }
.app-fab {
  position: absolute;
  bottom: 70px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
  z-index: 10;
}
.app-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--gray-500);
}
.app-nav-item.active { color: var(--green); }
.app-nav-item span { font-size: 8px; }
/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(15,26,18,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-green);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  min-width: 180px;
}
.card-scan { top: 60px; right: -60px; animation: float1 5s ease-in-out infinite; }
.card-kcal { bottom: 80px; left: -60px; animation: float2 6s ease-in-out infinite; }
@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.fc-icon { font-size: 20px; }
.green-bg { background: var(--green); border-radius: 8px; padding: 4px; }
.fc-title { font-size: 13px; font-weight: 700; color: var(--white); }
.fc-sub { font-size: 11px; color: var(--gray-300); }
.fc-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.fc-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--green), var(--mint));
  border-radius: 2px;
  animation: scan 2s ease-in-out infinite;
}
@keyframes scan {
  0% { width: 0%; }
  100% { width: 100%; }
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===================== LOGOS ===================== */
.logos-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.logos-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logos-label { color: var(--gray-500); font-size: 13px; font-weight: 600; white-space: nowrap; }
.logos-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  transition: var(--transition);
}
.logo-badge:hover { border-color: var(--border-green); color: var(--white); }

/* ===================== HOW IT WORKS ===================== */
.how-section { background: linear-gradient(180deg, var(--bg), var(--bg-alt) 50%, var(--bg)); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--border-green); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card:hover::before { opacity: 1; }
.step-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
  opacity: 0.6;
}
.step-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border-green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 24px; }
.step-card h3 { font-size: 20px; font-weight: 700; color: var(--white); }
.step-card p { font-size: 14px; color: var(--gray-300); line-height: 1.7; }
.step-demo {
  margin-top: auto;
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 16px;
  min-height: 120px;
}
/* Scan Demo */
.scan-box {
  position: relative;
  width: 120px;
  height: 80px;
  margin: 0 auto;
  background: rgba(34,197,94,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-food { font-size: 40px; }
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--green);
  animation: scanLine 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--green);
}
@keyframes scanLine {
  0% { top: 5px; }
  100% { top: 75px; }
}
.scan-corners span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--green);
  border-style: solid;
}
.scan-corners span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 2px 0 0 0; }
.scan-corners span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 2px 0 0; }
.scan-corners span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 2px; }
.scan-corners span:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 2px 0; }
.scan-tag {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #003915;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
/* Nutrition Demo */
.nutrition-demo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nutrition-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-ring {
  position: relative;
  width: 80px;
  height: 80px;
}
.score-ring svg { transform: rotate(-90deg); width: 80px; height: 80px; }
.score-ring span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.score-label { font-size: 11px; color: var(--gray-300); }
.nutrition-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.chip.green { background: rgba(34,197,94,0.15); color: var(--green); }
.chip.blue { background: rgba(96,165,250,0.15); color: #93c5fd; }
.chip.orange { background: rgba(249,115,22,0.15); color: #fdba74; }
.chip.yellow { background: rgba(245,158,11,0.15); color: #fcd34d; }
/* Chart Demo */
.chart-demo { display: flex; align-items: center; justify-content: center; }
.mini-chart { width: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-bottom: 8px; }
.bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; justify-content: flex-end; }
.bar-fill {
  width: 100%;
  background: rgba(34,197,94,0.3);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}
.bar-fill.active { background: var(--green); }
.bar-wrap span { font-size: 9px; color: var(--gray-500); }
.chart-label { text-align: center; font-size: 11px; color: var(--gray-500); }
.steps-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.steps-cta p { color: var(--gray-500); font-size: 14px; }

/* ===================== FEATURES ===================== */
.features-section { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.4), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-green); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.feature-card:hover::after { opacity: 1; }
.feature-large { grid-column: span 2; }
.feature-accent {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(167,243,208,0.03));
  border-color: var(--border-green);
}
.feature-icon { font-size: 28px; }
.feature-card h3 { font-size: 20px; font-weight: 700; color: var(--white); }
.feature-card p { font-size: 14px; color: var(--gray-300); line-height: 1.7; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span {
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border-green);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
/* AI Visual */
.ai-visual { margin-top: 8px; }
.ai-scan-demo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scan-circle {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-emoji { font-size: 40px; position: relative; z-index: 1; }
.ring {
  position: absolute;
  border: 1.5px solid rgba(34,197,94,0.3);
  border-radius: 50%;
}
.r1 { width: 100%; height: 100%; animation: ringPulse 2s ease-in-out infinite; }
.r2 { width: 140%; height: 140%; animation: ringPulse 2s ease-in-out infinite 0.5s; }
@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.scan-result-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.scan-result-pills .pill {
  background: rgba(34,197,94,0.12);
  border: 1px solid var(--border-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
/* Plan Mockup */
.feature-mini-mockup { display: flex; flex-direction: column; gap: 6px; }
.mini-plan-day {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-300);
}
.active-day {
  border-color: var(--border-green);
  color: var(--green);
  background: rgba(34,197,94,0.08);
}
/* Recipe Preview */
.feature-recipe-preview { display: flex; flex-direction: column; gap: 8px; }
.recipe-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.recipe-emoji { font-size: 24px; }
.recipe-info { display: flex; flex-direction: column; gap: 2px; }
.recipe-info div { font-size: 13px; font-weight: 600; color: var(--white); }
.recipe-meta { font-size: 11px; color: var(--gray-500); font-weight: 400; }
/* Voice Demo */
.voice-demo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.voice-wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.voice-wave span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--green);
  animation: wave 1.2s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.voice-text { font-size: 12px; color: var(--gray-300); font-style: italic; text-align: center; }
/* Shopping Preview */
.shopping-preview { display: flex; flex-direction: column; gap: 6px; }
.shop-item { font-size: 12px; color: var(--gray-300); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-3); }
.shop-item.checked { text-decoration: line-through; color: var(--gray-500); }
/* Analytics Demo */
.analytics-demo { width: 100%; }
.analytics-row { display: flex; gap: 16px; flex-wrap: wrap; }
.analytic-stat {
  flex: 1;
  min-width: 80px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.analytic-val { font-size: 18px; font-weight: 800; color: var(--green); }
.analytic-lbl { font-size: 10px; color: var(--gray-500); margin-top: 2px; }

/* ===================== SCREENS SHOWCASE ===================== */
.screens-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 40%, var(--bg) 100%);
  overflow: hidden;
}
.screens-section .section-title { text-align: center; }
.screens-section .section-badge { display: block; text-align: center; margin: 0 auto 20px; }
.screens-section .section-sub { text-align: center; margin: 0 auto 60px; }

/* Real screenshots scroll */
.screens-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 20px 60px 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  align-items: flex-end;
}
.screens-scroll::-webkit-scrollbar { display: none; }

.screen-real-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  scroll-snap-align: center;
  transition: var(--transition);
}
.screen-real-wrap:hover { transform: translateY(-12px); }

.screen-real {
  width: 220px;
  border-radius: 40px;
  border: 8px solid #1a2e20;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 40px rgba(34,197,94,0.1);
  display: block;
  object-fit: cover;
  transition: var(--transition);
}
.screen-real-wrap:hover .screen-real {
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.3),
    0 50px 100px rgba(0,0,0,0.8),
    0 0 60px rgba(34,197,94,0.2);
}
.screen-real-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border-green);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* Featured middle screen is bigger */
.screen-real-wrap:nth-child(3) .screen-real {
  width: 260px;
  border-radius: 48px;
  border-width: 10px;
}

/* Navigation dots and arrows */
.screens-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.screen-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-nav-btn:hover { background: var(--green); color: #003915; border-color: var(--green); }
.screen-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.screen-dot.active {
  background: var(--green);
  width: 20px;
  border-radius: 4px;
}

/* ===================== PRICING ===================== */
.pricing-section { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-featured {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(34,197,94,0.06), var(--surface));
  box-shadow: 0 0 40px rgba(34,197,94,0.1);
}
.pricing-best {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.06), var(--surface));
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #003915;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.best-badge { background: #f59e0b; color: #000; }
.plan-name { font-size: 14px; font-weight: 700; color: var(--gray-300); letter-spacing: 0.05em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 42px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.price-period { font-size: 16px; color: var(--gray-500); }
.plan-desc { font-size: 14px; color: var(--gray-300); line-height: 1.6; }
.plan-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { font-size: 14px; }
.feat-yes { color: var(--gray-100); }
.feat-no { color: var(--gray-700); }
.plan-note { font-size: 12px; color: var(--gray-500); text-align: center; margin-top: -10px; }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.btn-gold:hover { box-shadow: 0 8px 30px rgba(245,158,11,0.4); }
.pricing-note { text-align: center; color: var(--gray-500); font-size: 14px; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-green); transform: translateY(-4px); }
.testimonial-featured {
  border-color: var(--border-green);
  background: linear-gradient(135deg, rgba(34,197,94,0.06), var(--surface));
}
.test-rating { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.test-text { font-size: 14px; color: var(--gray-300); line-height: 1.7; flex: 1; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.av2 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.av3 { background: linear-gradient(135deg, #f97316, #ea580c); }
.av4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.test-name { font-size: 13px; font-weight: 700; color: var(--white); }
.test-role { font-size: 11px; color: var(--gray-500); }

/* ===================== DOWNLOAD CTA ===================== */
.download-section { background: var(--bg); }
.download-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(34,197,94,0.08);
}
.download-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}
.download-content { position: relative; z-index: 1; }
.download-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; }
.download-sub { font-size: 17px; color: var(--gray-300); line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 24px;
  transition: var(--transition);
  min-width: 180px;
}
.store-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--green); transform: translateY(-2px); }
.store-icon { font-size: 28px; }
.store-label { font-size: 11px; color: var(--gray-300); }
.store-name { font-size: 18px; font-weight: 700; color: var(--white); }
.download-features { display: flex; gap: 24px; flex-wrap: wrap; }
.download-features span { font-size: 13px; color: var(--gray-300); }
/* Download Mockups */
.download-mockups {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.dl-phone {
  border-radius: 28px;
  border: 1.5px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dl-phone-1 { width: 140px; height: 260px; transform: rotate(-3deg); }
.dl-phone-2 { width: 140px; height: 240px; transform: rotate(3deg) translateY(20px); }
.dl-screen { width: 100%; height: 100%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.dl-content { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; }
.dl-emoji { font-size: 32px; }
.dl-text { font-size: 11px; color: var(--gray-300); }
.dl-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(34,197,94,0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dl-score { font-size: 36px; font-weight: 800; color: var(--green); }
.dl-label { font-size: 12px; color: var(--gray-300); }
.dl-chips { display: flex; flex-direction: column; gap: 4px; }
.dl-chips span { background: rgba(34,197,94,0.15); color: var(--green); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-full); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--border-green); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--gray-500); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--gray-700); }
.footer-langs { color: var(--green) !important; }

/* ===================== ANIMATIONS ===================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s 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; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr; gap: 60px; }
  .hero-mockup { order: -1; }
  .phone-frame { width: 260px; }
  .floating-card { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: span 2; }
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .download-mockups { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .hero { padding: 100px 20px 70px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .download-card { padding: 40px 28px; }
  .logos-container { flex-direction: column; align-items: flex-start; }
  /* Screens section on mobile */
  .screens-scroll { padding: 20px 24px 30px; gap: 20px; justify-content: flex-start; }
  .screen-real { width: 160px; border-radius: 28px; border-width: 6px; }
  .screen-real-wrap:nth-child(3) .screen-real { width: 190px; border-radius: 34px; border-width: 8px; }
  .screens-section .section-sub { padding: 0 20px; }
  /* Language switcher on mobile */
  .lang-switcher { margin-left: 0; }
  .lang-current { min-width: auto; padding: 8px 10px; gap: 4px; }
  .lang-current span { display: none; } /* show only flag on mobile */
  .lang-dropdown { right: 0; left: auto; min-width: 180px; }
  .lang-dropdown { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-lg { text-align: center; justify-content: center; }
  .download-buttons { flex-direction: column; }
  .lang-dropdown { position: fixed; top: 70px; right: 12px; left: 12px; min-width: auto; }
}

