/* Idle Grill Master landing — palette mirrors the app's GrillColors */
:root {
  --bg: #11100E;
  --panel: #1D1814;
  --card: #2A211B;
  --card-hover: #33271F;
  --orange: #F97316;
  --glow: #FFB347;
  --bronze: #7A4A1D;
  --green: #84CC16;
  --text: #FFF7ED;
  --muted: #C7B8A8;
  --display: "Alfa Slab One", "Rockwell", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--glow); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #1a0d02; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 16, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122, 74, 29, 0.35);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 10px; }
.brand-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--glow); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; white-space: nowrap;
  border-radius: 999px; padding: 10px 22px; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--glow), var(--orange));
  color: #2a1200;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(249, 115, 22, 0.16), transparent 65%),
    radial-gradient(700px 480px at 12% 85%, rgba(122, 74, 29, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.eyebrow {
  color: var(--orange); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.flame-text {
  background: linear-gradient(180deg, var(--glow) 10%, var(--orange) 55%, #dc2626 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin-bottom: 30px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges.center { justify-content: center; }
.badge img { height: 60px; width: auto; }
.badge {
  display: inline-block; border-radius: 10px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.badge:hover { transform: translateY(-2px); filter: brightness(1.1); }
.badge.badge-match {
  position: relative;
  box-shadow: 0 0 0 2px var(--glow), 0 6px 26px rgba(255, 179, 71, 0.35);
}
.platform-hint { margin-top: 12px; color: var(--green); font-weight: 600; font-size: 0.92rem; }
.fineprint { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px; }
.stat-chips li {
  background: var(--panel); border: 1px solid rgba(122, 74, 29, 0.55);
  color: var(--muted); border-radius: 999px; padding: 7px 16px;
  font-size: 0.85rem; font-weight: 600;
}

/* Hero art */
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.chef { position: relative; z-index: 2; width: min(400px, 82%); border-radius: 50%; animation: bob 5s ease-in-out infinite; }
.chef-glow {
  position: absolute; z-index: 1; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.42), rgba(249, 115, 22, 0.08) 55%, transparent 72%);
  filter: blur(8px);
  animation: pulse 5s ease-in-out infinite;
}
.float-food { position: absolute; z-index: 3; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.5)); }
.float-1 { top: 6%; left: 4%; animation: bob 4.2s ease-in-out infinite 0.3s; }
.float-2 { bottom: 10%; left: 10%; animation: bob 4.8s ease-in-out infinite 1.1s; }
.float-3 { top: 14%; right: 4%; animation: bob 5.4s ease-in-out infinite 0.7s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* Ember particles */
.hero-embers { position: absolute; inset: 0; pointer-events: none; }
.hero-embers span {
  position: absolute; bottom: -8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow); opacity: 0;
  animation: ember 9s linear infinite;
}
.hero-embers span:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 10s; }
.hero-embers span:nth-child(2) { left: 24%; animation-delay: 2.4s; width: 4px; height: 4px; }
.hero-embers span:nth-child(3) { left: 46%; animation-delay: 5s;   animation-duration: 11s; }
.hero-embers span:nth-child(4) { left: 62%; animation-delay: 1.2s; width: 5px; height: 5px; }
.hero-embers span:nth-child(5) { left: 78%; animation-delay: 3.6s; animation-duration: 12s; }
.hero-embers span:nth-child(6) { left: 90%; animation-delay: 6.2s; width: 4px; height: 4px; }
@keyframes ember {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  8%   { opacity: 0.85; }
  100% { transform: translateY(-92vh) translateX(38px) scale(0.2); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--panel); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.kicker {
  color: var(--orange); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.78rem; margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lede { color: var(--muted); max-width: 44em; margin-bottom: 8px; }

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px;
}
.card {
  background: var(--card); border: 1px solid rgba(122, 74, 29, 0.4);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.card:hover { background: var(--card-hover); transform: translateY(-4px); border-color: rgba(255, 179, 71, 0.55); }
.card img { width: 88px; height: 88px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--glow); }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Locations scroller */
.loc-scroller {
  display: flex; gap: 20px; overflow-x: auto; padding: 44px 24px 12px;
  max-width: calc(var(--maxw) + 48px); margin: 0 auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--bronze) transparent;
}
.loc-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--card); border: 1px solid rgba(122, 74, 29, 0.4);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.loc-card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 71, 0.55); }
.loc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.loc-card figcaption {
  padding: 14px 18px; font-family: var(--display); font-size: 1rem;
  display: flex; align-items: baseline; gap: 10px;
}
.loc-step { color: var(--orange); font-size: 0.85rem; }

/* Menu marquee */
.marquee { overflow: hidden; margin-top: 44px; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 36px; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.menu-item img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.5)); }
.menu-item span { color: var(--muted); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Final CTA */
.cta-final { padding-bottom: 100px; }
.cta-panel {
  max-width: 760px; margin: 0 auto; text-align: center; padding: 56px 32px;
  background:
    radial-gradient(480px 260px at 50% 0%, rgba(249, 115, 22, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid rgba(122, 74, 29, 0.5); border-radius: 28px;
}
.cta-logo { width: 200px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 12px 28px rgba(249, 115, 22, 0.3)); }
.cta-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-panel p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(122, 74, 29, 0.35); background: #0C0B0A; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.footer-brand img { opacity: 0.9; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; }
.footer-links { display: flex; justify-content: center; gap: 26px; list-style: none; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { color: var(--glow); }
.footer-legal { color: #8a7d6f; font-size: 0.78rem; line-height: 1.7; max-width: 56em; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 52px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-badges { justify-content: center; }
  .stat-chips { justify-content: center; }
  .hero-art { order: -1; min-height: 300px; }
  .chef { width: min(300px, 70%); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .badge img { height: 52px; }
  .nav-cta { padding: 8px 16px; font-size: 0.88rem; }
  .brand-name { font-size: 0.95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chef, .chef-glow, .float-food, .hero-embers span, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .badge, .loc-card { transition: none; }
}
