.hero {
  padding-block: 64px 96px;
}

.hero__copy h1 {
  font-size: 48px;
  line-height: 1.46;
  font-weight: 500;
  letter-spacing: -.8px;
}

.hero__copy h1 > span {
  display: block;
}

.hero__copy h1 > span:last-child {
  margin-top: 12px;
}

.hero__punctuation {
  display: inline-block;
  width: 0;
  text-align: left;
}

.hero__action {
  margin-top: 44px;
}

:is(.hero__action, .download-button) {
  position: relative;
  isolation: isolate;
  gap: 22px;
  border-color: color-mix(in srgb, var(--accent), white 22%);
  transition: border-color 240ms, box-shadow 280ms, background-color 240ms;
}

:is(.hero__action, .download-button)::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: .65;
  background: linear-gradient(135deg, #ffffff40 0%, #ffffff12 32%, transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 240ms;
}

:is(.hero__action, .download-button) > * {
  position: relative;
  z-index: 1;
}

:is(.hero__action, .download-button)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 round 999px);
  background: linear-gradient(110deg, transparent 32%, #ffffff0f 40%, #ffffff2e 46%, #ffffff42 50%, #ffffff2e 54%, #ffffff0f 60%, transparent 68%) 125% 0 / 220% 100% no-repeat;
  transition: opacity 180ms;
}

:is(.hero__action, .download-button):hover {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent), white 48%);
  box-shadow: inset 0 0 0 1px #ffffff26, inset 0 0 8px #ffffff24;
}

:is(.hero__action, .download-button):hover::before {
  opacity: 1;
}

:is(.hero__action, .download-button):hover::after {
  opacity: 1;
  animation: hero-button-sweep 500ms linear both;
}

:is(.hero__action, .download-button):active {
  background-color: color-mix(in srgb, var(--accent), black 7%);
}

@keyframes hero-button-sweep {
  from { background-position: 125% 0; }
  to { background-position: -25% 0; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.hero__action, .download-button),
  :is(.hero__action, .download-button)::before,
  :is(.hero__action, .download-button)::after {
    transition: none;
  }
  :is(.hero__action, .download-button):hover::after {
    opacity: 0;
    animation: none;
  }
}

@media (max-width: 800px) {
  .hero { padding-block: 48px 64px; }
  .hero__copy h1 { font-size: 42px; }
}
