/* Oyoo Foods — Coming Soon page */

:root {
  --brand: #ff322e;
  --brand-dark: #d91f1b;
  --brand-soft: #ffe5e4;
  --ink: #1f2937;
  --muted: #6b7280;
  --cream: #fff8f3;
  --white: #ffffff;
  --sky-top: #fde8dc;
  --road: #2b2f38;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --scene-h: clamp(150px, 23vh, 250px);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #fff 0%, var(--cream) 45%, var(--sky-top) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout: one screen, scene pinned to the bottom ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

/* ---------- Background decoration ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.blob--one {
  width: 420px;
  height: 420px;
  background: #ffb4a8;
  top: -140px;
  right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob--two {
  width: 340px;
  height: 340px;
  background: #ffd9a0;
  top: 30%;
  left: -160px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(40px, 60px) scale(1.1);
  }
}

.floaters span {
  position: fixed;
  left: var(--x);
  top: var(--y);
  font-size: clamp(22px, 3vw, 38px);
  opacity: 0.85;
  z-index: 2;
  animation: float 6s ease-in-out var(--d) infinite;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.12));
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(16px, 3vh, 28px) 16px 0;
}
.brand__mark {
  width: clamp(46px, 6vw, 60px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(255, 50, 46, 0.35);
  animation: pop 0.8s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.brand__mark .steam {
  stroke-dasharray: 90;
  animation: steam 2.4s ease-in-out infinite;
}
@keyframes steam {
  0% {
    stroke-dashoffset: 90;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -90;
    opacity: 0;
  }
}
.brand__name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand__name b {
  color: var(--brand);
  font-weight: 800;
}
@keyframes pop {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(12px, 2vh, 24px) 16px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
  animation: rise 0.7s 0.1s both;
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(255, 50, 46, 0.6);
  animation: ping 1.6s infinite;
}
@keyframes ping {
  to {
    box-shadow: 0 0 0 10px rgba(255, 50, 46, 0);
  }
}
.title {
  font-size: clamp(44px, 9vw, 104px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  animation: rise 0.7s 0.2s both;
}
.title__accent {
  color: var(--brand);
  position: relative;
  display: inline-block;
}
.title__accent::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.04em;
  height: 0.14em;
  border-radius: 99px;
  background: var(--brand-soft);
  z-index: -1;
  transform-origin: left;
  animation: underline 0.9s 0.8s both;
}
@keyframes underline {
  from {
    transform: scaleX(0);
  }
}
.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.9;
  color: var(--brand-dark);
  animation: rise 0.7s 0.3s both;
}
.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.6;
  animation: rise 0.7s 0.4s both;
}
@keyframes rise {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(8px, 1.5vw, 14px);
  margin-top: 4px;
  animation: rise 0.7s 0.5s both;
}
.countdown__box {
  min-width: clamp(64px, 9vw, 86px);
  padding: 10px 6px 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  border: 1px solid #f3e4df;
}
.countdown__box b {
  display: block;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown__box span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown.is-live .countdown__box b {
  color: var(--brand);
}

/* Perks */
.perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: rise 0.7s 0.6s both;
}
.perks li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Order status bubble ---------- */
.status {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
  font-size: 14px;
  min-width: 260px;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}
.status.is-changing {
  transform: translateY(8px) scale(0.97);
  opacity: 0;
}
.status__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  font-size: 20px;
}
.status b {
  display: block;
  font-weight: 600;
}
.status small {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Delivery scene ---------- */
.scene {
  position: relative;
  z-index: 0;
  height: var(--scene-h);
  /* Sides are clipped for the scrolling layers; the mountains may rise above the scene. */
  clip-path: inset(-400% 0 0 0);
  overflow-x: clip;
}
.brand,
.hero,
.status {
  position: relative;
  z-index: 2;
}
.sun {
  position: absolute;
  right: 20%;
  top: -115%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd166 55%, rgba(255, 209, 102, 0) 70%);
  opacity: 0.9;
}
.cloud {
  position: absolute;
  height: 22px;
  border-radius: 20px;
  background: #fff;
  opacity: 0.9;
  animation: clouds linear infinite;
}
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud::before {
  width: 30px;
  height: 30px;
  left: 12px;
  top: -14px;
}
.cloud::after {
  width: 22px;
  height: 22px;
  left: 36px;
  top: -9px;
}
.cloud--a {
  width: 80px;
  top: 12%;
  animation-duration: 38s;
}
.cloud--b {
  width: 60px;
  top: 26%;
  animation-duration: 52s;
  animation-delay: -20s;
}
@keyframes clouds {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-120px);
  }
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}
.skyline .track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: scroll linear infinite;
}
.skyline svg {
  display: block;
  flex: none;
  height: 100%;
  width: auto;
}
.skyline--far {
  bottom: 46px;
  height: calc(var(--scene-h) * 2.1);
}
.skyline--far .track {
  animation-duration: 90s;
}
.skyline--near {
  bottom: 46px;
  height: 48%;
}
.skyline--near .track {
  animation-duration: 30s;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  background: var(--road);
  border-top: 6px solid #3a3f4b;
}
.road__lines {
  position: absolute;
  left: 0;
  top: 21px;
  width: 200%;
  height: 5px;
  background: repeating-linear-gradient(90deg, #ffd166 0 40px, transparent 40px 80px);
  animation: road 0.9s linear infinite;
}
@keyframes road {
  to {
    transform: translateX(-80px);
  }
}

.rider {
  position: absolute;
  bottom: 22px;
  left: 50%;
  /* Never taller than the scene, so the rider is not cut off on short screens. */
  width: min(clamp(170px, 20vw, 260px), calc((var(--scene-h) - 30px) * 1.6));
  transform: translateX(-65%);
  animation: enter 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes enter {
  from {
    left: -30%;
  }
}
.scooter {
  display: block;
  width: 100%;
  height: auto;
  animation: bump 0.45s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.25));
}
@keyframes bump {
  to {
    transform: translateY(-3px) rotate(-0.6deg);
  }
}
.wheel {
  animation: spin 0.5s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.box {
  animation: wobble 1.2s ease-in-out infinite;
  transform-origin: 65px 120px;
}
@keyframes wobble {
  50% {
    transform: rotate(-2deg);
  }
}
.speed {
  position: absolute;
  left: -36%;
  top: 30%;
  width: 40%;
  display: grid;
  gap: 10px;
}
.speed i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 46, 0.7));
  animation: whoosh 0.7s linear infinite;
}
.speed i:nth-child(2) {
  width: 70%;
  margin-left: 30%;
  animation-delay: 0.2s;
}
.speed i:nth-child(3) {
  width: 85%;
  margin-left: 15%;
  animation-delay: 0.4s;
}
@keyframes whoosh {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}
.puff {
  position: absolute;
  left: 2%;
  bottom: 14%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(156, 163, 175, 0.55);
  animation: puff 0.9s ease-out infinite;
}
@keyframes puff {
  to {
    transform: translate(-40px, -14px) scale(2.4);
    opacity: 0;
  }
}

.pin {
  position: absolute;
  right: 9%;
  bottom: 52px;
  width: 38px;
  text-align: center;
}
.pin svg {
  width: 100%;
  animation: hop 1.4s ease-in-out infinite;
}
.pin__shadow {
  display: block;
  width: 24px;
  height: 6px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  animation: shadow 1.4s ease-in-out infinite;
}
@keyframes hop {
  50% {
    transform: translateY(-12px);
  }
}
@keyframes shadow {
  50% {
    transform: scale(0.6);
  }
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--road);
  color: #cbd5e1;
  font-size: 13px;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}
.social a:hover,
.social a:focus-visible {
  background: var(--brand);
}
.social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .floaters span:nth-child(1),
  .floaters span:nth-child(n + 4) {
    display: none;
  }
  :root {
    --scene-h: 170px;
  }
  .hero {
    gap: 8px;
    padding-top: 8px;
  }
  .lead {
    font-size: 13.5px;
  }
  .urdu {
    line-height: 1.7;
  }
  .countdown__box {
    min-width: 0;
    flex: 1;
  }
  .countdown {
    width: 100%;
    max-width: 360px;
  }
  .status {
    min-width: 0;
    margin: 0 16px 10px;
  }
  .pin {
    right: 4%;
  }
  .foot {
    flex-direction: column;
    text-align: center;
  }
}

/* Short laptop screens: keep everything on one screen */
@media (min-width: 601px) and (max-height: 760px) {
  :root {
    --scene-h: 140px;
  }
  .lead {
    display: none;
  }
  .hero {
    gap: 8px;
    padding-block: 6px;
  }
  .title {
    font-size: clamp(44px, 8vw, 84px);
  }
  .status {
    margin-bottom: 6px;
  }
}

/* Respect people who turn animations off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
