.home-main {
  --desktop-showcase-width: 1111px;
  --desktop-showcase-height: 625px;
  --desktop-showcase-half-width: 555.5px;
  --desktop-showcase-scale: 1;
  --desktop-hero-height: 420px;
  --desktop-features-height: 205px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 166px);
  overflow: hidden;
  background-color: #000000;
  background-image:
    url("../img/official-site/pc/hero-features.jpg?v=599a326"),
    linear-gradient(180deg, transparent 0%, transparent 94%, #000000 100%),
    linear-gradient(90deg, #080a10 0%, #080a10 calc(50% - var(--desktop-showcase-half-width)), #000000 calc(50% + var(--desktop-showcase-half-width)), #000000 100%);
  background-repeat: no-repeat;
  background-position: center top;
  background-size:
    var(--desktop-showcase-width) var(--desktop-showcase-height),
    100% var(--desktop-showcase-height),
    100% var(--desktop-showcase-height);
}

.hero {
  order: 1;
  min-height: var(--desktop-hero-height);
  background: transparent;
}

.hero__inner {
  width: min(1110px, calc(100% - 48px));
  margin: 0 auto;
}

.hero__copy {
  width: 520px;
  padding-top: 66px;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.35;
}

.hero__description {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #b7bac4;
  font-size: 17px;
  white-space: nowrap;
}

.hero__description span {
  color: #666a75;
}

.download-panel {
  margin-top: 34px;
}

.download-actions {
  display: flex;
  gap: 24px;
}

.download-panel--desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 28px;
  padding-top: 7px;
}

.download-panel--desktop::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 274px;
  height: 61px;
  background: #041c2f;
  -webkit-clip-path: path("M0 61H274L249.852 13.1813C245.77 5.09758 237.485 0 228.428 0H24C10.7452 0 0 10.7452 0 24V61Z");
  clip-path: path("M0 61H274L249.852 13.1813C245.77 5.09758 237.485 0 228.428 0H24C10.7452 0 0 10.7452 0 24V61Z");
  content: "";
  pointer-events: none;
}

.download-panel--desktop .download-actions {
  position: relative;
  z-index: 1;
  gap: 16px;
  padding: 12px;
  border-radius: 24px;
  background: #1a1f39;
}

.download-panel--desktop .download-button {
  border-radius: 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 202px;
  height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: 30px;
  color: #ffffff;
  background: #1799ff;
  box-shadow: none;
  cursor: pointer;
  font-size: 23px;
  font-weight: 600;
}

.download-button:hover {
  background: #008cf5;
}

.download-button:active {
  transform: translateY(1px);
}

.download-button__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.benefit-copy {
  margin: 10px 0 0;
  color: #1799ff;
  font-size: 14px;
  text-align: center;
}

.download-panel--desktop .benefit-copy {
  position: relative;
  z-index: 2;
  width: 208px;
  margin: 0 0 7px 16px;
  color: #008fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
}

.features {
  position: relative;
  order: 2;
  min-height: var(--desktop-features-height);
  background: transparent;
}

.features__mobile-art {
  display: none;
}

.features__inner {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.carousel-section {
  order: 3;
  padding: 58px 0 28px;
  background: transparent;
}

.carousel {
  position: relative;
  display: flex;
  width: min(1110px, calc(100% - 48px));
  height: 278px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1b2342;
}

.carousel__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel__image {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 320ms ease;
}

.carousel[data-carousel-interactive="true"] {
  cursor: grab;
  touch-action: pan-y;
}

.carousel[data-carousel-dragging="true"] {
  cursor: grabbing;
}

.carousel__image--dynamic {
  opacity: 0;
}

.carousel[data-carousel-ready="true"] .carousel__image--dynamic {
  opacity: 1;
}

.carousel__indicators {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 78px;
  display: flex;
  gap: 3px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #565967;
}

.carousel-dot.is-active {
  width: 13px;
  border-radius: 4px;
  background: #159fff;
}

.mobile-download {
  display: none;
  order: 4;
}

@media (min-width: 769px) {
  .hero {
    height: var(--desktop-hero-height);
  }

  .hero__inner {
    position: relative;
    left: 50%;
    width: 1111px;
    margin-left: -555.5px;
    transform: scale(var(--desktop-showcase-scale));
    transform-origin: top center;
  }

  .hero__copy {
    margin-left: var(--desktop-copy-offset, 0);
  }
}

@media (max-width: 768px) {
  .home-main {
    min-height: auto;
    background-color: #010207;
    background-image: linear-gradient(180deg, #010207 9.2%, #010207 40.95%, #303133 100%);
    background-repeat: no-repeat;
    background-position: center 164px;
    background-size: 100% calc(100% - 164px);
  }

  .hero {
    position: relative;
    min-height: 164px;
    background-color: #010207;
    background-image: none;
  }

  .hero::before {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100%;
    background-image: url("../img/official-site/mobile/hero-showcase.jpg?v=599a326");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 168px;
    box-shadow: inset 48px 0 36px -20px #010207;
    content: "";
    pointer-events: none;
  }

  .hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  .hero__copy {
    width: 100%;
    padding: 34px 16px 0;
  }

  .hero h1 {
    max-width: 260px;
    font-size: 31px;
    line-height: 1.36;
    text-shadow: 0 2px 8px #05070d;
  }

  .hero__description {
    gap: 5px;
    margin-top: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .download-panel--desktop {
    display: none;
  }

  .carousel-section {
    order: 2;
    padding: 16px 0 26px;
    background: transparent;
  }

  .carousel {
    width: calc(100% - 30px);
    height: 220px;
    overflow: visible;
  }

  .carousel__media {
    border-radius: 8px;
  }

  .carousel__indicators {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
  }

  .carousel-dot {
    background: #36373b;
  }

  .carousel-dot.is-active {
    background: #ffffff;
  }

  .features {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    background: transparent;
  }

  .features__inner {
    display: none;
  }

  .features__mobile-art {
    display: block;
    width: calc(100% - 30px);
    max-width: 400px;
    height: auto;
  }

  .mobile-download {
    display: block;
    padding: 12px 16px 18px;
    background: transparent;
  }

  .download-button--mobile {
    width: 100%;
    height: 53px;
    border-radius: 54px;
    font-size: 21px;
  }

  .mobile-download .benefit-copy {
    margin-top: 8px;
    color: #1799ff;
    font-size: 12px;
    font-weight: 400;
    line-height: 15.6px;
  }
}
