/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

body {
  font-family: "Red Hat Display", serif;
  font-weight: 500;
  color: #87879d;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 1.75rem;
  color: #fafafa;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: background-color 0.6s;
}

.separator {
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.separator__line {
  width: 1px;
  height: 80px;
  background-color: #d1d1df;
}
.separator__circle {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid #d1d1df;
  background-color: #fafafa;
}
.separator:nth-of-type(1) {
  margin-top: 4rem;
  margin-bottom: 4rem;
}
.separator:nth-of-type(2) {
  margin-top: 4rem;
  margin-bottom: -1.75rem;
}

.main-container {
  min-height: 100vh;
  background-color: #fafafa;
  width: 100%;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}
.main-container > * {
  width: 100%;
}

.header {
  padding-top: 3rem;
  margin: 0 auto;
}
.header__logo {
  margin: 0 auto;
}

.hero__img {
  width: calc(100% + 20px);
  padding-top: 4rem;
  max-width: none;
}
.hero__text-container {
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 28rem;
}
.hero__title {
  color: #28283d;
  font-weight: 900;
  font-size: clamp(3rem, 2.6479rem + 1.5023vw, 4rem);
  line-height: 1.1;
}
.hero__description {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.956rem + 0.1878vw, 1.125rem);
}
.hero__btn-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__btn-download {
  background-color: #4d96a9;
}
.hero__btn-download:hover {
  background-color: #71c0d4;
}
.hero__version {
  color: #8fe3f9;
  padding-left: 0.25rem;
}
.hero__btn-details {
  background-color: #855fb1;
}
.hero__btn-details:hover {
  background-color: #b18bdd;
}

.benefit {
  padding: 0 2rem;
}
.benefit__img-gallery {
  max-width: 70rem;
  margin: 0 auto;
}
.benefit__imgs-container {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(9.125rem, 1fr));
  gap: 1rem;
}
.benefit__img-wrapper {
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 256px;
}
.benefit__content {
  margin: 4rem auto 0 auto;
  text-align: center;
  max-width: 34rem;
}
.benefit__subtitle {
  color: #4d96a9;
  font-weight: 900;
  font-size: clamp(0.75rem, 0.662rem + 0.3756vw, 1rem);
  line-height: 1.1;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
}
.benefit__title {
  margin-top: 1rem;
  font-weight: 900;
  font-size: clamp(2rem, 1.8239rem + 0.7512vw, 2.5rem);
  line-height: 1.1;
  color: #28283d;
}
.benefit__description {
  margin-top: 2rem;
  font-size: clamp(1rem, 0.956rem + 0.1878vw, 1.125rem);
}

.footer {
  position: relative;
  padding: 4rem 2rem;
  color: #fafafa;
  background: linear-gradient(rgba(77, 150, 169, 0.9), rgba(77, 150, 169, 0.9)), url("../assets/mobile/image-footer.jpg") no-repeat;
  background-size: cover;
}
.footer__text-container {
  margin: 0 auto;
  text-align: center;
  max-width: 70rem;
  display: grid;
  gap: 1.5rem;
  place-items: center;
}
.footer__title {
  font-weight: 900;
  font-size: clamp(2rem, 1.8239rem + 0.7512vw, 2.5rem);
  line-height: 1.1;
}
.footer__description {
  font-size: clamp(1rem, 0.956rem + 0.1878vw, 1.125rem);
}
.footer__btn-download {
  background-color: #855fb1;
}
.footer__btn-download:hover {
  background-color: #b18bdd;
}
.footer__version {
  color: #d9b8ff;
  padding-left: 0.25rem;
}

@media only screen and (min-width: 48rem) {
  .separator:nth-of-type(1) {
    margin-top: 7.5rem;
  }
  .benefit__imgs-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer {
    background: linear-gradient(rgba(77, 150, 169, 0.9), rgba(77, 150, 169, 0.9)), url("../assets/tablet/image-footer.jpg") no-repeat;
    background-size: cover;
  }
}
@media only screen and (min-width: 75rem) {
  .separator:nth-of-type(2) {
    margin-top: 4.5rem;
  }
  .hero {
    background: url("../assets/desktop/image-hero-left.png") no-repeat left -20px center, url("../assets/desktop/image-hero-right.png") no-repeat right -20px center;
  }
  .hero__img {
    display: none;
  }
  .footer {
    padding: 7rem 5rem;
    background: linear-gradient(rgba(77, 150, 169, 0.9), rgba(77, 150, 169, 0.9)), url("../assets/desktop/image-footer.jpg") no-repeat;
    background-size: cover;
  }
  .footer__text-container {
    text-align: left;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__btn-download {
    justify-self: end;
    align-self: self-start;
  }
}
