/* Food Empire website — page shell: nav, hero, marquee, how-it-plays, gallery, CTA, footer */

/* ----------------------------------------------------------- progress --- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--gold-edge), var(--gold), var(--gold-light)); }

/* ---------------------------------------------------------------- nav --- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 12px var(--glow); transition: transform .4s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b { font: 400 22px/1 var(--ff-display); letter-spacing: .02em; }
.brand b span { color: var(--brand); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: transform .2s, border-color .2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links { position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none; transition: .25s; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-actions { margin-left: auto; }
}

/* --------------------------------------------------------------- hero --- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 150px; position: relative; overflow: hidden; }
.hero::before { /* soft gold glow */
  content: ""; position: absolute; width: 900px; height: 900px; right: -220px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-copy .eyebrow { animation: pop .7s .1s both; }
.hero h1 { font: 400 clamp(56px, 9.5vw, 124px)/.9 var(--ff-display); margin: 0 0 8px; letter-spacing: .01em; }
.hero h1 .l1 { display: block; color: var(--ink); animation: drop .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.hero h1 .l2 { display: block; animation: drop .9s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.hero .sub { font: 400 clamp(20px, 2.6vw, 30px)/1.1 var(--ff-display); color: var(--money); margin-bottom: 22px; animation: pop .7s .5s both; letter-spacing: .04em; }
.hero .tagline { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--ink); margin-bottom: 10px; animation: fade-up .8s .6s both; }
.hero .blurb { color: var(--ink-2); max-width: 540px; animation: fade-up .8s .7s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; animation: fade-up .8s .85s both; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; animation: fade-up .8s 1s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.soon-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none !important; box-shadow: var(--shadow); }
.soon-badge svg { width: 30px; height: 30px; }
.soon-badge small { display: block; font: 700 11px/1 var(--ff-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.soon-badge strong { display: block; font: 800 19px/1.1 var(--ff-body); }

/* hero stage: sunburst + Tycoon + floating food */
.hero-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.sunburst { position: absolute; inset: 4%; border-radius: 50%; overflow: hidden;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 10deg, var(--gold-light) 10deg 20deg);
  animation: spin 60s linear infinite; box-shadow: 0 30px 80px var(--glow);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 71%); mask: radial-gradient(circle, #000 55%, transparent 71%); }
.podium { position: absolute; left: 50%; bottom: 13%; width: 58%; height: 13%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, var(--gold-light), var(--gold) 55%, var(--gold-edge));
  box-shadow: 0 16px 0 var(--gold-edge), 0 34px 50px rgba(0, 0, 0, .25); }
.tycoon { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .25)); }
.tycoon .sprite { --w: 228px; --h: 444px; --frames: 4; --dur: 1s; animation-direction: alternate; }
@media (max-width: 600px) { .tycoon .sprite { --w: 160px; --h: 312px; } }
.float-item { position: absolute; z-index: 4; animation: float var(--t, 5s) ease-in-out infinite; animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .22)); transition: translate .3s ease-out; }
.float-item img { width: var(--s, 72px); height: auto; }
.cash-pop { position: absolute; z-index: 5; font: 400 clamp(22px, 3vw, 34px)/1 var(--ff-display); color: #2E7D32;
  -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  animation: rise 3.2s ease-out infinite; animation-delay: var(--delay, 0s); opacity: 0; }

/* the street at the bottom of the hero, where crew walk across */
.street { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--brand-soft)); }
.street::after { content: ""; position: absolute; left: 0; right: 0; bottom: 34px; border-top: 3px dashed var(--border-strong); }
.walker { position: absolute; bottom: 10px; left: 0; animation: walk-across var(--t, 22s) linear infinite; animation-delay: var(--delay, 0s); }
.walker .sprite { --dur: .7s; transform: scale(.62); transform-origin: bottom left; }

.scroll-cue { position: absolute; left: 50%; bottom: 138px; transform: translateX(-50%); z-index: 3; color: var(--ink-3);
  font: 700 12px/1 var(--ff-body); letter-spacing: .2em; text-transform: uppercase; display: grid; justify-items: center; gap: 8px; text-decoration: none !important; }
.scroll-cue i { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .blurb { margin-inline: auto; }
  .hero-ctas, .hero-chips { justify-content: center; }
  .hero-stage { max-width: 420px; order: -1; }
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------ marquee --- */
.marquee { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #3A2A06; overflow: hidden;
  border-block: 3px solid var(--gold-edge); transform: rotate(-1.5deg); margin: -20px -10px 0; position: relative; z-index: 5;
  box-shadow: 0 14px 30px var(--glow); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font: 400 22px/1 var(--ff-display); letter-spacing: .04em; white-space: nowrap; }
.marquee-item img { width: 38px; height: 38px; object-fit: contain; }
.marquee-item::after { content: "★"; margin-left: 22px; color: var(--gold-edge); }

/* ------------------------------------------------------- how it plays --- */
.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.phone { position: relative; width: min(330px, 100%); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 42px; padding: 12px;
  background: linear-gradient(145deg, #2a2a2e, #0d0d10); box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3a40; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 22%; height: 18px; margin-left: -11%; border-radius: 12px; background: #0d0d10; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone-wrap { position: relative; }
.phone-wrap .cash-pop { top: 44%; left: 30%; }
.phone-wrap .float-item { --s: 64px; }
.steps { list-style: none; padding: 0; margin: 0; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 20px); }
.steps .coin { position: absolute; left: 21px; top: 0; width: 24px; height: 24px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #fff6c9, var(--gold) 45%, var(--gold-edge)); box-shadow: 0 0 0 4px var(--bg), 0 4px 10px var(--glow);
  animation: coin-path 7s ease-in-out infinite; }
@keyframes coin-path { 0% { top: 10px; } 90%, 100% { top: calc(100% - 34px); } }
.step { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 18px; padding: 14px 0; align-items: start; }
.step-num { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--surface); border: 2px solid var(--border-strong); box-shadow: var(--shadow); font-size: 30px; transition: transform .3s; }
.step:hover .step-num { transform: rotate(-6deg) scale(1.08); border-color: var(--brand); }
.step h3 { font: 400 24px/1.1 var(--ff-display); margin: 6px 0 6px; letter-spacing: .02em; }
.step h3 small { font: 800 13px/1 var(--ff-body); color: var(--brand); letter-spacing: .14em; margin-right: 8px; vertical-align: 3px; }
.step p { color: var(--ink-2); margin: 0; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.rule { padding: 20px; border-radius: var(--r-card); border: 2px dashed var(--border-strong); background: var(--surface-alt); }
.rule b { display: block; font: 400 20px/1.15 var(--ff-display); color: var(--brand); margin-bottom: 6px; letter-spacing: .02em; }
.rule span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } .rules { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ gallery --- */
.gallery { position: relative; }
.gallery-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(16px, calc((100vw - var(--container)) / 2)) 40px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: clamp(220px, 26vw, 280px); scroll-snap-align: center; perspective: 900px; margin: 0; }
.shot .phone { width: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.shot:hover .phone { transform: translateY(-10px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.shot figcaption { text-align: center; margin-top: 18px; font: 400 18px/1.15 var(--ff-display); letter-spacing: .03em; color: var(--ink); }
.shot figcaption small { display: block; font: 700 14px/1.3 var(--ff-body); color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; }

/* ---------------------------------------------------------------- CTA --- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, var(--navy), #24335a); color: #FFF3E0; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 87, .10) 0 8deg, transparent 8deg 16deg); animation: spin 90s linear infinite; }
.cta-band > * { position: relative; }
.cta-band img.cta-icon { width: 110px; height: 110px; border-radius: 28px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: float 5s ease-in-out infinite; }
.cta-band h2 { font: 400 clamp(32px, 5vw, 56px)/1.05 var(--ff-display); color: #FFC857; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 243, 224, .8); max-width: 560px; margin: 0 auto 26px; font-size: 18px; }
.cta-band .soon-badge { background: #FFF3E0; color: #15203A; }

/* ------------------------------------------------------------- footer --- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font: 800 13px/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); font-weight: 600; }
.footer a:hover { color: var(--brand); }
.footer .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
