@font-face {
  font-family: Vazirmatn;
  src: local("Vazirmatn"), url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #f7f5f0;
  --ivory-deep: #ece7dc;
  --card: #faf8f4;
  --forest: #174a3d;
  --forest-dark: #091f18;
  --forest-mid: #103227;
  --jade: #24785b;
  --jade-bright: #37ba8a;
  --gold: #d4a238;
  --gold-soft: #f0c96e;
  --terra: #d9654b;
  --ink: #122922;
  --muted: #526b62;
  --line: rgba(23, 74, 61, 0.11);
  --raised: 0 14px 34px rgba(15, 48, 38, 0.08), 0 2px 6px rgba(15, 48, 38, 0.04);
  --raised-neo: 8px 8px 18px #dedad0, -8px -8px 18px #fffefa;
  --pressed: inset 3px 3px 7px #d9d6cb, inset -3px -3px 7px #fffefa;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--ivory);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: clip;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 36px, 1140px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--forest);
  font-weight: 700;
}
.skip-link:not(:focus) { clip-path: inset(50%); }

/* ================= STICKY GLASS HEADER ================= */
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-block: 14px 10px;
  pointer-events: none;
}
.site-header {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-block-size: 64px;
  padding: 7px 14px 7px 10px;
  border-radius: 20px;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(23, 74, 61, 0.12);
  box-shadow: 0 12px 32px rgba(9, 31, 24, 0.11), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header a, .site-header button {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(23, 74, 61, 0.06);
  border: 1px solid rgba(23, 74, 61, 0.07);
}
.site-header nav a {
  justify-content: center;
  padding-inline: 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, transform 0.15s ease;
}
.site-header nav a:hover {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.72);
}
.site-header nav a[aria-current="page"],
.site-header nav a.is-active {
  background: var(--forest);
  color: var(--ivory);
  box-shadow: 0 6px 16px rgba(23, 74, 61, 0.24);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--forest);
  flex: 0 0 auto;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.wordmark:hover { background: rgba(23, 74, 61, 0.07); }
.brand-badge {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  flex: 0 0 auto;
}
.brand-badge img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ================= SPA TAB PANELS ================= */
.site-tab-panel {
  animation: dpTabFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.site-tab-panel[hidden] { display: none !important; }
@keyframes dpTabFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SHARED BUTTONS & KICKERS ================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(240, 201, 110, 0.8);
}
.kicker-dark {
  background: rgba(55, 186, 138, 0.13);
  border: 1px solid rgba(114, 224, 178, 0.25);
  color: #b7f5db;
}
.kicker-light {
  background: rgba(23, 74, 61, 0.08);
  border: 1px solid rgba(23, 74, 61, 0.13);
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-block-size: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.btn-glow {
  background: var(--ivory);
  color: var(--forest-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(240, 201, 110, 0.38);
}
.btn-glow:hover { transform: translateY(-2px); background: #fff; }
.btn-glass {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ivory);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 74, 61, 0.26);
}
.primary:hover { background: #1c5a4a; transform: translateY(-2px); }
.secondary {
  background: var(--card);
  color: var(--forest);
  border-color: rgba(23, 74, 61, 0.18);
  box-shadow: 0 6px 18px rgba(23, 74, 61, 0.08);
}
.secondary:hover { background: #fff; transform: translateY(-2px); }

/* ================= SECTION 1: CINEMATIC DARK EMERALD HERO ================= */
.hero-band {
  position: relative;
  margin-block-start: -88px;
  padding-block: 124px 86px;
  background:
    radial-gradient(circle at 18% 24%, rgba(55, 186, 138, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 86% 68%, rgba(212, 162, 56, 0.16) 0%, transparent 44%),
    linear-gradient(155deg, #0b261d 0%, #091d16 55%, #071510 100%);
  color: var(--ivory);
  overflow: hidden;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 42%, #000 35%, transparent 88%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: dpOrbFloat 11s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 340px; height: 340px; background: rgba(55, 186, 138, 0.20); top: 40px; right: -80px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(212, 162, 56, 0.16); bottom: -40px; left: -60px; animation-delay: -5s; }
@keyframes dpOrbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, -24px, 0) scale(1.08); }
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.intro h1 {
  margin-block-start: 18px;
  font-size: clamp(34px, 4.9vw, 58px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ivory);
}
.hero-accent {
  background: linear-gradient(90deg, #9ef0cc 0%, #f0c96e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-lead {
  margin-block-start: 18px;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(247, 245, 240, 0.78);
  max-inline-size: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 34px;
  padding-block-start: 24px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.11);
  max-inline-size: 500px;
}
.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  display: block;
  margin-block-start: 3px;
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.68);
}

/* Interactive 3D Floating Hero Stage */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 14px;
}
.hero-phone {
  position: relative;
  width: min(100%, 356px);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(155deg, #273e36, #0f1b17);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(158, 240, 204, 0.22);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-phone:hover {
  transform: translateY(-4px);
}
.hero-phone-screen {
  border-radius: 29px;
  background: var(--ivory);
  color: var(--ink);
  padding: 12px 14px 14px;
  font-variant-numeric: tabular-nums;
}
.hero-phone-notch {
  width: 78px;
  height: 16px;
  border-radius: 99px;
  background: #101916;
  margin: 0 auto 10px;
}
.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 74, 61, 0.07);
  margin-block-end: 10px;
}
.sample-head h2 { font-size: 15.5px; font-weight: 900; color: var(--forest); }
.sample-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--jade);
  background: rgba(36, 120, 91, 0.1);
  padding: 3px 9px;
  border-radius: 99px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-bright);
  animation: dpPulse 1.8s ease-in-out infinite;
}
@keyframes dpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.sample-primary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  background: #e9f2ec;
  border-radius: 16px;
  padding: 12px 13px;
  margin-block-end: 10px;
}
.sample-primary > div strong { display: block; font-size: 13.5px; color: var(--forest); }
.sample-primary > div span { display: block; font-size: 11px; color: var(--muted); }
.sample-primary bdi { display: inline-flex; align-items: baseline; gap: 4px; font-size: 23px; font-weight: 900; color: var(--forest); white-space: nowrap; }
.sample-primary small { font-size: 13px; color: var(--muted); font-weight: 600; }
.sample-bar {
  grid-column: 1 / -1;
  block-size: 7px;
  border-radius: 99px;
  background: rgba(23, 74, 61, 0.12);
  overflow: hidden;
}
.sample-bar-fill {
  display: block;
  block-size: 100%;
  border-radius: inherit;
  transition: width 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.sample-bar-fill.energy { background: linear-gradient(90deg, var(--forest), var(--jade-bright)); }
.sample-bar-fill.protein { background: var(--terra); }
.sample-bar-fill.carbs { background: var(--gold); }
.sample-bar-fill.fat { background: var(--jade); }

.sample-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-block-end: 10px;
}
.sample-macro-box {
  background: #fff;
  border-radius: 13px;
  padding: 8px 9px;
  border: 1px solid rgba(23, 74, 61, 0.07);
}
.sample-macro-box span { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.sample-macro-box bdi { display: block; font-size: 12px; font-weight: 800; color: var(--ink); margin-block: 2px 5px; }
.sample-macro-box .sample-bar { block-size: 4px; }

.sample-meals-stack {
  display: grid;
  gap: 7px;
}
.sample-meal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.08);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.sample-meal-item.is-highlight {
  border-color: rgba(36, 120, 91, 0.35);
  background: #f2faf6;
}
.sample-meal-item strong { display: block; font-size: 12.5px; color: var(--forest); }
.sample-meal-item p { font-size: 11.5px; color: var(--muted); margin-block-start: 2px; }
.sample-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 9px;
  background: rgba(36, 120, 91, 0.13);
  color: var(--forest);
  white-space: nowrap;
}
.sample-swap {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: var(--ivory);
  border: 1px solid rgba(23, 74, 61, 0.14);
  color: var(--forest);
  flex: 0 0 auto;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.sample-swap:hover { background: #e6f2ec; transform: rotate(180deg); }
.sample-swap svg {
  inline-size: 20px;
  block-size: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Floating satellite badges around hero phone */
.hero-float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 9px;
  border-radius: 18px;
  background: rgba(11, 36, 28, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(158, 240, 204, 0.25);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  color: var(--ivory);
  z-index: 4;
}
.hero-float-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 201, 110, 0.6);
}
.hero-float-chip strong { display: block; font-size: 12.5px; font-weight: 800; }
.hero-float-chip span { display: block; font-size: 11px; color: var(--gold-soft); font-weight: 700; }
.float-dish { top: -18px; left: -24px; animation: dpFloatAlt 5.4s ease-in-out infinite; }
.float-vitals { bottom: -18px; right: -24px; padding: 10px 14px; animation: dpFloatAlt 6.2s ease-in-out infinite reverse; }
@keyframes dpFloatAlt {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ================= SECTION 2: DUAL INFINITE FOOD MARQUEE ================= */
.marquee-band {
  padding-block: 68px 64px;
  overflow: hidden;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-block-end: 28px;
}
.section-head h2 {
  margin-block-start: 10px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.section-head p {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: 15px;
  max-inline-size: 520px;
  line-height: 1.7;
}
.marquee-viewport {
  overflow: hidden;
  width: 100%;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-block: 8px;
  animation: dpMarqueeLeft 34s linear infinite;
}
.marquee-track.is-reverse {
  margin-block-start: 6px;
  animation: dpMarqueeRight 38s linear infinite;
}
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
@keyframes dpMarqueeLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes dpMarqueeRight {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.09);
  box-shadow: 0 8px 20px rgba(23, 74, 61, 0.06);
  direction: rtl;
  flex: 0 0 auto;
}
.marquee-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ivory);
}
.marquee-chip strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.marquee-chip span { display: block; font-size: 11px; color: var(--muted); }

/* ================= SECTION 3: INTERACTIVE AI PLATE SCANNER STUDIO ================= */
.scanner-band {
  padding-block: 14px;
}
.scanner-shell {
  position: relative;
  border-radius: 34px;
  padding: clamp(26px, 4.5vw, 52px);
  background:
    radial-gradient(circle at 82% 20%, rgba(55, 186, 138, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(212, 162, 56, 0.15) 0%, transparent 45%),
    linear-gradient(145deg, #0f3227 0%, #091e17 100%);
  color: var(--ivory);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(9, 31, 24, 0.24);
}
.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4.5vw, 54px);
}
.scanner-copy h2 {
  margin-block-start: 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.26;
  color: var(--ivory);
}
.scanner-copy p {
  margin-block-start: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 245, 240, 0.76);
}
.dish-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 20px 18px;
}
.dish-tab {
  min-block-size: 44px;
  padding: 8px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 245, 240, 0.84);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dish-tab:hover { background: rgba(255, 255, 255, 0.13); }
.dish-tab.is-active {
  background: var(--ivory);
  color: var(--forest-dark);
  border-color: var(--gold-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.scan-hud-card {
  background: rgba(247, 245, 240, 0.96);
  color: var(--ink);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}
.scan-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-block-end: 13px;
}
.scan-hud-dish { font-size: 17px; font-weight: 900; color: var(--forest); }
.scan-hud-note { font-size: 12px; color: var(--muted); margin-block-start: 2px; }
.scan-hud-kcal {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(23, 74, 61, 0.08);
  padding: 6px 13px;
  border-radius: 13px;
  font-variant-numeric: tabular-nums;
}
.scan-hud-kcal strong { font-size: 27px; font-weight: 900; color: var(--forest); }
.scan-hud-kcal span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.scan-hud-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-block-end: 13px;
}
.scan-m-tile {
  background: #f0ede5;
  border-radius: 13px;
  padding: 9px 10px;
}
.scan-m-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-block-end: 6px;
}
.scan-m-head strong { color: var(--ink); font-weight: 900; }
.scan-m-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(23, 74, 61, 0.11);
  overflow: hidden;
}
.scan-m-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.scan-refine-btn {
  width: 100%;
  min-block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 13px;
  border: 1px dashed rgba(23, 74, 61, 0.3);
  background: #e7f3ed;
  color: var(--forest);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.scan-refine-btn:hover { background: #daece3; }
.scan-refine-btn.is-applied {
  border-style: solid;
  background: var(--forest);
  color: var(--ivory);
}
.scan-refine-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(23, 74, 61, 0.14);
  white-space: nowrap;
}
.scan-refine-btn.is-applied .scan-refine-tag {
  background: rgba(240, 201, 110, 0.24);
  color: var(--gold-soft);
}

/* Viewfinder & Sweeping Laser */
.scanner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  max-inline-size: 460px;
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  background: #f5f2eb;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44), 0 0 0 2px rgba(114, 224, 178, 0.3);
}
.scanner-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.6s ease;
}
.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 62px;
  top: -70px;
  background: linear-gradient(180deg, rgba(55, 186, 138, 0) 0%, rgba(78, 240, 177, 0.26) 72%, rgba(240, 201, 110, 0.92) 96%, #fff 100%);
  animation: dpLaserSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dpLaserSweep {
  0% { transform: translateY(0px); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translateY(390px); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(0px); opacity: 0; }
}
.vf-c {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #4ef0b1;
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(78, 240, 177, 0.65));
}
.vf-tl { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 9px; }
.vf-tr { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 9px; }
.vf-bl { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 9px; }
.vf-br { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 9px; }

.scan-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9, 31, 24, 0.86);
  border: 1px solid rgba(78, 240, 177, 0.55);
  color: #e9fff6;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1), left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.scan-pin::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ef0b1;
  box-shadow: 0 0 8px #4ef0b1;
}

/* ================= SECTION 4: ASYMMETRIC BENTO GRID ================= */
.bento-band {
  padding-block: 76px 34px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(15, 48, 38, 0.12);
}
.bento-card.is-wide { grid-column: span 7; }
.bento-card.is-narrow { grid-column: span 5; }
.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(23, 74, 61, 0.09);
  color: var(--forest);
  display: grid;
  place-items: center;
}
.bento-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
  margin-block-start: 12px;
}
.bento-card p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
  margin-block-start: 6px;
}
.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bento-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ef;
  border: 1px solid rgba(23, 74, 61, 0.11);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest);
}
.bento-chart-box {
  background: #f0f4f1;
  border-radius: 18px;
  padding: 12px 14px 8px;
  border: 1px solid rgba(23, 74, 61, 0.08);
}
.bento-chart-svg path.curve {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: dpDrawCurve 4.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes dpDrawCurve {
  0% { stroke-dashoffset: 420; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 420; }
}
.bento-swap-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.1);
}
.bento-swap-demo strong { font-size: 13.5px; color: var(--forest); display: block; }
.bento-swap-demo span { font-size: 11.5px; color: var(--muted); }
.swap-badge-anim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(212, 162, 56, 0.18);
  color: #7b5608;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* ================= SECTION 5: GUIDE STEPS + FAQ ================= */
.guide-band {
  padding-block: 44px 36px;
}
.guide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--raised);
}
.guide h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  color: var(--forest);
}
.guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin-block-start: 24px;
  padding: 0;
}
.guide li {
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.09);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(23, 74, 61, 0.05);
}
.step-num-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 900;
  margin-block-end: 12px;
}
.guide h3 { font-size: 17px; font-weight: 900; color: var(--ink); }
.guide p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-block-start: 8px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 28px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(23, 74, 61, 0.05);
}
.faq-item summary {
  font-size: 15px;
  font-weight: 800;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--jade);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-block-start: 10px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
}

/* ================= SECTION 6: FINAL CTA BANNER & FOOTER ================= */
.cta-band {
  padding-block: 26px 46px;
}
.cta-card {
  border-radius: 32px;
  padding: clamp(32px, 5vw, 54px) clamp(22px, 4vw, 44px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(55, 186, 138, 0.24) 0%, transparent 56%),
    linear-gradient(155deg, #123c2f 0%, #091f18 100%);
  color: var(--ivory);
  box-shadow: 0 24px 56px rgba(9, 31, 24, 0.24);
}
.cta-card h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: var(--ivory);
  margin-block-start: 14px;
}
.cta-card p {
  margin: 12px auto 0;
  max-inline-size: 520px;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(247, 245, 240, 0.78);
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 26px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 22px 34px;
  border-block-start: 1px solid var(--line);
}
.site-footer p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--forest);
}
.footer-brand img {
  inline-size: 26px;
  block-size: 26px;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOODS CATALOG TAB & STANDALONE PAGE ================= */
.food-main { padding-block: 26px 54px; }
.food-banner {
  background: linear-gradient(145deg, #0f3227, #091f18);
  color: var(--ivory);
  border-radius: 26px;
  padding: clamp(22px, 3.5vw, 34px);
  margin-block-end: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
.food-banner h1, .food-banner h2 {
  font-size: clamp(25px, 3.8vw, 40px);
  font-weight: 900;
  color: var(--ivory);
}
.food-banner p {
  margin-block-start: 6px;
  color: rgba(247, 245, 240, 0.76);
  font-size: 14px;
}
.food-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.food-controls label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(247, 245, 240, 0.8);
}
.food-controls select, .food-controls input {
  min-block-size: 44px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.food-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 14px;
}
.food-pill-btn {
  min-block-size: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.food-pill-btn:hover { color: var(--forest); border-color: rgba(23, 74, 61, 0.25); }
.food-pill-btn.is-active {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}
.food-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 11px; }
.food-heading h1 { grid-row: span 2; font-size: clamp(27px, 4vw, 40px); }
#food-status, #spa-food-status { margin-block: 10px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(156px, 100%), 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.food-grid li {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.08);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(23, 74, 61, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.food-grid li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(23, 74, 61, 0.11); }
.food-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-block-end: 9px;
  background: var(--ivory);
}
.food-grid img[hidden] { display: none; }
.food-placeholder-box {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-block-end: 9px;
  background: #eeece4;
  color: var(--forest);
}
.food-placeholder-box svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.72; }
.food-grid strong { display: block; font-size: 13.8px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.food-grid p { color: var(--muted); font-size: 12px; margin-block-start: 3px; }

/* ================= TERMS TAB & STANDALONE PAGE ================= */
.terms-main { padding-block: 26px 52px; max-inline-size: 880px; }
.terms-hero {
  background: linear-gradient(145deg, #0f3227, #091f18);
  color: var(--ivory);
  border-radius: 26px;
  padding: clamp(22px, 3.5vw, 34px);
  margin-block-end: 22px;
}
.terms-hero h1, .terms-hero h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.38;
  color: var(--ivory);
}
.terms-hero p {
  margin-block-start: 10px;
  color: rgba(247, 245, 240, 0.78);
  font-size: 14.5px;
  line-height: 1.85;
}
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.terms-list li {
  background: #fff;
  border: 1px solid rgba(23, 74, 61, 0.09);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 8px 20px rgba(23, 74, 61, 0.05);
}
.terms-list h2, .terms-list h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--forest);
  margin-block-end: 8px;
}
.terms-list p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
}
.terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 24px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 920px) {
  .hero, .scanner-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-block-start: 10px; }
  .bento-card, .bento-card.is-wide, .bento-card.is-narrow { grid-column: span 12; }
  .guide ol, .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .site-header-shell { padding-block: 10px 6px; }
  .site-header {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px 10px;
    border-radius: 18px;
  }
  .wordmark { align-self: flex-end; font-size: 19px; padding: 0 4px; }
  .brand-badge { inline-size: 38px; block-size: 38px; }
  .site-header nav { justify-content: space-between; width: 100%; gap: 2px; }
  .site-header nav a { flex: 1 1 0; padding-inline: 5px; font-size: 13px; text-align: center; }
  .hero-band { margin-block-start: -130px; padding-block: 152px 58px; border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-actions .btn { width: 100%; padding: 10px 10px; font-size: 13.5px; }
  .hero-stats { gap: 8px; }
  .hero-stat strong { font-size: 20px; }
  .hero-float-chip { display: none; }
  .food-controls { width: 100%; }
  .food-controls input, .food-controls select { width: 100%; }
  .scanner-shell { border-radius: 24px; padding: 22px 16px; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 360px) {
  .hero-actions { grid-template-columns: 1fr; }
  .hero-float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-phone, .hero-float-chip, .marquee-track, .scanner-laser, .bento-chart-svg path.curve {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
