/* ============================================================
   Foodler website — modern dark design
   Performance rules: animate only transform & opacity (GPU),
   no animated blurs/shadows, backdrop-filter only on the nav.
   ============================================================ */

:root {
  --petrol: #0f2530;
  --petrol-deep: #0a1a22;
  --petrol-card: #16303d;
  --teal: #5fc4b8;
  --orange: #ff6b35;
  --orange-deep: #f04e12;
  --orange-soft: #ff8a57;
  --cream: #fbf3e6;
  --white: #ffffff;
  --text: rgba(251, 243, 230, 0.92);
  --text-dim: rgba(251, 243, 230, 0.6);
  --text-faint: rgba(251, 243, 230, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  --grad: linear-gradient(120deg, var(--orange-soft), var(--orange) 45%, var(--orange-deep));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--petrol-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Static ambient glow — no animation, so it can never lag */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 107, 53, 0.14), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(95, 196, 184, 0.1), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(255, 107, 53, 0.08), transparent 60%);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--orange); color: var(--white); }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 26, 34, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.logo .mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  border-radius: 12px;
  background: var(--grad);
}

img.mark {
  object-fit: cover;
  background: none;
  border: 1px solid var(--line);
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--white); }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
  transition: transform 0.2s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(95, 196, 184, 0.35);
  background: rgba(95, 196, 184, 0.08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 800px;
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--white);
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub, .sub {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--text-dim);
}

.sub strong { color: var(--cream); }

/* ---------- Store badges ---------- */
.stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-badge:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.1); }
.store-badge svg { width: 26px; height: 26px; fill: var(--white); }
.store-badge .small { font-size: 11px; color: var(--text-dim); }
.store-badge .big { font-size: 17px; font-weight: 700; line-height: 1.1; }

/* ---------- Phone mockup ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  perspective: 1200px;
}

.phone {
  width: 340px;
  padding: 14px;
  border-radius: 48px;
  background: linear-gradient(160deg, #22424f, #0c1e27);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 107, 53, 0.12);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(2deg); }
  50% { transform: translateY(-14px) rotateX(0deg); }
}

.phone-screen {
  border-radius: 36px;
  background: var(--petrol);
  padding: 26px 18px 22px;
  text-align: left;
  overflow: hidden;
}

.ps-header .greet { font-size: 12px; color: var(--text-dim); }
.ps-header .title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}

.ps-search {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-faint);
}

.ps-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ps-cat {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
}

.ps-cat.hot { background: var(--grad); color: var(--white); }

.ps-card {
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--petrol-card);
  border: 1px solid var(--line);
}

.ps-card .img {
  height: 96px;
  background:
    radial-gradient(140px 70px at 30% 20%, rgba(255, 138, 87, 0.65), transparent 70%),
    radial-gradient(160px 90px at 75% 80%, rgba(95, 196, 184, 0.5), transparent 70%),
    linear-gradient(140deg, #23434f, #142b35);
}

.ps-card .body { padding: 14px 16px 16px; }
.ps-card .name { font-weight: 800; font-size: 15px; color: var(--white); }
.ps-card .meta { margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.ps-card .ai {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(95, 196, 184, 0.1);
  border: 1px solid rgba(95, 196, 184, 0.2);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cream);
}

/* ---------- Sections ---------- */
.block { padding: 96px 0; }

.section-label {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 20px;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
}

.section-sub {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-dim);
}

.section-sub em { color: var(--cream); font-style: normal; font-weight: 600; }

/* ---------- Steps (3 clicks) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.step .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.step h3 { margin-top: 18px; font-size: 20px; color: var(--white); letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 15px; color: var(--text-dim); }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 53, 0.4); }

.card .emoji {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.22);
}

.card h3 { margin-top: 18px; font-size: 19px; color: var(--white); letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
  margin-top: 48px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.gallery img:hover { transform: scale(1.025); }
.gallery img.tall { grid-row: span 2; }

/* ---------- CTA ---------- */
.cta { margin: 0 24px; }

.cta .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 32px;
  border-radius: 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(255, 138, 87, 0.25), transparent 70%),
    linear-gradient(160deg, #1a3742, #0c1f29);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 40px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p { color: var(--text-faint); font-size: 14px; }
footer .links { display: flex; gap: 24px; }
footer .links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
footer .links a:hover { color: var(--white); }

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 14px; }
.lang-switch a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.lang-switch a:hover { color: var(--white); }
.lang-switch .active { color: var(--white); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 24px; max-width: 760px; }
.legal h1 { color: var(--white); font-size: 36px; letter-spacing: -0.02em; }
.legal h2 { color: var(--white); margin-top: 32px; font-size: 22px; }
.legal p, .legal li { color: var(--text-dim); margin-top: 12px; font-size: 15px; }
.placeholder {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--cream);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 150%);
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--petrol-deep);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  max-width: calc(100vw - 48px);
  text-align: center;
}

.toast.show { transform: translate(-50%, 0); }

/* ---------- Scroll reveal (transform + opacity only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  .block { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery img.tall { grid-row: span 1; }
  .phone { width: 300px; }
  .cta .inner { padding: 56px 20px; border-radius: 28px; }
}
