@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #07080b;
  --bg-card: rgba(18, 20, 29, 0.7);
  --bg-card-hover: rgba(26, 29, 42, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.5;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 11, 0.75);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.brand-name span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

@keyframes logoGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  /* Deep, high-contrast jewel gradient: rich royal blue -> deep cyan -> vibrant emerald -> rich royal blue */
  background: linear-gradient(135deg, #0284c7 0%, #0099ff 30%, #059669 70%, #0284c7 100%);
  background-size: 260% 260%;
  animation: logoGradientFlow 4s ease infinite;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4), 0 2px 10px rgba(5, 150, 105, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glow-pink { background: #ec4899; }
.glow-cyan { background: #06b6d4; }

.btn-cta-nav:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.55), 0 0 22px rgba(5, 150, 105, 0.4);
  text-decoration: none !important;
}

/* SECTION FULLSCREEN SCREEN-BY-SCREEN */
.feature-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}

.screen-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.screen-container.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.screen-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* BADGES & TYPOGRAPHY */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}

.badge-pill.blue {
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.badge-pill.purple {
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
}

.badge-pill.green {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.badge-pill.amber {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.screen-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.screen-title .highlight {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen-title .highlight-green {
  background: linear-gradient(135deg, #10b981, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen-title .highlight-amber {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.screen-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.screen-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #e2e8f0;
}

.perk-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* INTERACTIVE VISUAL CARDS & MOCKUPS */
.visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-backdrop {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.5;
}

.glow-blue { background: #38bdf8; }
.glow-purple { background: #a855f7; }
.glow-green { background: #10b981; }
.glow-amber { background: #f59e0b; }

/* ========================================================
   HERO STANDALONE CARDS (CLEAN INDEPENDENT BLOCKS)
   ======================================================== */
.hero-cards-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-standalone-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* ZERO HOVER / NO JUMP ON MOUSEOVER */
  transition: none !important;
  transform: none !important;
}

.hero-standalone-card:hover {
  transform: none !important;
  border-color: #262626 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* 1. Calorie Ring Card */
.hero-standalone-card.ring-card {
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-ring-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-ring-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.phone-ring-track {
  fill: none;
  stroke: #1f1f23;
  stroke-width: 12;
}

.phone-ring-progress {
  fill: none;
  stroke: #0099ff;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 490;
  stroke-dashoffset: 300;
  filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.5));
  animation: ringPulse 4s ease-in-out infinite alternate;
}

@keyframes ringPulse {
  0% {
    stroke: #0099ff;
    stroke-dashoffset: 300;
  }
  100% {
    stroke: #00d2ff;
    stroke-dashoffset: 275;
  }
}

.phone-ring-data {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-ring-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.phone-ring-number {
  font-size: 2.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 2px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Inter", sans-serif;
}

.phone-ring-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Macro Grid */
.phone-macro-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.phone-macro-card {
  background: #1c1c1e;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-macro-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.phone-macro-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.phone-macro-val .current {
  font-size: 0.98rem;
  font-weight: 900;
}

.phone-macro-val .total {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
}

.phone-macro-bar-track {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 3px;
  overflow: hidden;
}

.phone-macro-bar {
  height: 100%;
  border-radius: 3px;
}

.phone-macro-bar.protein { background: #22c55e; width: 35%; }
.phone-macro-bar.fat { background: #f59e0b; width: 58%; }
.phone-macro-bar.carbs { background: #0099ff; width: 45%; }

/* 2. Goal Card */
.hero-standalone-card.goal-card {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-goal-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-goal-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.phone-goal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-goal-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-goal-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-goal-pill {
  font-size: 0.6rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: 100px;
}

.phone-goal-values {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.phone-goal-values span.blue {
  color: #0099ff;
}

.phone-goal-sub {
  font-size: 0.68rem;
  color: #71717a;
}

.phone-goal-arrow {
  color: #71717a;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-mock-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.app-mock-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

/* MOCKUP INTERNALS */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mock-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.ai-scan-photo-box {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #11141d;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(56, 189, 248, 0.4);
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 15px #38bdf8;
  animation: scanAnim 2.5s infinite ease-in-out;
}

@keyframes scanAnim {
  0% { top: 10%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.ai-detected-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.macro-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.macro-bar-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.macro-bar-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.macro-bar-item .val {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 4px 0;
}

.val.green { color: var(--accent-green); }
.val.yellow { color: var(--accent-amber); }
.val.blue { color: var(--accent-blue); }

.bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
}

.bar-fill.green { width: 85%; background: var(--accent-green); }
.bar-fill.yellow { width: 95%; background: var(--accent-amber); }
.bar-fill.blue { width: 70%; background: var(--accent-blue); }

/* HERO BUTTONS */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  /* Deep, high-contrast jewel gradient: rich royal blue -> deep cyan -> vibrant emerald -> rich royal blue */
  background: linear-gradient(135deg, #0284c7 0%, #0099ff 30%, #059669 70%, #0284c7 100%);
  background-size: 260% 260%;
  animation: logoGradientFlow 4s ease infinite;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.45), 0 2px 12px rgba(5, 150, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 44px rgba(2, 132, 199, 0.6), 0 0 30px rgba(5, 150, 105, 0.45);
  text-decoration: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-glass);
  background: #050608;
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .screen-container, .screen-container.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .screen-content {
    align-items: center;
  }
  
  .screen-perks {
    align-items: flex-start;
    text-align: left;
  }
  
  .screen-title {
    font-size: 2.4rem;
  }
  
  .nav-links {
    display: none;
  }
}
