:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  --color-white: #fff;
  --color-blue-start: #162456;
  --color-blue-mid: #1c398e;
  --color-blue-end: #193cb8;
  --content-width: 768px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--color-white);
  background: var(--color-blue-mid);
}

button,
a {
  font: inherit;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 36, 86, .88), rgba(28, 57, 142, .88) 50%, rgba(25, 60, 184, .88)),
    url("../images/background.png") center / cover no-repeat;
}

.landing::before,
.landing::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(120px);
}

.landing::before {
  width: 27rem;
  height: 27rem;
  top: 15%;
  left: 30%;
  background: rgba(81, 162, 255, .12);
}

.landing::after {
  width: 24rem;
  height: 24rem;
  left: -5rem;
  bottom: 18%;
  background: rgba(0, 184, 219, .18);
}

.landing__header {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 2.3vw, 33px);
  left: clamp(20px, 2.65vw, 38px);
}

.brand {
  position: relative;
  display: block;
  width: clamp(64px, 6.85vw, 98px);
  aspect-ratio: 1;
}

.brand__background,
.brand__wordmark {
  position: absolute;
  display: block;
}

.brand__background {
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand__wordmark {
  top: 8%;
  left: 8%;
  width: 85.5%;
  height: 83.8%;
}

.landing__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100% - 40px, 840px);
  margin: 0 auto;
  padding: clamp(94px, 10vh, 145px) 0 clamp(24px, 3vh, 44px);
}

.landing__intro {
  text-align: center;
}

.landing__title {
  margin: 0;
  font-size: clamp(32px, 3.34vw, 48px);
  line-height: 1;
  letter-spacing: -.018em;
  text-transform: uppercase;
}

.landing__description {
  max-width: 600px;
  margin: clamp(22px, 3.4vh, 50px) auto 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(16px, 1.67vw, 24px);
  line-height: 1.42;
  letter-spacing: -.013em;
}

.slider {
  width: min(100%, var(--content-width));
  margin-top: clamp(28px, 5.6vh, 82px);
}

.slider__viewport {
  overflow: hidden;
  border-radius: clamp(8px, .7vw, 11px);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .24));
}

.slider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.slider__slide {
  flex: 0 0 100%;
  margin: 0;
}

.slider__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 872;
  object-fit: contain;
}

.slider__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(14px, 2.15vh, 31px);
}

.slider__dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, .64);
  transition: width .25s ease, background-color .25s ease, transform .2s ease;
}

.slider__dot:hover,
.slider__dot:focus-visible {
  transform: scale(1.12);
  background: rgba(255, 255, 255, .9);
}

.slider__dot:focus-visible,
.downloads__button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

.slider__dot--active {
  width: 75px;
  background: rgba(255, 255, 255, .64);
}

.downloads {
  display: grid;
  gap: clamp(12px, 1.4vh, 20px);
  width: min(100%, 448px);
  margin-top: clamp(30px, 5.2vh, 76px);
}

.downloads__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 60px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 8px rgba(0, 0, 0, .1), 0 4px 3px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.downloads__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 12px rgba(0, 0, 0, .17);
}

.downloads__button--windows {
  background: linear-gradient(90deg, #2b7fff, #00b8db);
}

.downloads__button--macos {
  background: linear-gradient(90deg, #000, #575757);
}

.downloads__icon {
  position: absolute;
  left: 42px;
  display: block;
  object-fit: contain;
}

.downloads__icon--windows {
  width: 32px;
  height: 32px;
}

.downloads__icon--apple {
  left: 41px;
  width: 30px;
  height: 35px;
}

.landing__footer {
  padding: 0 20px clamp(20px, 3.1vh, 45px);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -.01em;
  text-align: center;
}

@media (max-height: 900px) and (min-width: 700px) {
  .landing__content {
    padding-top: 72px;
    padding-bottom: 14px;
  }

  .landing__description {
    margin-top: 18px;
  }

  .slider {
    width: min(62vh, 680px);
    margin-top: 18px;
  }

  .slider__pagination {
    margin-top: 8px;
  }

  .downloads {
    gap: 9px;
    width: 400px;
    margin-top: 16px;
  }

  .downloads__button {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .landing__footer {
    padding-bottom: 12px;
  }
}

@media (max-width: 699px) {
  .landing {
    min-height: 100svh;
    overflow: auto;
  }

  .landing__header {
    top: 18px;
    left: 18px;
  }

  .brand {
    width: 58px;
  }

  .landing__content {
    justify-content: flex-start;
    width: min(100% - 32px, 560px);
    padding-top: 108px;
    padding-bottom: 44px;
  }

  .landing__description {
    max-width: 500px;
    margin-top: 20px;
  }

  .slider {
    margin-top: 38px;
  }

  .slider__pagination {
    margin-top: 14px;
  }

  .slider__dot {
    width: 12px;
    height: 12px;
  }

  .slider__dot--active {
    width: 54px;
  }

  .downloads {
    margin-top: 40px;
  }

  .downloads__button {
    padding-right: 45px;
    padding-left: 58px;
    border-radius: 14px;
    font-size: 13px;
  }

  .downloads__icon,
  .downloads__icon--apple {
    left: 22px;
  }

  .landing__footer {
    padding-bottom: 24px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
