.downloads-hero {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  border: none;
  background: var(--background);
  color: var(--text);
  box-shadow: 0 0 0 0 transparent;
}

.downloads-hero__bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.downloads-hero__bg-layer--base {
  opacity: 1;
}

.downloads-hero__bg-layer--incoming {
  z-index: 1;
  opacity: 0;
}

.downloads-hero__bg-layer--visible {
  opacity: 1;
}

.downloads-hero__bg {
  width: 100%;
  height: 100%;
}

.downloads-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--background) 0%,
      transparent 25% 75%,
      var(--background) 99.53%
    ),
    linear-gradient(transparent 0%, var(--background) 97%);
}

.downloads-hero__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 0 0 calc(var(--spacing-unit) * 18);
}

.downloads-hero__active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 12);
  width: 100%;
}

.downloads-hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: calc(var(--spacing-unit) * 6);
  max-width: 520px;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  text-align: left;
  color: inherit;
  padding: 0;
  cursor: pointer;
  transition:
    opacity 0.12s ease-in-out,
    transform 0.12s ease-in-out,
    filter 0.12s ease-in-out;

  &[data-focused="true"],
  &:focus-visible {
    filter: brightness(1.04);
  }
}

.downloads-hero__main--drag-source {
  cursor: grab;

  &:active {
    cursor: grabbing;
  }
}

.downloads-hero__main--dragging {
  opacity: 0.55;
}

.downloads-hero__main--move-grabbed {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.downloads-hero__main--drop-active,
.downloads-hero__empty--drop-active {
  filter: brightness(1.08);
}

.downloads-hero__main--drop-disabled {
  opacity: 0.72;
}

.downloads-hero__logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 420px;
  max-width: 100%;
  height: 210px;
}

.downloads-hero__logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.downloads-hero__logo-fallback {
  max-width: 100%;
  color: var(--primary);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.downloads-hero__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: calc(var(--spacing-unit) * 4);
  padding-right: calc(var(--spacing-unit) * 3);
}

.downloads-hero__action-focus-proxy {
  pointer-events: none;
}

.downloads-hero__empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: calc(var(--spacing-unit) * 3);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  outline: none;
}

.downloads-hero__empty-copy {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1.5);
}

@media (max-width: 1100px) {
  .downloads-hero {
    height: 620px;
  }

  .downloads-hero__content {
    padding: 0 0 calc(var(--spacing-unit) * 16);
  }

  .downloads-hero__active {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 8);
  }
}

@media (max-width: 720px) {
  .downloads-hero {
    height: 700px;
  }

  .downloads-hero__content {
    padding: 0 calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 6);
  }

  .downloads-hero__active {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 8);
  }

  .downloads-hero__main {
    position: relative;
    max-width: 100%;
    width: 100%;
  }

  .downloads-hero__empty {
    width: 100%;
  }

  .downloads-hero__logo {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .downloads-hero__actions {
    position: relative;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-right: 0;
  }
}
