* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "open sans", sans-serif;
}

h1,
h2,
h3 {
  font-family: "raleway", sans-serif;
}

.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 4rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 0;
}

nav ul {
  display: flex;
  gap: 3rem;
}

nav ul li {
  list-style: none;
  color: hsl(243, 87%, 12%);
}

nav .logo {
  width: 8rem;
  margin: auto 0;
  display: flex;
  align-items: center;
}

nav .logo img {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 8rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 37.5rem;
}

.hero__text h1 {
  font-size: 2.5rem;
  line-height: 1.4;
}

.hero__text p {
  font-size: 1.125rem;
}

.hero__image {
  width: 100%;
}

.hero__image img {
  width: 100%;
}

.hero form input {
  padding: 0.875rem 1rem;
  max-width: 18rem;
  width: 100%;
  margin-right: 0.5rem;
}

.hero form button {
  border: 1px solid hsl(224, 93%, 58%);
  padding: 0.875rem;
  max-width: 8rem;
  width: 100%;
  background-color: hsl(224, 93%, 58%);
  color: #fff;
  cursor: pointer;
}

.hero form button:hover {
  background-color: rgb(48, 101, 248, 0.9);
  border: 1px solid rgb(48, 101, 248, 0.9);
}

/*********** how fylo works ***********/
.how-fylo-works {
  padding: 6rem 0;
  background-color: #f6f6fe;
  position: relative;
}

.how-fylo-works::before {
  position: absolute;
  z-index: -1;
  top: -6rem;
  content: "";
  height: 10rem;
  width: 100%;
  background-image: url("./images/bg-curve-desktop.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.how-fylo-works__container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 55% 45%;
}

.how-fylo-works__text {
  display: grid;
  gap: 1rem;
}

.how-fylo-works__text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.how-fylo-works__text p {
  max-width: 31.25rem;
}

.how-fylo-works__link {
  margin-bottom: 2rem;
  display: flex;
  max-width: max-content;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
  color: hsl(170, 45%, 43%);
  text-decoration: none;
}

.how-fylo-works__link:hover {
  color: rgba(60, 159, 143, 0.6);
  border-bottom: 1px solid rgba(60, 159, 143, 0.6);
}

.how-fylo-works__image img {
  width: 100%;
}

.testimonial {
  background-color: #fff;
  padding: 1rem 2rem;
  max-width: 350px;
  border-radius: 5px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.testimonial__info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial__image {
  width: 40px;
  height: 40px;
  border-radius: 20rem;
  overflow: hidden;
}

.testimonial__image img {
  width: 100%;
}

.testimonial__name {
  font-weight: bold;
  font-size: 0.875rem;
}

.testimonial__position {
  font-size: 0.625rem;
}

/*********** cta ***********/

.cta {
  padding: 6rem 0;
  background-color: hsl(238, 22%, 44%);
  color: #fff;
}

.cta__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  justify-items: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 31.25rem;
}

.cta__form {
  max-width: 31.25rem;
}

.cta__form form input {
  padding: 0.875rem 1rem;
  max-width: 100%;
  width: 100%;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

.cta__form button {
  border: 1px solid hsl(224, 93%, 58%);
  padding: 0.875rem 2rem;
  background-color: hsl(224, 93%, 58%);
  color: #fff;
  cursor: pointer;
}

.cta__form button:hover {
  background-color: rgb(48, 101, 248, 0.9);
  border: 1px solid rgb(48, 101, 248, 0.9);
}

.cta__text {
  justify-self: start;
}

/*********** footer ***********/

footer {
  padding: 6rem 0 4rem;
  background-color: hsl(243, 87%, 12%);
  color: #fff;
}

.footer__container {
  display: grid;
}

.footer__details {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
}

.logo {
  width: 8rem;
  margin-bottom: 2rem;
}

footer .logo img {
  width: 100%;
  filter: brightness(0) invert(1);
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer a {
  text-decoration: none;
  color: #fff;
}

footer a:hover {
  color: hsl(238, 22%, 44%);
}

footer .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social {
  display: flex;
  align-items: start;
  gap: 2rem;
}

/*********** responsive ***********/

@media screen and (max-width: 64rem) {
  .container {
    padding: 0 2rem;
  }
  .hero {
    grid-template-columns: 1fr;
    max-width: 48rem;
    margin: 0 auto;
  }
  .hero__text {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 10rem;
  }
  .hero__image {
    grid-row: 1/2;
    max-width: 40rem;
    margin: 0 auto;
    margin-bottom: 2rem;
  }
  .how-fylo-works__container {
    grid-template-columns: 1fr;
    max-width: 50rem;
    margin: 0 auto;
  }
  .how-fylo-works__text {
    grid-row: 2/3;
    text-align: center;
    margin-top: 2rem;
  }
  .how-fylo-works h2 {
    margin-bottom: 1rem;
  }
  .how-fylo-works__text p,
  .how-fylo-works__link,
  .testimonial {
    margin: 0 auto;
  }
  .cta__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta__text {
    margin: 0 auto;
  }
}

@media screen and (max-width: 48em) {
  nav {
    padding: 3rem 0;
  }
  .footer__details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .social {
    margin: 0 auto;
  }
}

@media screen and (max-width: 35rem) {
  .container {
    padding: 0 1rem;
  }
  nav {
    padding: 2rem 0;
  }
  nav .logo {
    width: 5rem;
  }
  nav ul {
    gap: 1rem;
    font-size: 1rem;
  }
  .hero form input {
    max-width: 300px;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .hero form button {
    padding: 0.875rem;
    max-width: 300px;
    width: 100%;
  }

  .cta__form form input {
    max-width: 20rem;
    margin-right: 0;
    width: 100%;
  }
  .cta__form button {
    max-width: 20rem;
    width: 100%;
  }
}
