/* ── Hero background animations ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 48px 24px 80px;
  background: linear-gradient(145deg, #050f1a 0%, #0a3d32 45%, #00897b 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: blob-drift 14s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--brand-teal);
  top: -80px;
  right: -60px;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: var(--brand-lime);
  bottom: -100px;
  left: -80px;
  animation-delay: -4s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: var(--brand-cyan);
  top: 40%;
  left: 35%;
  animation-delay: -8s;
  opacity: 0.25;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: float-up linear infinite;
}

@keyframes float-up {
  from { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-lime), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 28px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 217, 76, 0.3); }
  50% { box-shadow: 0 0 24px 4px rgba(198, 217, 76, 0.15); }
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-lime);
  animation: blink 1.5s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

/* ── Phone mockup + animated cards ── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.phone {
  width: min(280px, 80vw);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: linear-gradient(160deg, #1a2a35, #0d1a22);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 14px;
  animation: phone-float 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes phone-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-12px); }
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 10px;
}

.phone-header {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.macro-rings {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0);
  animation: ring-fill 2.5s ease-out forwards;
}

.ring span {
  position: relative;
  z-index: 1;
  background: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

@keyframes ring-fill {
  from { --p: 0; }
}

.ring-cal { --c: var(--brand-teal); --p: 72; animation-delay: 0.2s; }
.ring-pro { --c: #6366f1; --p: 58; animation-delay: 0.5s; }
.ring-carb { --c: #f59e0b; --p: 64; animation-delay: 0.8s; }

.meal-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  animation: slide-in 0.8s ease-out backwards;
}

.meal-card:nth-child(1) { animation-delay: 1s; }
.meal-card:nth-child(2) { animation-delay: 1.4s; }
.meal-card:nth-child(3) { animation-delay: 1.8s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.meal-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.meal-thumb-1 { background: linear-gradient(135deg, #fcd34d, #f97316); }
.meal-thumb-2 { background: linear-gradient(135deg, #86efac, #22c55e); }
.meal-thumb-3 { background: linear-gradient(135deg, #fda4af, #e11d48); }

.meal-info strong {
  display: block;
  font-size: 0.72rem;
  color: var(--brand-navy);
}

.meal-info small {
  font-size: 0.65rem;
  color: var(--muted);
}

.floating-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  animation: chip-bob 4s ease-in-out infinite;
}

.chip-ai { top: 8%; right: -8%; animation-delay: 0s; }
.chip-water { bottom: 18%; left: -12%; animation-delay: -1.5s; }
.chip-sleep { top: 42%; right: -14%; animation-delay: -3s; }

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Sections ── */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal-dark);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--brand-lime-soft);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pro section ── */
.pro-section {
  background: linear-gradient(135deg, #050f1a, #0a3d32);
  color: white;
}

.pro-section .section-label { color: var(--brand-lime); }
.pro-section .section-lead { color: rgba(255, 255, 255, 0.75); }

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pro-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pro-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pro-card p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; line-height: 1.5; }

.pro-price {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.pro-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.pro-price .amount small {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
}

/* ── Stats strip ── */
.stats-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--brand-teal-dark);
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(circle at 50% 0%, var(--brand-lime-soft), transparent 60%), var(--bg);
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-section p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }

  .phone-stage { order: -1; }
  .floating-chip { display: none; }

  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal:not(.visible),
  html.js .reveal.visible { opacity: 1; transform: none; }
}
