/* ===========================================================================
   FoodFusion - marketing site styles
   Cozy-kitchen brand: warm cream + orange, Pacifico display + Nunito body.
   Emoji glyphs are injected via CSS unicode escapes (ASCII-safe source).
   =========================================================================== */

:root {
  --cream: #FFF8F0;
  --cream-2: #FFF1E2;
  --paper: #FFFFFF;
  --ink: #3A2A1E;
  --ink-soft: #6C5544;
  --board-bg: #EFEBE9;
  --cell-bg: #D7CCC8;

  --orange: #F4511E;
  --orange-2: #FF8A3D;
  --gold: #FFC24B;
  --red: #E4573B;

  --ring: rgba(244, 81, 30, .28);
  --shadow-sm: 0 6px 18px rgba(120, 72, 30, .12);
  --shadow-md: 0 16px 40px rgba(120, 72, 30, .16);
  --shadow-lg: 0 30px 70px rgba(120, 72, 30, .22);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --wrap: 1120px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pacifico", var(--font);
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #FFE6C7 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 10%, #FFEAD6 0%, transparent 50%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* ---- shared bits ---- */
.eyebrow {
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; color: var(--orange); margin-bottom: 12px;
  overflow-wrap: break-word;
}
.ink { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; border-radius: 999px;
  padding: 14px 24px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn__glyph { font-size: .8em; }
.btn--play {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 24px var(--ring);
}
.btn--play:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--ring); }
.btn--ghost {
  background: #fff; color: var(--orange); border: 2px solid #FFD8B8;
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--orange-2); }
.btn--lg { padding: 18px 34px; font-size: 1.12rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 248, 240, .82);
  border-bottom: 1px solid rgba(120, 72, 30, .08);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--script); font-size: 1.55rem; color: var(--orange); padding-top: 6px; }
.brand__name--sm { font-size: 1.25rem; }
.nav__links { margin-left: auto; display: flex; gap: 26px; font-weight: 700; }
.nav__links a { color: var(--ink-soft); position: relative; }
.nav__links a:hover { color: var(--orange); }
.nav__cta { padding: 10px 18px; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 900; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 20px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  list-style: none; display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap;
}
.hero__facts li { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.hero__facts strong { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 900; }

/* ---- CSS game board ---- */
.hero__stage { position: relative; display: grid; place-items: center; max-width: 100%; overflow: hidden; padding: 8px 0; }
.board {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  width: min(360px, 88%); aspect-ratio: 1;
  padding: 14px; border-radius: 26px;
  background: var(--board-bg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}
.board__glow {
  position: absolute; inset: -14% -8% -20%; z-index: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 176, 74, .55), transparent 72%);
  filter: blur(6px);
}
.cell { border-radius: 14px; background: var(--cell-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-width: 0; }
.cell.empty { background: rgba(0, 0, 0, .05); }
.cell .e { width: 48%; height: auto; margin-bottom: 3px; display: block; }
.cell .v { position: absolute; top: 5px; right: 8px; font-weight: 900; font-size: .72rem; color: var(--tx, #7a5a34); opacity: .85; }
.cell .n { font-size: .56rem; font-weight: 800; color: var(--tx, #7a5a34); text-transform: none; }
.t2 { --tile: #FFFBEA; --tx: #7a5a34; background: var(--tile); }
.t3 { --tile: #FDE9BE; --tx: #7a5a34; background: var(--tile); }
.t4 { --tile: #FBD89B; --tx: #6b4a1f; background: var(--tile); }
.t5 { --tile: #FF9E5E; --tx: #5a2a12; background: var(--tile); }
.t7 { --tile: #E4573B; --tx: #fff; background: var(--tile); }
.t8 { --tile: #F5C542; --tx: #6b4a1f; background: var(--tile); }
.cell.hot { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.cell.pop { animation: pop 2.6s ease-in-out infinite; }
@keyframes pop { 0%, 82%, 100% { transform: none; } 88% { transform: scale(1.12); } 94% { transform: scale(.97); } }
.combo-badge {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(3deg);
  z-index: 5; background: linear-gradient(135deg, var(--orange-2), var(--red));
  color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.combo-badge b { color: #FFE9C7; }

.float { position: absolute; z-index: 3; width: 44px; height: auto; display: block; filter: drop-shadow(0 8px 12px rgba(120, 72, 30, .25)); }
.float--1 { top: 1%; left: 2%; width: 46px; animation: bob 5s ease-in-out infinite; }
.float--2 { top: 6%; right: 0%; width: 54px; animation: bob 6s ease-in-out infinite .6s; }
.float--3 { bottom: 5%; left: -1%; width: 40px; animation: bob 4.5s ease-in-out infinite .3s; }
.float--4 { bottom: 11%; right: 4%; width: 34px; animation: bob 5.5s ease-in-out infinite .9s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

.hero__wave {
  margin-top: 20px; height: 60px;
  background: radial-gradient(60% 100% at 50% 0, rgba(255, 190, 130, .35), transparent 70%);
}

/* ===================== SECTIONS ===================== */
.section { padding: 74px 0; }
.section--tint { background: linear-gradient(180deg, transparent, var(--cream-2) 12% 88%, transparent); }
.section__head { text-align: center; max-width: 40ch; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; }

/* ---- features bento ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(120, 72, 30, .06);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--wide { grid-column: span 2; }
.card__emoji {
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, #FFE7CC, #FFD3A6);
}
.card__emoji img { width: 38px; height: 38px; display: block; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

/* ---- screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.phone {
  background: #1c1310; border-radius: 34px; padding: 10px;
  box-shadow: var(--shadow-lg); transition: transform .2s ease;
}
.phone img { border-radius: 24px; width: 100%; height: auto; display: block; }
.phone figcaption {
  color: #fff; text-align: center; font-weight: 800; font-size: .9rem;
  padding: 10px 0 4px; letter-spacing: .02em;
}
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone:nth-child(2n):hover { transform: translateY(-6px) rotate(1deg); }

/* ---- steps ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: var(--paper); border-radius: var(--r-lg);
  padding: 34px 28px 28px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(120, 72, 30, .06);
}
.step__num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff; font-weight: 900; box-shadow: 0 8px 18px var(--ring);
}
.step__glyph { width: 60px; height: 60px; margin: 8px auto 14px; display: grid; place-items: center; }
.step__glyph img { width: 56px; height: 56px; display: block; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ---- daily spotlight ---- */
.spotlight { position: relative; overflow: hidden; }
.spotlight__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.spotlight__grid > * { min-width: 0; }
.spotlight__copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; margin-bottom: 18px; }
.spotlight__copy p { color: var(--ink-soft); font-size: 1.1rem; max-width: 48ch; margin-bottom: 26px; }
.phone--lg { max-width: 320px; margin-inline: auto; }

/* ---- themes ---- */
.themes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.theme {
  background: var(--bg); border-radius: var(--r-md); padding: 18px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(120, 72, 30, .08);
}
.theme__swatch {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 14px;
}
.theme__swatch i {
  width: 26px; height: 26px; border-radius: 8px; display: block;
  background: var(--board); box-shadow: inset 0 0 0 4px var(--cell);
}
.theme h3 { font-size: 1.05rem; }
.theme p { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.theme--dark { color: #FCEFE0; }
.theme--dark p { color: #E4C9AE; }

/* ===================== CTA ===================== */
.cta { padding: 90px 0; text-align: center; }
.cta__inner {
  max-width: 640px; margin-inline: auto;
  background: linear-gradient(135deg, #FFE7CF, #FFD9A8);
  border-radius: 36px; padding: 52px 32px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, .6);
}
.cta__icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 18px; box-shadow: var(--shadow-md); }
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 6px; }
.cta__buttons { margin-top: 26px; }
.cta__note { font-size: .85rem; opacity: .8; margin-top: 14px; }

/* ===================== FOOTER ===================== */
.footer { padding: 40px 0 60px; border-top: 1px solid rgba(120, 72, 30, .1); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer__by { font-weight: 700; color: var(--ink-soft); }
.footer__legal { font-size: .85rem; color: var(--ink-soft); opacity: .8; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__stage { order: -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .spotlight__grid { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .shots { grid-template-columns: 1fr 1fr; }
  .themes { grid-template-columns: 1fr 1fr; }
  .hero__facts { gap: 20px; }
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .cell.pop { animation: none; }
}
