/* ============================================
   NUMI — Styles
   Apple-inspired light glassmorphism
   Faithful translation of numi_apple_style_landing_page.jsx
   ============================================ */

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

:root {
  --bg:          #ffffff;
  --text-1:      #111111;
  --text-2:      rgba(0, 0, 0, 0.62);
  --text-3:      rgba(0, 0, 0, 0.45);
  --text-faint:  rgba(0, 0, 0, 0.38);

  /* Glass card — white/60, backdrop blur */
  --card:        rgba(255, 255, 255, 0.60);
  --card-border: rgba(255, 255, 255, 0.60);
  --card-ring:   rgba(0, 0, 0, 0.03);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);

  /* Borders */
  --border:        rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.10);

  /* Brand pink */
  --accent:      #FF4A88;
  --accent-2:    #FF6161;
  --accent-dim:  rgba(255, 74, 136, 0.08);

  /* Nutrition green */
  --green:       #2ECC70;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --radius-xl:  40px;
  --radius-max: 100px;

  --max-width:    1200px;
  --page-h:       max(var(--page-padding), env(safe-area-inset-left, 0px));
  --page-padding: 24px;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 35%, #ffffff 100%) fixed;
  color: var(--text-1);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  selection: background #111111; color #ffffff;
}

::selection { background: #111111; color: #ffffff; }


/* ============================================
   AMBIENT ELEMENTS
   ============================================ */

/* Hidden SVG defs containers */
.svg-defs { display: none; }

/* Noise texture — identical to JSX mix-blend-multiply overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='42' cy='74' r='1'/%3E%3Ccircle cx='96' cy='28' r='1'/%3E%3Ccircle cx='144' cy='84' r='1'/%3E%3Ccircle cx='110' cy='152' r='1'/%3E%3Ccircle cx='22' cy='132' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Floating orbs — matches JSX FloatingOrbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-1 {
  width: 224px; height: 224px;
  background: rgba(125, 211, 252, 0.30);
  left: 8%; top: 10%;
  animation: orb1 16s ease-in-out infinite;
}

.orb-2 {
  width: 288px; height: 288px;
  background: rgba(196, 181, 253, 0.25);
  right: 10%; top: 22%;
  animation: orb2 18s ease-in-out infinite;
}

.orb-3 {
  width: 320px; height: 320px;
  background: rgba(103, 232, 249, 0.30);
  left: 30%; bottom: 10%;
  animation: orb3 20s ease-in-out infinite;
}

@keyframes orb1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-30px)} 66%{transform:translate(-10px,20px)} }
@keyframes orb2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-25px,20px)} 66%{transform:translate(15px,-20px)} }
@keyframes orb3 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(16px,22px)} 66%{transform:translate(-12px,-18px)} }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #111111;
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}


/* ============================================
   FLOATING TOAST CTA
   ============================================ */

.toast-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 80;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 48px);
}

.toast-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.toast-cta-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}

.toast-cta-sub {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.toast-cta-btn {
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-max);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease), opacity var(--transition);
  position: relative;
  z-index: 1;
}

.nav-cta:hover { transform: scale(1.02); opacity: 0.9; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--page-padding) 24px;
  z-index: 49;
  flex-direction: column;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
  color: var(--text-1);
  font-weight: 700;
}


/* ============================================
   SHARED
   ============================================ */

section { position: relative; z-index: 2; }
main    { position: relative; z-index: 2; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section-inner--narrow {
  max-width: 896px;
}

.text-center { text-align: center; }

/* Eyebrow badge — JSX: border/10, bg white/75, backdrop-blur, text-black/65, tracking-[0.2em] uppercase */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(0, 0, 0, 0.65);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-max);
  margin-bottom: 16px;
}

.eyebrow--sm { font-size: 10px; letter-spacing: 0.18em; }

/* Section headline — JSX: text-4xl/5xl/6xl, font-semibold, tracking-[-0.04em], text-balance */
.section-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-1);
  text-wrap: balance;
  margin-bottom: 24px;
}

/* Section body text — JSX: text-lg/xl, leading-8, text-black/62 */
.section-body {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 540px;
}

.section-body--centered {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Glass card — JSX: GlassCard component */
.glass-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

/* Buttons */
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cta-buttons--form {
  margin-top: 0;
  justify-content: flex-start;
}

/* Primary button — black fill, white text, pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111111;
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-max);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease), box-shadow var(--transition);
}

.btn-primary:hover { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-arrow-icon { flex-shrink: 0; }

/* Ghost / secondary button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.70);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-max);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.btn-ghost:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.90); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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


/* ============================================
   DARK PHONE MOCK SHARED STYLES
   (frames stay dark — product screens on light page)
   ============================================ */

.device-frame {
  position: relative;
  border-radius: 48px;
  background: #111111;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.device-frame--large  { width: 340px; max-width: 100%; }
.device-frame--medium { width: 280px; max-width: 100%; }

.device-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 20;
}

.device-screen {
  border-radius: 38px;
  background: #0D050F;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
}

.device-frame--medium .device-screen { height: 500px; }

/* Mock UI inside dark screens */
.mock-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.mock-status-icons { display: flex; align-items: center; gap: 5px; }

.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
  flex-shrink: 0;
}

.mock-app-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.mock-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 74, 136, 0.2);
  border: 1px solid rgba(255, 74, 136, 0.2);
}

/* Scan camera area */
.mock-camera-area {
  flex: 1;
  margin: 0 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,74,136,0.04), rgba(255,97,97,0.03));
  border: 1px solid rgba(255, 74, 136, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-scan-corner { position: absolute; width: 16px; height: 16px; border-color: #FF4A88; border-style: solid; }
.mock-scan-tl { top:10px;    left:10px;  border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.mock-scan-tr { top:10px;    right:10px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.mock-scan-bl { bottom:10px; left:10px;  border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.mock-scan-br { bottom:10px; right:10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.mock-scan-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF4A88, transparent);
  box-shadow: 0 0 8px #FF4A88;
  animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes scanMove {
  0%   { top: 12px;              opacity: 0; }
  10%  { top: 12px;              opacity: 1; }
  85%  { top: calc(100% - 12px); opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; }
}

.mock-food-ghost { opacity: 0.4; }
.mock-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,0.3); padding: 10px 0 14px; flex-shrink: 0; }

/* Summary screen */
.mock-summary {
  flex: 1;
  padding: 4px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mock-progress-ring-container {
  position: relative;
  width: 100px; height: 100px;
}

.mock-progress-ring { width: 100%; height: 100%; }

.mock-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mock-ring-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.mock-ring-label { font-size: 8px; color: rgba(255,255,255,0.3); margin-top: 2px; }

.mock-macro-summary { display: flex; gap: 8px; }

.mock-macro-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.mock-val--protein { color: #60A5FA; }
.mock-val--carbs   { color: #2ECC70; }
.mock-val--fat     { color: #FB923C; }

.mock-meal-log { width: 100%; display: flex; flex-direction: column; gap: 1px; }

.mock-meal {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.mock-meal:first-child { border-radius: 8px 8px 0 0; }
.mock-meal:last-child  { border-radius: 0 0 8px 8px; }
.mock-summary-note { font-size: 11px; color: #2ECC70; font-weight: 600; }

/* Insight screen */
.mock-insight-screen {
  flex: 1;
  padding: 8px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-insight-card {
  background: rgba(255,74,136,0.1);
  border: 1px solid rgba(255,74,136,0.15);
  border-radius: 14px;
  padding: 14px;
}

.mock-insight-card--subtle {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.mock-insight-icon { margin-bottom: 8px; }
.mock-insight-title { font-size: 14px; font-weight: 700; color: #FF4A88; margin-bottom: 4px; }
.mock-insight-title--dim { color: rgba(255,255,255,0.5); }
.mock-insight-body { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.55; }
.mock-insight-body--dim { color: rgba(255,255,255,0.3); }


/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 140px var(--page-padding) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Hero headline — JSX: text-5xl/6xl/7xl, font-semibold, tracking-[-0.05em] */
.hero-headline {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: var(--text-1);
  margin-bottom: 0;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease) both;
}

/* Sub line — JSX: block, text-black/72 */
.hero-headline-sub {
  display: block;
  color: rgba(0, 0, 0, 0.72);
}

/* Pink accent — "Not just your calories." */
.hero-headline-accent {
  color: var(--accent);
}

.hero-body {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 24px;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

/* Hero device — frameless, full width, parallax */
.hero-device {
  position: relative;
  margin-top: 48px;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
  will-change: transform;
}

.hero-device-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at center, rgba(125, 211, 252, 0.20), transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Frameless screenshot — drop shadow only */
.hero-phone-img {
  display: block;
  width: 340px;
  height: auto;
  border-radius: 44px;
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.10);
}

@media (min-width: 640px)  { .hero-phone-img { width: 400px; border-radius: 52px; } }
@media (min-width: 1024px) { .hero-phone-img { width: 460px; border-radius: 60px; } }

/* Body engine device */
.body-engine-img {
  width: 260px;
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14);
}

@media (min-width: 640px)  { .body-engine-img { width: 300px; } }
@media (min-width: 1024px) { .body-engine-img { width: 340px; border-radius: 48px; } }

/* Highlights device — frameless, no animation */
.highlights-device .hero-phone-img {
  width: 260px;
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14);
}

@media (min-width: 640px)  { .highlights-device .hero-phone-img { width: 300px; } }
@media (min-width: 1024px) { .highlights-device .hero-phone-img { width: 340px; border-radius: 48px; } }

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

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.48);
  text-decoration: none;
  transition: color var(--transition);
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-scroll-hint:hover { color: var(--text-2); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   INTERSTITIAL
   ============================================ */

.interstitial {
  padding: 96px var(--page-padding) 112px;
  text-align: center;
}

.interstitial-lead {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 24px;
}

.interstitial-body {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.interstitial-close {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-1);
}


/* ============================================
   HIGHLIGHTS
   ============================================ */

.highlights {
  padding: 96px var(--page-padding) 112px;
}

.highlights-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.highlights-content { max-width: 480px; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.5;
}

.check-list svg { flex-shrink: 0; margin-top: 1px; }


/* ============================================
   MULTIMODAL / DEMO
   ============================================ */

.multimodal {
  padding: 96px var(--page-padding) 112px;
}

.demo-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 48px;
}

.demo-main {
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.demo-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 35%),
              radial-gradient(circle at bottom right, rgba(196,181,253,0.14), transparent 40%);
  pointer-events: none;
}

.demo-main-inner {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  padding: 24px;
}

.demo-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-main-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.demo-main-sub   { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.demo-play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.demo-media-slot {
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.70);
  padding: 32px;
  text-align: center;
}

.demo-media-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin: 16px 0 12px;
}

.demo-media-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 24px;
}

.demo-screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-screen-placeholder {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  height: 96px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-side-card { padding: 24px; }
.demo-side-title { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-1); margin-bottom: 8px; }
.demo-side-body  { font-size: 14px; line-height: 1.7; color: var(--text-3); }


/* ============================================
   METABOLIC CALLOUT
   ============================================ */

.metabolic-callout {
  padding: 96px var(--page-padding) 112px;
}

.metabolic-card {
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.metabolic-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.14), transparent 45%),
              radial-gradient(circle at bottom right, rgba(196,181,253,0.14), transparent 40%);
  pointer-events: none;
}

.metabolic-card .eyebrow,
.metabolic-card .section-headline,
.metabolic-card .section-body { position: relative; }

.metabolic-close {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-top: 32px;
  position: relative;
}


/* ============================================
   FEATURES 3-COL
   ============================================ */

.features-3col {
  padding: 96px var(--page-padding) 112px;
}

.features-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-block { padding: 24px; height: 100%; }

.feature-block-icon {
  width: 44px; height: 44px;
  background: #111111;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-block h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 12px;
}

.feature-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}


/* ============================================
   HORIZONTAL STORY CARDS
   ============================================ */

.story-section {
  padding: 80px var(--page-padding) 96px;
}

.story-header {
  margin-bottom: 32px;
}

.story-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.story-card {
  min-width: 280px;
  max-width: 280px;
  padding: 24px;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.story-card:hover { transform: translateY(-4px); }

.story-card-icon {
  width: 44px; height: 44px;
  background: #111111;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.story-card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 12px;
}

.story-card-body { font-size: 14px; line-height: 1.7; color: var(--text-3); }


/* ============================================
   BODY ENGINE
   ============================================ */

.body-engine-section {
  padding: 96px var(--page-padding) 112px;
}

.body-engine-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.engine-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.engine-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.engine-card-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: #111111;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.engine-card-body  { font-size: 13px; color: var(--text-2); line-height: 1.5; }


/* ============================================
   QUOTES
   ============================================ */

.quotes-section {
  padding: 96px var(--page-padding) 112px;
}

.quotes-section .section-headline { max-width: 680px; margin-left: auto; margin-right: auto; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quote-card {
  padding: 24px;
  height: 100%;
}

.quote-card p {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: var(--text-1);
}


/* ============================================
   FAQ
   ============================================ */

.faq-section {
  padding: 96px var(--page-padding) 112px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.faq-item { padding: 0; overflow: hidden; }

.faq-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.faq-summary span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-body { max-height: 400px; }

.faq-body p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}


/* ============================================
   CTA / BETA FORM
   ============================================ */

.cta-section {
  padding: 96px var(--page-padding) 112px;
}

.cta-card {
  position: relative;
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.10), transparent 40%);
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-1);
  text-wrap: balance;
  margin-bottom: 20px;
  position: relative;
}

.cta-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  text-wrap: balance;
  position: relative;
}

/* Beta progress bar */
.beta-progress {
  max-width: 420px;
  margin: 0 auto 32px;
  position: relative;
}

.beta-progress-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.beta-progress-fill {
  height: 100%;
  width: 0;
  background: #111111;
  border-radius: 2px;
  transition: width 1.4s var(--ease);
}

.beta-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}

.beta-progress-hurry { color: var(--accent); font-weight: 600; }

/* Form */
.beta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.form-input {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-1);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--text-faint); }

.form-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-input.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.form-input option { background: #ffffff; color: var(--text-1); }

.beta-error {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 8px;
}

.beta-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  justify-content: center;
}

.form-privacy {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
  margin-top: 8px;
}

.form-privacy a {
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: color var(--transition);
}

.form-privacy a:hover { color: var(--text-1); }

/* Success state */
.beta-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.beta-success.show { display: flex; }

.beta-success-icon {
  width: 56px; height: 56px;
  background: #111111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beta-success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.beta-success p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 360px;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--page-padding) 32px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Icon in nav/footer logo — inner pages may still use an img */
.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

/* footer-copy used by inner pages */
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-1); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 12px; color: var(--text-faint); }

.footer-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

.footer-meta a { color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.footer-meta a:hover { color: var(--text-1); }


/* ============================================
   INNER PAGES (privacy, terms, support)
   ============================================ */

.inner-page {
  padding: 100px var(--page-padding) 80px;
  position: relative;
  z-index: 2;
}

.inner-container { max-width: 720px; margin: 0 auto; }

.inner-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 8px;
}

.inner-page .page-meta {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.inner-page h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 40px 0 12px;
}

.inner-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 24px 0 8px;
}

.inner-page p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.inner-page ul, .inner-page ol { padding-left: 24px; margin-bottom: 16px; }

.inner-page li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 6px;
}

.inner-page a {
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
  transition: border-color var(--transition);
}

.inner-page a:hover { border-color: var(--text-1); }

.highlight-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.contact-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  transition: color var(--transition);
  border-image: none;
}

.contact-method:last-child { border-bottom: none; }
.contact-method:hover { color: var(--text-1); }

.contact-method-icon {
  width: 38px; height: 38px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  min-width: 38px;
}

.contact-method-title { display: block; color: var(--text-1); margin-bottom: 2px; font-weight: 600; }

.testflight-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-decoration: none;
  color: #0066CC;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition);
  border-image: none;
}

.testflight-badge:hover { background: rgba(0, 122, 255, 0.14); border-color: rgba(0,122,255,0.18); }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .highlights-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .highlights-content { max-width: 100%; }
  .check-list { align-items: flex-start; text-align: left; }
  .highlights-device { display: flex; justify-content: center; order: -1; }

  .demo-panel {
    grid-template-columns: 1fr;
  }

  .body-engine-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .body-engine-device { display: flex; justify-content: center; }

  .quotes-grid { grid-template-columns: 1fr 1fr; }

  .features-3col-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .features-3col-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }

  .demo-screens-row { grid-template-columns: 1fr 1fr; }

  .cta-card { padding: 40px 24px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  :root { --page-padding: 20px; }

  .hero { padding: 100px var(--page-padding) 64px; }
  .hero-phone-img { border-radius: 36px; }

  .interstitial,
  .highlights,
  .multimodal,
  .metabolic-callout,
  .features-3col,
  .story-section,
  .body-engine-section,
  .quotes-section,
  .faq-section,
  .cta-section { padding: 72px var(--page-padding); }

  .device-frame--large  { width: 100%; max-width: 300px; }
  .device-frame--medium { width: 100%; max-width: 260px; }
  .device-screen { height: 480px; }
  .device-frame--medium .device-screen { height: 420px; }

  .demo-screens-row { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
