/* =====================================================================
   Go& landing page — brand tokens from docs/eshini-mobile-brandbook.md
   Concept: "your scroll is a delivery ride"
   ===================================================================== */

:root {
  --primary: #FE018E;
  --primary-dark: #8B0050;
  --accent-yellow: #FFE21F;
  --cyan: #01ADEE;
  --cyan-promo: #00BCD4;
  --cyan-dark: #00838F;
  --text-primary: #212121;
  --text-secondary: #616161;
  --bg-light: #F6F6FA;
  --divider: #F0F2F5;
  --radius-card: 26px;
  --radius-pill: 28px;
  --font-ar: "Noto Kufi Arabic", sans-serif;
  --font-latin: "Montserrat", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* anchor jumps land below the fixed sticky nav */
[id] { scroll-margin-top: 86px; }

/* =====================================================================
   Splash screen
   ===================================================================== */

body.splash-lock { overflow: hidden; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
  transition: opacity 0.55s ease, visibility 0.55s;
}

.splash.splash--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* on wide screens the portrait video is shown whole; its own gradient
   background blends into the splash gradient on both sides */
@media (orientation: landscape) {
  .splash__video { object-fit: contain; }
}

body {
  font-family: var(--font-ar);
  color: var(--text-primary);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.7;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Route progress bar (fixed, top) ---------- */

.route-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 14px;
  z-index: 100;
  pointer-events: none;
}

.route-progress__track {
  position: absolute;
  top: 5px;
  inset-inline: 0;
  height: 4px;
  background-image: repeating-linear-gradient(to left, rgba(255, 255, 255, 0.45) 0 12px, transparent 12px 24px);
  opacity: 0.5;
}

.route-progress__fill {
  position: absolute;
  top: 5px;
  inset-inline-start: 0;
  height: 4px;
  width: 0%;
  background-image: repeating-linear-gradient(to left, var(--accent-yellow) 0 12px, transparent 12px 24px);
  filter: drop-shadow(0 0 6px rgba(255, 226, 31, 0.8));
}

.route-progress__scooter {
  position: absolute;
  top: -7px;
  inset-inline-start: 0;
  font-size: 22px;
  line-height: 1;
  /* RTL: rides right-to-left; the emoji natively faces left = direction of travel */
  transform: translateX(50%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: inset-inline-start 0.08s linear;
}

/* LTR (English): rides left-to-right, so mirror it to face right */
html[dir="ltr"] .route-progress__scooter {
  transform: translateX(-50%) scaleX(-1);
}

/* ---------- Sticky nav ---------- */

.sticky-nav {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 90;
  transform: translateY(-130%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-nav.is-shown { transform: translateY(0); }

.sticky-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(139, 0, 80, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(139, 0, 80, 0.35);
}

.sticky-nav__logo { height: 34px; width: auto; }

.sticky-nav__links {
  display: flex;
  gap: 22px;
}

.sticky-nav__links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.sticky-nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:active { transform: scale(0.96); } /* ScaleTap-style press feedback */

.btn--small { padding: 9px 20px; font-size: 0.88rem; }

.btn--primary {
  background: var(--accent-yellow);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(255, 226, 31, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 226, 31, 0.55);
}

.btn--frosted {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--frosted:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Language toggle ---------- */

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.lang-toggle:active { transform: scale(0.95); }

/* English mode: Latin-first font stack (Arabic glyphs still fall back cleanly) */
html[lang="en"] body {
  font-family: "Montserrat", "Noto Kufi Arabic", sans-serif;
}

/* ---------- Chips & accents ---------- */

.chip {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.chip--magenta {
  color: #fff;
  background: linear-gradient(to left, var(--primary-dark), var(--primary));
}

.chip--cyan {
  color: var(--cyan-dark);
  background: rgba(0, 188, 212, 0.12);
}

.text-magenta { color: var(--primary); }
.text-cyan { color: var(--cyan); }
.text-yellow-dark { color: #C9A800; }

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary) 70%, #ff2f9f);
  background-size: 160% 160%;
  animation: gradientDrift 12s ease-in-out infinite alternate;
  color: #fff;
  overflow: hidden;
}

@keyframes gradientDrift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

.hero__doodles,
.download__doodles {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(circle 3px at 12% 18%, #fff 100%, transparent 0),
    radial-gradient(circle 2px at 78% 12%, #fff 100%, transparent 0),
    radial-gradient(circle 3px at 90% 55%, #fff 100%, transparent 0),
    radial-gradient(circle 2px at 30% 70%, #fff 100%, transparent 0),
    radial-gradient(circle 2px at 55% 30%, #fff 100%, transparent 0),
    radial-gradient(circle 24px at 20% 40%, transparent 22px, #fff 23px, transparent 24px),
    radial-gradient(circle 18px at 85% 30%, transparent 16px, #fff 17px, transparent 18px),
    radial-gradient(circle 30px at 65% 80%, transparent 28px, #fff 29px, transparent 30px);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 420px; height: 420px;
  background: rgba(255, 226, 31, 0.18);
  top: -120px; left: -100px;
}

.hero__glow--2 {
  width: 380px; height: 380px;
  background: rgba(1, 173, 238, 0.20);
  bottom: 60px; right: -120px;
}

/* floating parallax emojis */
.hero__float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-size: clamp(26px, 3vw, 44px);
  opacity: 0.85;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(60, 0, 35, 0.35));
  will-change: transform;
}

.float-item:nth-child(2) { animation-delay: -1.4s; }
.float-item:nth-child(3) { animation-delay: -2.6s; }
.float-item:nth-child(4) { animation-delay: -3.4s; }
.float-item:nth-child(5) { animation-delay: -4.2s; }

@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.nav__logo { height: 54px; width: auto; }

.nav__cta { padding: 10px 22px; font-size: 0.9rem; }

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-block: 30px 60px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.35;
}

/* word-by-word entrance (spans injected by JS) */
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(3deg);
  animation: wordIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wd, 0s);
}

.hero__title .w--accent { color: var(--accent-yellow); }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero__subtitle {
  margin-top: 18px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-top: 40px;
}

.hero__stats li { display: grid; }

.hero__stats strong {
  font-family: var(--font-latin);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.hero__stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

.hero__stats strong span { font-size: inherit; color: inherit; font-family: inherit; }

.hero__art {
  display: grid;
  place-items: center;
}

.hero__foxy {
  max-height: 520px;
  width: auto;
  border-radius: 34px;
}

/* load-time rise-in for hero pieces */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 3D tilt (pointer-tracked by JS) ---------- */

.tilt {
  position: relative;
  border-radius: 34px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
  will-change: transform;
  box-shadow: 0 34px 70px rgba(60, 0, 35, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tilt img { display: block; }

/* art cards shrink-wrap their image (fixes empty slab next to the picture) */
.hero__art .tilt,
.foxy__art .tilt,
.download__art .tilt {
  width: fit-content;
  margin-inline: auto;
}

.tilt__glare {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tilt.is-tilting .tilt__glare { opacity: 1; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 2;
  background: rgba(60, 0, 35, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  padding-block: 14px;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 26px;
  white-space: nowrap;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}

.marquee__dot { color: var(--accent-yellow); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================================
   About / features
   ===================================================================== */

.about { padding-block: 90px 40px; }

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.5;
}

.section-head p { margin-top: 16px; color: var(--text-secondary); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 34px 28px;
  box-shadow: 0 18px 45px rgba(33, 33, 33, 0.06);
}

.feature-card.tilt { overflow: visible; box-shadow: 0 18px 45px rgba(33, 33, 33, 0.06); }

.feature-card.tilt .tilt__glare {
  inset: 0;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(254, 1, 142, 0.07), transparent 55%);
}

.feature-card__icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-card__icon--yellow { background: rgba(255, 226, 31, 0.25); color: #B89B00; }
.feature-card__icon--magenta { background: rgba(254, 1, 142, 0.10); color: var(--primary); }
.feature-card__icon--cyan { background: rgba(0, 188, 212, 0.12); color: var(--cyan-dark); }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* =====================================================================
   Journey — 4 steps along a dashed route
   ===================================================================== */

.journey {
  background: linear-gradient(to bottom, #FFF5FA, #fff);
  padding-block: 90px;
}

.journey__foxy {
  width: min(340px, 60vw);
  margin: 34px auto 10px;
  padding-bottom: 10px;
  border-bottom: 4px dashed rgba(254, 1, 142, 0.35);
}

.journey__foxy img {
  width: 100%;
  display: block;
  animation: journeyBob 2.4s ease-in-out infinite;
}

@keyframes journeyBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.journey__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.journey-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(139, 0, 80, 0.08);
  overflow: hidden;
}

.journey-card__num {
  position: absolute;
  top: 16px;
  inset-inline-start: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.journey-card__emoji {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 12px;
  margin-top: 14px;
}

.journey-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.journey-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.journey-card__cta {
  margin-top: 16px;
  font-size: 0.95rem;
  padding: 12px 24px;
}

@media (max-width: 1000px) {
  .journey__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .journey__steps { grid-template-columns: 1fr; }
}

/* =====================================================================
   Foxy
   ===================================================================== */

.foxy {
  background: var(--bg-light);
  padding-block: 80px;
}

.foxy__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.foxy__art { display: grid; place-items: center; }

.foxy__art .tilt {
  box-shadow: 0 24px 55px rgba(139, 0, 80, 0.16);
}

.foxy__art img {
  max-height: 460px;
  width: auto;
}

.foxy__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
}

.foxy__text p {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 52ch;
}

.foxy__points {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 14px;
  font-weight: 500;
}

.foxy__points li { display: flex; align-items: center; gap: 12px; }

.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.dot--yellow { background: var(--accent-yellow); box-shadow: 0 0 0 4px rgba(255, 226, 31, 0.25); }
.dot--magenta { background: var(--primary); box-shadow: 0 0 0 4px rgba(254, 1, 142, 0.15); }
.dot--cyan { background: var(--cyan-promo); box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.15); }

/* =====================================================================
   Download
   ===================================================================== */

.download {
  position: relative;
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
  color: #fff;
  padding-block: 90px;
  overflow: hidden;
}

.download__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.download__logo { height: 64px; width: auto; margin-bottom: 26px; }

.download__text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.5;
}

.download__text p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); }

.download__buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.btn--big {
  font-size: 1.2rem;
  padding: 18px 42px;
  gap: 12px;
}


.download__art .tilt { margin-inline: auto; }

.download__art img {
  max-height: 460px;
  width: auto;
}

/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  color: #fff;
  padding-block: 56px 30px;
  text-align: center;
}

.footer__logo { height: 48px; width: auto; margin-inline: auto; }

.footer__tagline { margin-top: 14px; color: rgba(255, 255, 255, 0.85); }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.footer__links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 0.95rem;
}

.footer__copy {
  margin-top: 34px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Instagram-style zoom entrance for section heads and artwork */
.reveal--zoom { transform: translateY(20px) scale(0.9); }

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

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 900px) {
  .hero__content,
  .foxy__grid,
  .download__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle, .foxy__text p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .download__buttons { align-items: center; }
  .hero__stats { justify-content: center; gap: 28px; }
  .hero__foxy { max-height: 400px; }
  .foxy__art img { max-height: 380px; }
  .foxy__points { justify-items: center; }
  .features { grid-template-columns: 1fr; }
  .download__logo { margin-inline: auto; }
  .download__art { order: -1; }
  .download__art img { max-height: 300px; }
  .sticky-nav__links { display: none; }
  .float-item { display: none; }
}

/* small phones: tighter rhythm, shorter page, full-width CTAs */
@media (max-width: 560px) {
  .container { width: 94%; }

  .nav { padding-block: 16px; }
  .nav__logo { height: 42px; }

  .hero__content { padding-block: 14px 44px; gap: 24px; }
  .hero__subtitle { font-size: 1rem; margin-top: 14px; }

  .hero__actions { margin-top: 24px; gap: 10px; }
  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero__stats { margin-top: 30px; gap: 12px; width: 100%; justify-content: space-around; }
  .hero__stats strong { font-size: 1.35rem; }
  .hero__stats span { font-size: 0.78rem; }

  .hero__foxy { max-height: 330px; }
  .marquee { padding-block: 10px; }
  .marquee__group { font-size: 0.88rem; gap: 20px; padding-inline-end: 20px; }

  .about { padding-block: 60px 28px; }
  .features { margin-top: 40px; gap: 18px; }
  .feature-card { padding: 26px 22px; }

  .journey { padding-block: 60px; }
  .journey__foxy { width: min(250px, 68vw); margin-top: 24px; }
  .journey__steps { margin-top: 30px; gap: 16px; }
  .journey-card { padding: 26px 20px; }
  .journey-card__emoji { font-size: 38px; }

  .foxy { padding-block: 56px; }
  .foxy__grid { gap: 30px; }
  .foxy__art img { max-height: 300px; }

  .download { padding-block: 60px; }
  .download__grid { gap: 26px; }
  .download__logo { height: 52px; margin-bottom: 18px; }
  .download__buttons { width: 100%; }
  .download__buttons .btn--big {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 28px;
  }

  .footer { padding-block: 44px 24px; }
  .footer__links { flex-wrap: wrap; gap: 14px 24px; }

  .sticky-nav { top: 10px; }
  .sticky-nav__inner { padding: 8px 16px; }
  .sticky-nav__logo { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .float-item { animation: none; }
  .marquee__track { animation: none; }
  .journey__foxy img { animation: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .hero__title .w { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tilt { transition: none; }
}
