.button--hero {
  border: none;
  display: block;
  position: relative;
  padding: 0.85em 2.2em;
  background: transparent;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  color: white;
  z-index: 1;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  border-radius: 10px;
  background: #032973;
  text-decoration: none;
  text-align: center;
}

.button--hero span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  border: 1px solid #032973;
}

.button--hero span::before {
  content: "";
  display: block;
  position: absolute;
  width: 8%;
  height: 500%;
  background: var(--lightgray);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-60deg);
  transition: all 0.3s;
}

.button--hero:hover span::before {
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 100%;
  background: white;
}

.button--hero:hover {
  color:#032973;
}

.button--hero:active span::before {
  background: #032973;
}
