:root {
  --brand-color: #17253f;
  --secondary-color: #f3ad19;
  --background-color: #161e32;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px;
  text-align: center;
}

.heading {
  height: calc(100vh - 52px);
  padding-top: 0;
  padding-bottom: 0;
  color: var(--secondary-color);
  background: transparent url(/assets/moto-dash/heading-background-4fe16093108d8df5c5c006985daade54206190eb5696ebd1d8318dae9275c81f.jpg) no-repeat 50% 50%;

  background-size: cover;
}

.logo {
  display: block;
  margin-bottom: 26px;
}

.heading-title {
  font-family: Rubik, sans-serif;
  font-weight: bold;
  font-size: 120px;
  line-height: 0.9;
}

.heading-title + * {
  margin-top: 6px;
}

.heading-tagline {
  font-size: 32px;
  font-weight: 600;
}

.heading-link {
  display: block;
  width: 220px;
  height: 71px;
  overflow: hidden;
  margin-top: 56px;
  text-indent: -1000px;
  background: transparent url(/assets/moto-dash/app-store-badge-08c71a1073155cc9290b017d44eb917bf2e1e8d35b7771bd7d98b790d28498b5.svg) no-repeat 50% 50%;
  background-size: cover;
}

* + .subheading {
  margin-top: 32px;
}

.promo-video {
  position: relative;
  background-color: #18213b;
}

.video {
  max-width: 1024px;
  width: 100%;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 138px;
  height: 138px;
  transform: translate(-50%, -50%);
  background: transparent url(/assets/moto-dash/play-icon-2b89d904b421387e273e14095dd4a2e94610c4ac29b50267b59a725fc15e88c4.svg) no-repeat 50% 50%;
  background-size: 100%;
  cursor: pointer;
}

.main-intro {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 180px;
  padding-bottom: 180px;
  color: var(--brand-color);
  background-color: var(--secondary-color);
}

.main-intro-heading {
  max-width: 748px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.main-intro-caption {
  max-width: 748px;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.4;
}

.intro {
  position: relative;
  gap: 192px;
  padding-top: 192px;
  padding-bottom: 192px;
  background-color: var(--background-color);
}

.intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: transparent url(/assets/moto-dash/track-4218fae958defad23f775d1f1eb47c0d8c7efee2e3c0fcc67a9e2881535fc850.svg) no-repeat 50% 66%;
  background-size: contain;
}

.intro-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 200px;
}

.intro-container:nth-child(even) {
  flex-direction: row-reverse;
}

.intro-content {
  width: 576px;
  text-align: left;
}

.intro-heading {
  font-size: 124px;
  font-weight: 700;
  line-height: 1.2;
}

.intro-heading + * {
  margin-top: 45px;
}

.intro-caption {
  font-size: 29px;
  font-weight: 400;
  line-height: 1.4;
}
.intro-caption + .intro-caption {
  margin-top: 32px;
}

.elevation {
  height: 200px;
  background: var(--background-color) url(/assets/moto-dash/elevation-d6c8713944191819d3f042812d222d9f7541cf9c87d48bd840c80168acb18519.svg) no-repeat 50% 0;
  background-size: cover;
}

.rides {
  position: relative;
  background: var(--background-color);
}

.rides::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.rides-container {
  position: relative;
  z-index: 5;
}

.rides-heading {
  margin-bottom: 64px;
  font-size: 48px;
  font-weight: 700;
}

.ride-tiles {
  display: flex;
  max-width: 1200px;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-content: flex-start;
}

.ride-tile {
  height: 268px;
}

.ride-tile-normal {
  width: 358px;
}

.ride-tile-wide {
  width: 756px;
}

.features {
  color: var(--brand-color);
  background-color: var(--secondary-color);
}

.features-title {
  margin-bottom: 64px;
  font-size: 48px;
  font-weight: 700;
}

.features-container {
  display: flex;
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.feature-item {
  position: relative;
  flex: 0 0 358px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 500ms;
}

.feature-item:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
  display: block;
  margin-bottom: 22px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: 0 0;
}

.feature-title {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: bold;
}

.feature-description {
  font-size: 24px;
  line-height: 1.3;
}

.feature-premium {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  background-color: var(--brand-color);
}

.bottom-promo {
  background-color: var(--background-color);
}

.bottom-promo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.bottom-promo-title {
  font-size: 48px;
  font-weight: 700;
}

* + .bottom-promo-title {
  margin-top: 64px;
}

.bottom-promo-title + * {
  margin-top: 32px;
}

.bottom-promo-copy {
  font-size: 29px;
  line-height: 1.3;
}

.bottom-promo-copy + .bottom-promo-copy {
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .intro-container {
    gap: 100px;
  }

  .intro-content {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .promo-video {
    padding-left: 0;
    padding-right: 0;
  }

  .intro-container {
    gap: 60px;
  }

  .intro-screenshot {
    width: 300px;
    height: auto;
  }

  .intro-heading {
    font-size: 92px;
  }

  .intro-caption {
    font-size: 24px;
  }
}

@media (max-width: 800px) {
  .intro::after {
    background-position: 50% 50%;
  }

  .intro-container,
  .intro-container:nth-child(even) {
    flex-direction: column;
  }

  .intro-content {
    text-align: center;
  }

  .ride-tile-wide {
    display: none;
  }

  .feature-item {
    flex-basis: 100%;
  }
}

@media (max-width: 650px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .logo {
    width: 128px;
    height: 128px;
  }

  .heading-title {
    font-size: 56px;
  }

  .heading-title + * {
    max-width: 180px;
    margin-top: 16px;
  }

  .heading-tagline {
    font-size: 20px;
    line-height: 1.2;
  }

  .heading-link {
    margin-top: 48px;
    width: 180px;
    height: 60px;
  }

  .promo-video {
    padding-top: 0;
    padding-bottom: 0;
  }

  .main-intro {
    gap: 32px;
  }

  .main-intro-heading {
    font-size: 36px;
  }

  .main-intro-caption {
    font-size: 20px;
  }

  .intro {
    gap: 60px;
  }

  .intro-container,
  .intro-container:nth-child(even) {
    flex-direction: column-reverse;
    gap: 60px;
  }

  .intro-screenshot {
    max-width: calc(100% - 48px);
    width: 375px;
    height: auto;
  }

  .intro-heading {
    font-size: 48px;
  }

  .intro-heading + * {
    margin-top: 32px;
  }

  .intro-caption {
    font-size: 20px;
  }

  .elevation {
    height: 120px;
  }

  .rides-heading {
    margin-bottom: 48px;
    font-size: 36px;
  }

  .features-title {
    margin-bottom: 48px;
    font-size: 36px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-title {
    font-size: 24px;
  }

  .feature-description {
    font-size: 20px;
  }

  .bottom-promo-title {
    font-size: 36px;
  }

  .bottom-promo-container img {
    width: 180px;
    height: 180px;
  }
  }

  .bottom-promo-copy {
    font-size: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
  }

  .footer-right {
    text-align: left;
  }
}
