.hero {
  background-color: var(--gray-950);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-width);
  margin-left: auto; margin-right: auto;
  padding: 6rem .5rem;
  text-align: center;
}

.hero__heading {
  font-size: 3.75rem; line-height: 1;
  font-weight: 900;
  letter-spacing: -.025em;
  color: rgb(255, 255, 255);

  @media (min-width: 640px) {
    font-size: 6rem; line-height: 1;
  }
}

.hero__subheading {
  display: block;
  font-size: 1.5rem; line-height: 2rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: rgb(255, 255, 255);

  @media (min-width: 640px) {
    font-size: 2.25rem; line-height: 2.5rem;
    text-shadow: -2px 0 #ff0080, 2px 0 #00e1ff;
    filter: blur(.3px);
    animation: textFlicker 3s infinite, blur 10s infinite;
  }
}

.hero__description {
  max-width: calc(var(--container-width)/1.5);
  margin-top: 2rem;
  margin-left: auto; margin-right: auto;
  font-size: 1.25rem; line-height: 1.75rem;
  font-weight: 200;
  color: var(--gray-200);

  @media (min-width: 640px) {
    font-size: 1.875rem; line-height: 2.25rem;
    filter: blur(.3px);
    animation: textFlicker 3s infinite, blur 10s infinite;
  }
}

.hero__description-highlight {
  display: inline-block;
  margin-left: .5rem;
  padding: .125rem .75rem;
  color: var(--gray-800);
  font-weight: 700;
  background-color: var(--gray-50);
  border-radius: .5rem;

  @media (min-width: 640px) {
    padding: .5rem 1.25rem;
    transform: rotate(-4deg) translateY(-.25rem);
  }
}

.hero__cta {
  margin-top: 2rem;
}

@keyframes textFlicker {
  0% { opacity: 1; }
  91% { opacity: 1; }
  92% { opacity: .8; }
  93% { opacity: 1; }
  98% { opacity: .9; }
  100% { opacity: 1; }
}

@keyframes blur {
  0% { filter: blur(.3px); }
  50% { filter: blur(.5px); }
  100% { filter: blur(.3px); }
}


.glitch {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(to bottom,
    white 0%,
    white 54%,
    transparent 54%,
    transparent 100%
  );
  -webkit-background-clip: text;
  transform-origin: center;
  will-change: transform;
  animation: glitchTop 12s steps(1) infinite;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: transparent;
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 46%,
    white 46%,
    white 100%
  );
  -webkit-background-clip: text;
  animation: glitchBottom 12s steps(1) infinite;
}

@keyframes glitchTop {
  0%, 20% { transform: translateX(0); }
  21% { transform: translateX(-8px); }
  22% { transform: translateX(4px); }
  23% { transform: translateX(-2px); }
  24%, 100% { transform: translateX(0); }
}

@keyframes glitchBottom {
  0%, 20% { transform: translateX(0); }
  21% { transform: translateX(10px); }
  22% { transform: translateX(-6px); }
  23% { transform: translateX(3px); }
  24%, 100% { transform: translateX(0); }
}
