:root {
  --blue: #0057c8;
  --sky: #0a78ff;
  --red: #f5051b;
  --navy: #071233;
  --muted: #55607a;
  --bg: #f6f8fd;
  --card: #ffffffcc;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.glow-blue { width: 520px; height: 520px; background: #6fa5ff; top: -180px; left: -140px; }
.glow-sky  { width: 460px; height: 460px; background: #8fd0ff; bottom: -200px; right: -120px; animation-delay: -6s; }
.glow-red  { width: 300px; height: 300px; background: #ff8a95; top: 32%; right: 12%; opacity: .32; animation-delay: -12s; }

@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.08); }
}

.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(#0057c824 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path {
  fill: none; stroke: #0a78ff; stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .45;
  animation: travel 30s linear infinite;
}
@keyframes travel { to { stroke-dashoffset: -600; } }

/* Map pins that drop in and pulse */
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 30px; height: 30px;
  opacity: 0;
  animation: drop .9s cubic-bezier(.2, 1.4, .4, 1) var(--d) forwards;
}
.pin::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px #f5051b40;
}
.pin::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  background: #fff; border-radius: 50%;
}
.pin-small { width: 20px; height: 20px; }
.pin-small::after { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

@keyframes drop {
  0%   { opacity: 0; transform: translateY(-80px); }
  100% { opacity: .85; transform: translateY(0); }
}

/* ---------- Content ---------- */

.stage {
  position: relative; z-index: 1;
  flex: 1;
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 64px 0 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

.stage > * { opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.stage > :nth-child(1) { animation-delay: .1s; }
.stage > :nth-child(2) { animation-delay: .25s; }
.stage > :nth-child(3) { animation-delay: .45s; }
.stage > :nth-child(4) { animation-delay: .6s; }
.stage > :nth-child(5) { animation-delay: .75s; }
.stage > :nth-child(6) { animation-delay: .9s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid #0057c81f;
  box-shadow: 0 8px 24px #0b2a6614;
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue);
}
.badge-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.badge-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }

.logo { margin: 34px 0 6px; line-height: 0; }
.logo img {
  display: block;
  width: min(560px, 86vw);
  height: auto;
  mix-blend-mode: multiply; /* the logo has a white background; this lets the page show through */
}

.headline {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.headline span {
  background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 55%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.finder {
  margin: 26px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; color: var(--navy);
}
.rotator {
  display: inline-flex; align-items: center;
  min-width: 11ch; justify-content: center;
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px #07123333;
}
.rotator span { display: inline-block; transition: opacity .3s, transform .3s; }
.rotator span.out { opacity: 0; transform: translateY(-10px); }
.finder-rest { color: var(--muted); font-weight: 500; }

.lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 16px; line-height: 1.7; color: var(--muted);
}

.progress { width: min(420px, 100%); margin-top: 34px; }
.progress-bar { height: 8px; border-radius: 99px; background: #0057c81a; overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--red));
  background-size: 200% 100%;
  animation: fill 2.2s cubic-bezier(.3, .8, .2, 1) 1.1s forwards, shimmer 3s linear infinite;
}
@keyframes fill { to { width: 86%; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress-label {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted);
}

/* ---------- A to Z marquee ---------- */

.marquee {
  position: relative; z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  margin: 0; padding: 0; list-style: none;
  animation: scroll 70s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

.marquee-track li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid #0057c814;
  box-shadow: 0 4px 14px #0b2a660d;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.marquee-track b {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 800;
}
.marquee-track li:nth-child(3n + 2) b { background: var(--sky); }
.marquee-track li:nth-child(3n) b { background: var(--red); }

/* ---------- Footer ---------- */

.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px 26px;
  font-size: 13px; color: var(--muted);
}
.footer-sep { color: var(--red); }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .stage { padding: 44px 0 28px; }
  .badge { font-size: 11px; letter-spacing: 1.5px; }
  .logo { margin-top: 26px; }
  .lead { font-size: 15px; }
  .glow-blue { width: 340px; height: 340px; }
  .glow-sky { width: 300px; height: 300px; }
  .glow-red { width: 200px; height: 200px; }
  .pin { width: 22px; height: 22px; }
  .pin::after { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .pin-small { display: none; }
  .pin:nth-of-type(1), .pin:nth-of-type(3) { display: none; } /* would sit on the logo and progress bar */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}
