:root {
  --sky: #79caff;
  --ink: #11314a;
  --ink-soft: rgba(17, 49, 74, 0.72);
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  font-family: "Fredoka", sans-serif;
  color: var(--ink);
  background: #89d7ff;
}

button,
a {
  font: inherit;
}

.hero-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.22)),
    url("assets/background.png") center center / cover no-repeat;
}

.floating-actions {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(31, 112, 173, 0.16);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pill:hover,
.pill:focus-visible,
.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  background: var(--panel-strong);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #000;
}

.x-dot {
  background: linear-gradient(180deg, #0f1e2a, #325a79);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 96px 20px 220px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 760px;
  text-align: center;
  padding: 28px 28px 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(49, 108, 155, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Baloo 2", cursive;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 88px;
  line-height: 0.92;
  color: #ffffff;
  text-shadow:
    0 5px 0 rgba(17, 49, 74, 0.18),
    0 16px 34px rgba(17, 49, 74, 0.2);
}

.tagline {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: 24px;
  line-height: 1.35;
  color: rgba(17, 49, 74, 0.86);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #6fd26f, #42ba53);
  box-shadow: 0 18px 42px rgba(66, 186, 83, 0.28);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.sky-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ufo {
  position: absolute;
  top: 88px;
  right: 12%;
  width: 160px;
  filter: drop-shadow(0 18px 35px rgba(33, 90, 130, 0.2));
  animation: ufo-bob 4s ease-in-out infinite;
}

.beam {
  position: absolute;
  top: 180px;
  right: calc(12% + 54px);
  width: 62px;
  height: 180px;
  background: linear-gradient(
    180deg,
    rgba(183, 249, 255, 0.72),
    rgba(183, 249, 255, 0.18) 60%,
    transparent
  );
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  filter: blur(0.3px);
  animation: beam-pulse 3s ease-in-out infinite;
}

.ground-runner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 220px;
  overflow: hidden;
}

.runner {
  position: absolute;
  bottom: 0;
  left: -180px;
  width: 520px;
  height: 170px;
  animation: run-across 12s linear infinite;
}

.trail {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: 360px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 70, 70, 0),
      rgba(255, 70, 70, 0.85) 14%,
      rgba(255, 165, 0, 0.85) 28%,
      rgba(255, 234, 0, 0.85) 42%,
      rgba(84, 214, 74, 0.85) 56%,
      rgba(62, 201, 255, 0.85) 70%,
      rgba(112, 94, 255, 0.85) 84%,
      rgba(198, 111, 255, 0.4)
    );
  filter: blur(5px);
  transform-origin: right center;
  animation: rainbow-wobble 1s ease-in-out infinite;
}

.alien {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 128px;
  image-rendering: auto;
  filter: drop-shadow(0 16px 20px rgba(32, 120, 48, 0.2));
  animation: alien-bounce 0.8s ease-in-out infinite;
}

@keyframes ufo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes run-across {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 220px)); }
}

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

@keyframes rainbow-wobble {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.92; }
  50% { transform: scaleY(1.08) translateY(-2px); opacity: 1; }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 210px;
  }

  h1 {
    font-size: 62px;
  }

  .tagline {
    font-size: 20px;
  }

  .hero-copy {
    padding: 24px 20px 20px;
  }

  .ufo {
    top: 98px;
    right: 8%;
    width: 118px;
  }

  .beam {
    top: 166px;
    right: calc(8% + 40px);
    width: 44px;
    height: 140px;
  }
}

@media (max-width: 560px) {
  .floating-actions {
    top: 12px;
    left: 12px;
    gap: 8px;
  }

  .pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 48px;
  }

  .eyebrow {
    font-size: 16px;
  }

  .tagline {
    font-size: 18px;
  }

  .cta {
    min-height: 48px;
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .ground-runner {
    bottom: 24px;
    height: 180px;
  }

  .runner {
    width: 400px;
    height: 138px;
  }

  .trail {
    width: 280px;
    height: 22px;
    bottom: 44px;
  }

  .alien {
    width: 96px;
  }
}
