/* ============================================================
   WAITR — core styles (brand, nav, hero)
   Palette pulled from the in-app mocks.
============================================================ */
:root {
  --coral:        #FF6F5E;
  --coral-strong: #E8553F;
  --coral-soft:   #FFD9D0;
  --green:        #1BA94C;
  --green-soft:   #D9F2E0;
  --blue:         #2D6FF7;
  --amber:        #FFB23E;

  --cream:        #FDF4EE;
  --cream-2:      #F7E9DF;
  --ink:          #16110F;
  --ink-2:        #211915;
  --charcoal:     #2B211C;
  --paper:        #FFFFFF;
  --muted:        #8A7A72;
  --muted-2:      #5C4F49;
  --line:         rgba(43, 33, 28, 0.10);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Clash Display", "Plus Jakarta Sans", system-ui, sans-serif;

  --maxw: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -18px rgba(43, 33, 28, 0.28);
  --shadow-card: 0 10px 30px -12px rgba(43, 33, 28, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); background: var(--ink); color: #F4EBE5; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; will-change: transform; }
.btn i { transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 30px -10px rgba(255,111,94,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(255,111,94,.9); }
.btn-ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid var(--line-on-dark); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }

/* ============================================================
   NAV — floating glass pill (Apple-style)
============================================================ */
.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 20px; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  width: 100%; max-width: 940px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 9px 9px 22px; border-radius: 999px;
  background: rgba(28, 21, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.55);
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s, max-width .5s var(--ease);
}
.nav.scrolled .nav-inner { max-width: 900px; background: rgba(20, 15, 13, 0.78); border-color: rgba(255,255,255,0.13); }

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.brand .dot { width: 28px; height: 28px; border-radius: 9px; background: var(--coral); display: grid; place-items: center; color: #fff; font-size: 15px; box-shadow: 0 6px 16px -4px rgba(255,111,94,.8); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; font-size: 14.5px; font-weight: 500; color: #EADDD5; padding: 8px 16px; border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: rgba(255,255,255,.08); border: 1px solid var(--line-on-dark); color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }

/* mobile sheet */
.mobile-sheet { position: fixed; inset: 0; z-index: 99; background: rgba(18,13,11,.96); backdrop-filter: blur(8px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity .3s var(--ease); }
.mobile-sheet.open { display: flex; opacity: 1; }
.mobile-sheet a { font-family: var(--font-display); font-size: 30px; color: #fff; padding: 12px; }
.mobile-sheet .btn { margin-top: 16px; }

/* ============================================================
   HERO — no 3D, device + floating cards
============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 150px; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255,111,94,.22), transparent 70%),
    radial-gradient(50% 45% at 85% 60%, rgba(45,111,247,.14), transparent 70%),
    radial-gradient(45% 45% at 12% 70%, rgba(255,178,62,.12), transparent 70%),
    linear-gradient(180deg, #1A1411 0%, #16110F 55%, #120D0B 100%);
}
.hero-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 3px 3px; }
.hero-content { position: relative; z-index: 5; max-width: 820px; }
.hero-kicker { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,138,107,.95); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); color: #FFF6F1; }
.hero h1 .accent { background: linear-gradient(120deg, #FF8A6B, #FF6F5E 60%, #E8553F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 24px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: #D9C9C0; max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-scan-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-on-dark); font-size: 13.5px; color: #E9DCD4; }
.hero-scan-pill .qr { width: 26px; height: 26px; border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--ink); font-size: 15px; }

/* hero stage with device */
.hero-stage { position: relative; z-index: 5; margin-top: 56px; width: 100%; display: flex; justify-content: center; }
.hero-device { position: relative; width: 290px; height: 600px; border-radius: 46px; padding: 12px; background: #0c0907; border: 2px solid #2a211c; box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04) inset; }
.hero-device::before { content:""; position:absolute; top:18px; left:50%; transform:translateX(-50%); width:110px; height:24px; background:#0c0907; border-radius:0 0 16px 16px; z-index:4; }
.hero-device .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #FDF4EE; }
.hero-device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-device .glow { position: absolute; inset: -50px; border-radius: 70px; background: radial-gradient(circle at 50% 30%, rgba(255,111,94,.45), transparent 65%); filter: blur(40px); z-index: -1; }

/* floating glass cards */
.float-card { position: absolute; z-index: 6; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; gap: 11px; animation: floaty 5s var(--ease) infinite; }
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; }
.float-card .fc-t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.float-card .fc-s { font-size: 11.5px; color: rgba(255,255,255,.7); }
.fc-1 { top: 90px; left: calc(50% - 290px); animation-delay: 0s; }
.fc-2 { top: 250px; right: calc(50% - 300px); animation-delay: .6s; }
.fc-3 { bottom: 80px; left: calc(50% - 270px); animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.ic-coral { background: rgba(255,111,94,.22); color: #FFB3A6; }
.ic-green { background: rgba(27,169,76,.22); color: #7CE2A0; }
.ic-amber { background: rgba(255,178,62,.22); color: #FFD79A; }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:4px; height:7px; border-radius:3px; background:#fff; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0; transform:translate(-50%,12px)} }

/* loader */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--ink); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader .l-brand { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: #fff; display: flex; align-items: center; gap: 12px; }
.loader .l-brand .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--coral); display: grid; place-items: center; }
.loader .bar { margin-top: 22px; width: 180px; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 3px; transition: width .3s ease; }

/* ---------- responsive ---------- */
/* hide hero floating cards early — their absolute calc() positions
   can push the layout wider than the viewport on tablets */
@media (max-width: 1024px) { .float-card { display: none; } }

@media (max-width: 860px) {
  .nav { top: 12px; padding: 0 14px; }
  .nav-inner { padding: 8px 8px 8px 18px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 124px; min-height: auto; padding-bottom: 70px; }
  .hero-stage { margin-top: 40px; }
  .scroll-hint { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero .lead { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-device { width: 248px; height: 514px; border-radius: 40px; }
  .hero-device .screen { border-radius: 30px; }
  .brand { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero-device { width: 220px; height: 458px; }
  .hero h1 { font-size: 36px; }
}
