:root {
  --bg: #070707;
  --fg: #ffffff;
  --muted: #b9b9b9;
  --red: #ff1e1e;
  --wa: #25d366;
  --wa-ink: #062a13;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg)
    radial-gradient(ellipse at 50% 0%, rgba(255, 30, 30, 0.28), transparent 60%)
    no-repeat;
  color: var(--fg);
  font: 14px var(--font);
}

img {
  max-width: 100%;
}

[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

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

.speed i {
  position: absolute;
  left: -40%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.55;
  animation: streak linear infinite;
}

.speed i:nth-child(1) {
  top: 12%;
  animation-duration: 2.6s;
}

.speed i:nth-child(2) {
  top: 28%;
  height: 1px;
  animation-duration: 3.4s;
  animation-delay: 0.8s;
}

.speed i:nth-child(3) {
  top: 47%;
  animation-duration: 2.2s;
  animation-delay: 1.5s;
}

.speed i:nth-child(4) {
  top: 66%;
  height: 1px;
  animation-duration: 3s;
  animation-delay: 0.3s;
}

.speed i:nth-child(5) {
  top: 84%;
  animation-duration: 2.8s;
  animation-delay: 2s;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  padding-block: 40px 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  animation:
    drive-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both,
    float 4s ease-in-out 1s infinite;
}

.logo-wrap::before {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--red),
    transparent 30%,
    transparent 70%,
    var(--red)
  );
  content: "";
  animation: spin 3s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}

.logo-wrap .logo {
  position: relative;
}

.logo {
  width: 180px;
  height: 180px;
  max-width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--red), 0 0 50px rgba(255, 30, 30, 0.45);
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 span {
  display: inline-block;
  color: var(--red);
  animation: blink-red 2.4s ease-in-out 1.4s infinite;
}

p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.btn-wrap {
  width: 100%;
  animation-delay: 0.9s;
}

.btn {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 6px;
  padding: 20px 22px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: var(--wa);
  color: var(--wa-ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform 0.15s;
}

.btn:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.97);
}

.btn::after {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  content: "";
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out 1.6s infinite;
}

.btn svg {
  animation: shake 2.8s ease-in-out 2s infinite;
}

ul {
  display: flex;
  margin: 4px 0 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

li::before {
  color: var(--wa);
  content: "✓ ";
  font-weight: 800;
}

footer {
  max-width: 36ch;
  margin-top: 18px;
  color: #777;
  font-size: 0.78rem;
}

.rise {
  animation: rise 0.7s ease-out both;
}

h1.rise {
  animation-delay: 0.5s;
}

p.rise {
  animation-delay: 0.7s;
}

ul.rise {
  animation-delay: 1.1s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes streak {
  to {
    transform: translateX(420%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drive-in {
  from {
    transform: translateX(-120vw) skewX(-12deg);
  }

  70% {
    transform: translateX(12px) skewX(4deg);
  }

  to {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink-red {
  50% {
    text-shadow: 0 0 18px rgba(255, 30, 30, 0.85);
  }
}

@keyframes shine {
  0% {
    left: -60%;
  }

  35%,
  100% {
    left: 130%;
  }
}

@keyframes shake {
  0%,
  86%,
  100% {
    transform: none;
  }

  89% {
    transform: rotate(-14deg);
  }

  92% {
    transform: rotate(12deg);
  }

  95% {
    transform: rotate(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .speed,
  .btn::after {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
