/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Overpass", Arial, sans-serif;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Colors */
:root {
  --color-primary-light-red: #ff525d;
  --color-primary-very-light-red: #ff7a85;
  --color-primary-very-dark-blue: #1f3f5b;

  --color-neutral-white: #ffffff;
  --color-neutral-grayish-blue: #c8c8cb;
  --color-neutral-very-dark-grayish-blue: #4b5862;
  --color-neutral-very-dark-black-blue: #25252d;

  --gradient-intro-cta: linear-gradient(#ff8f70, #ff3d54);
  --gradient-body: linear-gradient(#2c2d3f, #3f4164);

  --font-family-overpass: "Overpass", serif;
  --font-family-ubuntu: "Ubuntu", serif;
}

/* Typography */
body {
  background-color: #f2f2f2;
  font-family: var(--font-family-ubuntu);
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary-very-dark-blue);
  font-family: var(--font-family-overpass);
  font-weight: 700;
}

p {
  color: var(--color-neutral-very-dark-grayish-blue);
}

footer {
  background-color: var(--color-neutral-very-dark-black-blue);
  color: var(--color-neutral-grayish-blue);
}

.cta-button {
  background-color: var(--color-primary-light-red);
  color: var(--color-neutral-white);
}

.cta-button:hover {
  background-color: var(--color-primary-very-light-red);
}

.container {
  width: 100%;
  height: 100%;
}

.header {
  position: relative;
  padding: 50px 20px;
  color: var(--color-neutral-white);
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: space-around;
  background-image: url("images/bg-pattern-intro-mobile.svg"),
    var(--gradient-intro-cta);
  background-position: top 35% left 30%;
  width: 100%;
  border-radius: 0 0 0 100px;
}

.nav-desktop {
  display: none;
}

.nav-mobile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-mobile__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  height: 18px;
  width: 32px;
}

.close {
  width: 26px;
  height: 26px;
}

.header__text {
  margin-block: 30px;
}

.header__title {
  color: var(--color-neutral-white);
  margin-inline: auto;
  width: 80%;
  font-family: var(--font-family-overpass);
  font-weight: 600;
  font-size: 36px;
  line-height: 55px;
  text-align: center;
  letter-spacing: -1.08px;
}

.header__description {
  text-align: center;
  color: var(--color-neutral-white);
  margin-inline: auto;
  width: 75%;
}

.header__btn__container {
  margin-inline: auto;
}

.btn__start-free,
.btn__learn-more {
  margin-inline: 5px;
  transition: 1s;
  font-size: 16px;
  font-weight: 700;
  width: 137px;
  height: 48px;
  border-radius: 28px;
}

.btn__learn-more {
  border: 1px solid var(--color-neutral-white);
  color: var(--color-neutral-white);
}

.btn__learn-more:hover,
.btn__start-free {
  background-color: var(--color-neutral-white);
  color: var(--color-primary-light-red);
}

.btn__start-free:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--color-neutral-white);
}

.nav-mobile__menu {
  padding: 20px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 50px;
  width: 100%;
  border-radius: 5px;
  background-color: var(--color-neutral-white);
  box-shadow: 0px 0px 10px 1px var(--color-neutral-very-dark-grayish-blue);
  color: var(--color-primary-very-dark-blue);
  font-weight: 600;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-mobile__menu--active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-product__submenu,
.mobile-company__submenu,
.mobile-connect__submenu {
  display: none;
  margin-block: 20px;
  color: #1f3e5a;
  background-color: rgba(45, 46, 64, 0.08);
  mix-blend-mode: normal;
  border-radius: 5px;
  padding: 10px;
}

.mobile-product__submenu.active,
.mobile-company__submenu.active,
.mobile-connect__submenu.active {
  display: block;
}

.product__element,
.company__element,
.connect__element {
  margin-block: 20px;
}

.separation {
  margin: 15px auto;
  background-color: var(--color-neutral-very-dark-grayish-blue);
  width: 90%;
}

.account-access__sign-up {
  margin-top: 10px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 28px;
  width: 137px;
  color: var(--color-neutral-white);
  background-image: var(--gradient-intro-cta);
}

.arrow {
  transition: transform 0.3s ease-in-out;
}

.arrow-active {
  transform: rotate(180deg);
}

.core-features-title {
  margin-block: 100px 20px;
  text-align: center;
  font-family: var(--font-family-overpass);
  font-weight: 600;
  font-size: 28px;
  line-height: 43px;
  text-align: center;
  letter-spacing: -0.84px;
  color: #1f3e5a;
}

.core-features__container {
  font-weight: 600;
  font-size: 28px;
  line-height: 43px;
  text-align: center;
  letter-spacing: -0.84px;
  color: #1f3e5a;
  margin-block: 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.core-features__image {
  margin-block: 10px;
  width: 326px;
  height: 326px;
}

.core-features__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  font-family: var(--font-family-overpass);
}

.core-features__text-title {
  margin-inline: auto;
  width: 80%;
  margin-block: 30px;
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  color: #1f3e5a;
}

.core-features__text-description {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  letter-spacing: 0.5px;
  color: #4c5862;
}

.infrastructure-overview {
  margin-top: 250px;
  display: flex;
  flex-direction: column;
  border-radius: 0 100px 0 100px;
  background-image: url("images/bg-pattern-circles.svg"), var(--gradient-body);
  background-position: top 120% center, center;
  background-size: contain cover;
  background-repeat: no-repeat;
}

.infrastructure-overview__illustration {
  margin-top: -200px;
}

.infrastructure-overview__title {
  color: var(--color-neutral-white);
  font-family: var(--font-family-overpass);
  font-weight: 600;
  font-size: 40px;
  line-height: 61px;
  text-align: center;
  letter-spacing: -1.2px;
}

.infrastructure-overview__description {
  margin: 30px auto 100px;
  width: 70%;
  font-family: var(--font-family-overpass);
  color: var(--color-neutral-white);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  letter-spacing: 0.5px;
}

.tooling-features {
  margin-block: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tooling-features__text {
  margin-block: 30px;
  text-align: center;
  width: 90%;
}

.tooling-features__title {
  margin-bottom: 20px;
  font-family: var(--font-family-overpass);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  color: #1f3e5a;
}

.tooling-features__description {
  width: 85%;
  margin: 20px auto;
  font-family: var(--font-family-overpass);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  letter-spacing: 0.5px;
  color: #4c5862;
}

.footer {
  padding-block: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 100px 0 0;
  background-color: var(--color-neutral-very-dark-black-blue);
  color: var(--color-neutral-white);
}

.footer__logo {
  margin-block: 30px;
}

.footer__section {
  margin-block: 15px;
}

.footer__title {
  margin-block: 20px;
  font-family: var(--font-family-ubuntu);
  font-weight: 500;
  font-size: 18px;
  line-height: 33px;
  text-align: center;
  color: var(--color-neutral-white);
}

.footer__subtitle {
  cursor: pointer;
  transition: 1s;
  font-family: var(--font-family-ubuntu);
  font-weight: 400;
  font-size: 18px;
  line-height: 33px;
  text-align: center;
  color: var(--color-neutral-white);
  mix-blend-mode: normal;
  opacity: 0.75;
}

.footer__subtitle:hover {
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  .header {
    flex-direction: column;
    justify-content: center;
    align-items: space-around;
    padding: 10px 200px;
    background-image: url("images/bg-pattern-intro-desktop.svg"),
      var(--gradient-intro-cta);
    background-position: center left 20%;
    height: 70vh;
  }

  .nav-mobile {
    display: none;
  }

  .nav-desktop {
    margin-top: 30px;
    padding-block: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    margin-right: 80px;
    width: 101px;
    height: 40px;
  }

  .nav-desktop-menu__container {
    margin-left: -20%;
  }

  .desktop-menu {
    display: flex;
  }

  .desktop-menu__element {
    font-weight: bold;
    transition: 1s;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    margin-right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .desktop-menu__element:hover {
    text-decoration: underline;
  }

  .desktop-product__submenu,
  .desktop-company__submenu,
  .desktop-connect__submenu {
    margin-top: 2px;
    font-weight: normal;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-neutral-very-dark-black-blue);
    padding: 20px;
    border-radius: 5px;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    transform: scale(0.95);
    opacity: 0;
  }

  .desktop-menu__element:hover .desktop-product__submenu,
  .desktop-menu__element:hover .desktop-company__submenu,
  .desktop-menu__element:hover .desktop-connect__submenu {
    display: block;
    transform: scale(1);
    opacity: 1;
  }

  .desktop-menu__element .desktop-product__image,
  .desktop-menu__element .desktop-company__image,
  .desktop-menu__element .desktop-connect__image {
    transition: transform 0.3s ease-in-out;
  }

  .desktop-menu__element:hover .desktop-product__image,
  .desktop-menu__element:hover .desktop-company__image,
  .desktop-menu__element:hover .desktop-connect__image {
    transform: rotate(180deg);
  }

  .submenu__item {
    transition: 1s;
  }

  .submenu__item:hover {
    font-weight: bold;
  }

  .desktop-account-access {
    display: flex;
    font-size: 16px;
  }

  .desktop-sing-up,
  .desktop-login {
    transition: 1s;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 137px;
    border-radius: 28px;
  }

  .desktop-sing-up {
    background-color: var(--color-neutral-white);
    color: var(--color-primary-light-red);
  }

  .desktop-sing-up:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--color-neutral-white);
  }

  .desktop-login {
    margin-right: 30px;
  }

  .desktop-login:hover {
    text-decoration: underline;
  }

  .header__text {
    text-align: center;
    margin-block: 100px;
  }

  .header__title {
    color: var(--color-neutral-white);
    font-weight: 600;
    font-size: 64px;
    line-height: 98px;
    text-align: center;
    letter-spacing: -1.92px;
  }

  .header__description {
    font-family: var(--font-family-overpass);
    color: var(--color-neutral-white);
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 31px;
    text-align: center;
  }

  .header__btn__container {
    margin: -50px 30px 100px;
    display: flex;
    justify-content: center;
  }

  .btn__start-free,
  .btn__learn-more {
    margin-inline: 15px;
  }

  .core-features-title {
    margin-bottom: 0;
    font-size: 40px;
    line-height: 61px;
    text-align: center;
    letter-spacing: -1.2px;
  }

  .core-features__container {
    margin-top: 0;
    overflow-x: hidden;
    margin-left: 10%;
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .core-features__text {
    width: 35%;
    margin-top: -50px;
  }

  .core-features__text-title,
  .core-features__text-description {
    margin-left: 0;
    text-align: left;
  }

  .core-features__image {
    margin-top: -50px;
    margin-right: -250px;
    width: 885px;
    height: 882px;
  }

  .core-features__text-title {
    font-size: 28px;
    line-height: 28px;
  }

  .core-features__text-description {
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.5px;
  }

  .infrastructure-overview {
    margin-top: 0;
    flex-direction: row;
    justify-content: space-between;
    background-position: left -40% bottom, center;
  }

  .infrastructure-overview__illustration {
    width: 472px;
    height: 499px;
    margin-left: 7%;
    margin-top: -100px;
  }

  .infrastructure-overview__text {
    margin: 100px;
  }

  .infrastructure-overview__title {
    text-align: left;
  }

  .infrastructure-overview__description {
    margin: unset;
    margin-top: 30px;
    width: 55%;
    text-align: left;
  }

  .tooling-features {
    margin-block: 150px 0;
    overflow-x: hidden;
    margin-right: 10%;
    flex-direction: row;
    justify-content: space-between;
  }

  .tooling-features__text {
    width: 60%;
    margin-top: -200px;
  }

  .tooling-features__title,
  .tooling-features__description {
    margin-left: 0;
    text-align: left;
  }

  .tooling-features__image {
    margin-top: -50px;
    margin-left: -250px;
    margin-right: 15%;
    width: 885px;
    height: 882px;
  }

  .tooling-features__title {
    font-size: 28px;
    line-height: 28px;
  }

  .tooling-features__description {
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.5px;
  }

  .footer {
    margin-top: -150px;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }
}
