:root {
  color-scheme: dark;
  --background: #08130e;
  --accent: #c6ff3d;
  --white: #f5f7f4;
  --muted: #c2cbc5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
}

body {
  font-family: "Space Grotesk", "Arial Nova", Arial, sans-serif;
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 68% 42%, rgba(198, 255, 61, 0.09), transparent 25rem),
    linear-gradient(135deg, #0a1912 0%, var(--background) 55%, #050b08 100%);
}

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  overflow: hidden;
  opacity: 0.58;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
  pointer-events: none;
}

.story-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  filter: contrast(1.08) saturate(1.06);
}

.story-frame-1 {
  opacity: 1;
  animation: story-frame-1 36s ease-in-out infinite;
}

.story-frame-2 {
  animation: story-frame-2 36s ease-in-out infinite;
}

.story-frame-3 {
  animation: story-frame-3 36s ease-in-out infinite;
}

.story-frame-4 {
  animation: story-frame-4 36s ease-in-out infinite;
}

@keyframes story-frame-1 {
  0%, 13.9% {
    opacity: 1;
  }
  16.7%, 97.2% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes story-frame-2 {
  0%, 13.9%, 33.3%, 100% {
    opacity: 0;
  }
  16.7%, 30.6% {
    opacity: 1;
  }
}

@keyframes story-frame-3 {
  0%, 30.6%, 50%, 100% {
    opacity: 0;
  }
  33.3%, 47.2% {
    opacity: 1;
  }
}

@keyframes story-frame-4 {
  0%, 47.2%, 100% {
    opacity: 0;
  }
  50%, 97.2% {
    opacity: 1;
  }
}

.hero::before {
  position: absolute;
  z-index: -1;
  width: min(58vw, 46rem);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 255, 61, 0.07);
  border-radius: 50%;
  content: "";
  transform: translate(43vw, -36vh);
  box-shadow: 0 0 8rem rgba(198, 255, 61, 0.035) inset;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 68rem);
  text-align: center;
}

@media (min-width: 769px) {
  .hero-content {
    width: min(58vw, 50rem);
    margin-right: 34vw;
  }
}

.brand-lockup {
  width: min(76vw, 40rem);
  aspect-ratio: 3 / 2;
  margin-inline: auto;
  background-image: url("assets/logo_temos_bola.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1.25rem 2.5rem rgba(0, 0, 0, 0.42));
}

.tagline {
  margin: clamp(1.5rem, 4vh, 2.75rem) 0 0;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.075em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: clamp(1.6rem, 3.5vh, 2.5rem) 0 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.status span {
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 0.75rem rgba(198, 255, 61, 0.55);
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.9rem;
}

.platform {
  display: inline-flex;
  min-width: 4.75rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(245, 247, 244, 0.16);
  border-radius: 999px;
  background: rgba(5, 11, 8, 0.38);
  color: rgba(245, 247, 244, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(0.4rem);
}

.pitch-markings {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  pointer-events: none;
}

.pitch-circle {
  position: absolute;
  right: -19rem;
  bottom: -22rem;
  width: 42rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 247, 244, 0.14);
  border-radius: 50%;
}

.pitch-line {
  position: absolute;
  top: 0;
  right: 12%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(245, 247, 244, 0.14), transparent);
}

.monogram {
  position: absolute;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(245, 247, 244, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .hero-media {
    inset: 0;
    opacity: 0.18;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  }

  .story-frame {
    object-position: 62% center;
  }

  .hero-content {
    width: 100%;
  }

  .brand-lockup {
    width: min(96vw, 30rem);
  }

  .tagline {
    letter-spacing: 0.035em;
  }

  .pitch-line {
    right: 8%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-lockup,
  .tagline,
  .status,
  .platforms {
    opacity: 0;
    animation: reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .brand-lockup {
    animation: brand-kickoff 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: 52% 58%;
  }

  .tagline {
    animation-delay: 120ms;
  }

  .status {
    animation-delay: 220ms;
  }

  .platforms {
    animation-delay: 300ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes brand-kickoff {
    0% {
      opacity: 0;
      filter: blur(0.45rem) drop-shadow(0 0 0 rgba(198, 255, 61, 0));
      transform: translateY(1rem) scale(0.88) rotate(-1.5deg);
    }
    58% {
      opacity: 1;
      filter: blur(0) drop-shadow(0 0 2.2rem rgba(198, 255, 61, 0.3));
      transform: translateY(-0.15rem) scale(1.025) rotate(0.25deg);
    }
    100% {
      opacity: 1;
      filter: blur(0) drop-shadow(0 1.25rem 2.5rem rgba(0, 0, 0, 0.42));
      transform: translateY(0) scale(1) rotate(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-frame {
    animation: none;
  }

  .story-frame:not(:first-child) {
    display: none;
  }

}
