:root {
  --background: #0b1020;
  --foreground: #f7f8fb;
  --muted-foreground: #a3adc2;
  --primary: #ffd500;
  --primary-foreground: #171b2b;
  --border: rgba(255, 255, 255, 0.1);
  --thruster: #4aa3ff;
  --gradient-gold: linear-gradient(180deg, #ffe45c 0%, #ffd500 55%, #e0a900 100%);
  --shadow-gold: 0 0 40px -8px rgba(255, 213, 0, 0.55);
  --radius: 0.75rem;
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

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

.wrap { margin: 0 auto; max-width: 72rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.wrap-narrow { margin: 0 auto; max-width: 48rem; padding-left: 1.5rem; padding-right: 1.5rem; }

.text-glow-gold { text-shadow: 0 0 26px rgba(255, 213, 0, 0.45); }
.text-primary { color: var(--primary); }
.muted { color: var(--muted-foreground); }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
}

/* ---------- Background ---------- */
.space {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}
.space__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transform: scale(1.08);
  will-change: transform;
}
.space__veil { position: absolute; inset: 0; background: rgba(11, 16, 32, 0.55); }
.space__stars { position: absolute; inset: 0; will-change: transform; }
.space__stars span {
  position: absolute;
  border-radius: 9999px;
  background: #fff;
  animation: twinkle 6s ease-in-out infinite;
}
.space__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 33%;
  background: linear-gradient(to top, var(--background), transparent);
}

/* ---------- Taxi ---------- */
.taxi { position: relative; }
.taxi__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 45%;
  height: 55%;
  transform: translateX(-50%);
  border-radius: 9999px;
  filter: blur(28px);
  background: radial-gradient(ellipse at top, var(--thruster), transparent 70%);
  animation: thruster-pulse 2.6s ease-in-out infinite;
}
.taxi__img {
  position: relative;
  width: 100%;
  animation: hover-float 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

/* ---------- Buttons ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.badges--center { justify-content: center; }

.store-badge {
  display: inline-block;
  transition: transform 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 52px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  text-align: center;
}
.hero__col { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__logo { width: 14rem; filter: drop-shadow(0 10px 40px rgba(255,213,0,0.25)); }
.hero__taxi-mobile { margin-top: 1.5rem; width: 86%; max-width: 24rem; }
.hero__taxi-desktop { display: none; }
.hero h1 { margin-top: 2rem; font-size: 2.25rem; font-weight: 700; text-transform: uppercase; }
.hero p { margin-top: 1rem; max-width: 28rem; font-size: 1rem; }
.hero .badges { margin-top: 2rem; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section__title { text-align: center; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { padding: 1.25rem; }
.card__num { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.card h3 { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; }

.world { text-align: center; }
.world h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; }
.world .taxi { margin: 2rem auto 0; width: 78%; max-width: 36rem; }
.rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.rules li {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 1.5rem; border-radius: 1rem; }
.cta h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; color: var(--primary); }
.cta .badges { margin-top: 2rem; justify-content: center; }

/* ---------- Legal ---------- */
.legal { padding-top: 3rem; padding-bottom: 5rem; }
.legal__logo { width: 11rem; }
.legal h1 { margin-top: 2.5rem; font-size: 1.875rem; font-weight: 700; text-transform: uppercase; }
.legal__body { margin-top: 2rem; padding: 1.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.legal__body p + p { margin-top: 1rem; }
.legal__back { display: inline-block; margin-top: 2rem; font-size: 0.875rem; color: var(--primary); }
.legal__back:hover { opacity: 0.8; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.footer__inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer img { height: 2.5rem; width: auto; opacity: 0.9; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer nav a { transition: color 0.18s ease; }
.footer nav a:hover { color: var(--primary); }
.footer__copy { font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .hero__logo { width: 18rem; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.125rem; }
  .section__title { font-size: 1.875rem; }
  .world h2, .cta h2, .legal h1 { font-size: 2.25rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: center; text-align: left; padding-top: 4rem; padding-bottom: 7rem; }
  .hero__col { width: 50%; align-items: flex-start; }
  .hero__logo { width: 20rem; }
  .hero__taxi-mobile { display: none; }
  .hero__taxi-desktop { display: block; width: 50%; }
  .hero .badges { justify-content: flex-start; }
  .hero h1 { font-size: 3.75rem; }
}

/* ---------- Animations ---------- */
@keyframes hover-float {
  0%   { transform: translate3d(0, -5%, 0) rotate(-1.2deg); }
  50%  { transform: translate3d(0.8%, 6%, 0) rotate(1.1deg); }
  100% { transform: translate3d(0, -5%, 0) rotate(-1.2deg); }
}
@keyframes thruster-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.9;  transform: translateX(-50%) scale(1.08); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
