.home {
  background: var(--background-color);
  background-size: cover;
  color: var(--black-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.home h1 {
  font-size: 5.6rem;
  font-weight: 700;
  width: 50%;
  margin-top: 18rem;
}

.home h2 {
  font-size: 1.8rem;
  font-weight: 500;
  width: 46%;
  color: var(--gray-text-color);
  line-height: 30px;
}

.button {
  background: var(--blue);
  color: #fff;
  border-radius: 6rem;
  padding: 1rem 0;
  width: 20rem;
  height: 5rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hubb-plataform-image {
  background-image: linear-gradient(
    170deg,
    var(--background-color) 65%,
    #fff 30%
  );
  display: flex;
  justify-content: center;
  padding: 4rem 8rem;
}

.connectors {
  padding: 2rem 0;
}

.connectors h2 {
  font-weight: 400;
  color: var(--gray-text-color);
  font-size: 2.6rem;
  text-align: center;
}

.slider {
  margin: 2rem;
  overflow: hidden;
  position: relative;
}

.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 25%
  );
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slide-track {
  animation: scroll 60s linear infinite;
  display: flex;
  width: calc(250px * 40);
}

.slide {
  height: 100px;
  width: 250px;
}

.integrations {
  padding: 2rem 0 2rem 8rem;
  display: flex;
  align-items: center;
  color: var(--black-color);
}

.inclined-background {
  position: relative;
  overflow: hidden;
  background: url("../assets/background-integrations-blue.png") center
    center/cover;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  padding-left: 10rem;
  height: 55rem;
}

.inclined-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50vw;
  width: 200vw;
  background: rgba(255, 255, 255, 0.8);
  transform: skewX(-5deg);
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
}
.integrations-background-mobile {
  display: none;
}
.integrations aside h2 {
  font-weight: 700;
  font-size: 4rem;
  line-height: 5.5rem;
  width: 80%;
  margin-top: 2rem 0;
}

.integrations aside p {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 3rem;
  width: 86%;
  margin: 2rem 0;
}

.challenges {
  padding: 2rem 8rem;
}

.challenges-text {
  color: var(--black-color);
  display: flex;
  justify-content: space-between;
  margin-top: 6rem;
}

.challenges-text h2 {
  font-weight: 700;
  font-size: 4rem;
  line-height: 5.5rem;
  width: 60%;
}

.challenges-text p {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 3rem;
  margin-top: 2rem;
}

.challenges-text__button-and-image {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 14rem;
}

.challenges-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.challenges-cards-card {
  width: 27rem;
  height: 22rem;
  border-radius: 2rem;
  padding: 3rem;
  background: #fff;
  box-shadow: 0px 16px 40px -8px rgba(10, 8, 120, 0.1);
}

.challenges-cards-card span {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 3rem;
  display: block;
  margin-top: 1rem;
}

@media (min-width: 1376px) {
  .hubb-plataform-image {
    padding: 8rem;
  }

  .challenges-cards-card {
    width: 23%;
  }
}

@media (max-width: 1124px) {
  .home h1 {
    width: 80%;
  }
}

@media (max-width: 1024px) {
  .home h1 {
    font-size: 3.2rem;
  }
  .home h2 {
    width: 70%;
  }
  .hubb-plataform-image img {
    width: 80%;
  }

  .connectors {
    padding: 3.2rem;
  }

  .integrations {
    padding: 3.2rem 0;
    flex-direction: column-reverse;
  }

  .integrations-background {
    z-index: 1;
    margin-top: -58rem;
  }

  .inclined-background {
    height: 90rem;
    justify-content: start;
    padding-left: 0;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .integrations aside h2 {
    font-size: 2.4rem;
    line-height: 3rem;
    width: 80%;
    margin-top: 8rem;
    text-align: center;
  }

  .integrations aside p {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 3rem;
    width: 80%;
    text-align: center;
  }
  .challenges {
    padding: 2rem 3.2rem;
  }
}

@media (max-width: 728px) {
  .home h1 {
    font-size: 2.4rem;
    width: 84%;
    line-height: 3.2rem;
    margin-top: 11rem;
  }

  .home h2 {
    font-size: 1.2rem;
    width: 80%;
    line-height: 2.2rem;
  }

  .button {
    font-size: 1.2rem;
    padding: 0 1.4rem;
    height: 3.5rem;
    gap: 7px;
    width: auto;
  }

  .hubb-plataform-image {
    padding: 3.2rem;
  }
  .hubb-plataform-image img {
    width: 50rem;
    margin-left: -20rem;
  }
  .connectors h2 {
    font-size: 1.6rem;
  }

  .integrations {
    padding: 0;
  }

  .inclined-background {
    padding: 0 3.2rem;
    height: 74rem;
  }

  .integrations-background {
    margin-top: -42rem;
    display: none;
  }
  .integrations-background-mobile {
    display: block;
    z-index: 1;
    margin-top: -42rem;
  }

  .integrations aside h2 {
    width: 100%;
    margin-top: 5rem;
    font-size: 2.4rem;
    line-height: 3.4rem;
  }

  .integrations aside p {
    width: 100%;
    font-size: 1.4rem;
    line-height: 2.4rem;
  }

  .background-points {
    display: none;
  }
  .challenges-text {
    flex-direction: column;
  }
  .challenges-text h2 {
    font-size: 2.4rem;
    line-height: 3.4rem;
    width: 100%;
  }

  .challenges-text p {
    font-size: 1.4rem;
    line-height: 2.4rem;
  }

  .challenges-text__button-and-image {
    margin-top: 3rem;
    align-items: start;
  }

  .challenges-cards {
    justify-content: center;
    gap: 2rem;
    margin-top: 6rem;
    background: url("../assets/background-points-mobile.svg") center
      center/cover no-repeat;
  }

  .challenges-cards-card img {
    width: 6rem;
  }
}

@media (max-width: 450px) {
  .home {
  }
}

@media (max-width: 400px) {
  .hubb-plataform-image {
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 20));
  }
}
