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

:root {
  --primary-light-red-CTA-text: hsl(356, 100%, 66%);
  --primary-very-light-red-CTA-hover-background: hsl(355, 100%, 74%);
  --primary-very-dark-blue-headings: hsl(208, 49%, 24%);

  --neutral-white-text: hsl(0, 0%, 100%);
  --neutral-grayish-blue-footer-text: hsl(240, 2%, 79%);
  --neutral-very-dark-grayish-blue-body-copy: hsl(207, 13%, 34%);
  --neutral-very-dark-black-blue-footer-background: hsl(240, 10%, 16%);

  /* Background gradient - Intro/CTA mobile nav: */
  --gradient-very-light-red: hsl(13, 100%, 72%, 0.95);
  --gradient-light-red: hsl(353, 100%, 62%, 0.95);

  /* Background gradient - body */
  --gradient-very-dark-gray-blue: hsl(237, 17%, 21%);
  --very-dark-desaturated-blue: hsl(237, 23%, 32%);
}

/* Base Styling */
body {
  font-family: "Overpass", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--neutral-very-dark-grayish-blue-body-copy);
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* Utility Classes */
.btn {
  background: #fff;
  color: var(--primary-light-red-CTA-text);
  padding: 1rem 0.5rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  width: 8rem;
  text-align: center;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-very-light-red-CTA-hover-background);
  color: #fff;
}

.btn-inverted {
  color: #fff;
  background-color: transparent;
  border-color: #fff;
}

.btn-inverted:hover {
  color: var(--primary-very-light-red-CTA-hover-background);
  background-color: #fff;
}

/* Navbar */
.header {
  background:
    linear-gradient(
      135deg,
      var(--gradient-very-light-red),
      var(--gradient-light-red)
    ),
    url("./images/bg-pattern-intro-desktop.svg");
  background-size: 100%, 150%;
  background-position: center, left;
  width: 100%;
  height: 28rem;
  display: flex;
  flex-direction: column;

  align-items: center;
  border-bottom-left-radius: 100px;

  color: #fff;
}

.navbar {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  padding: 2rem;
}

.navbar__menu-list {
  display: none;

  font-family: "Ubuntu", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.navbar__button-container {
  display: none;
}

.navbar__menu-list-item a {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.navbar__menu-list-item a:hover {
  text-decoration: underline;
  font-weight: 700;
}

.navbar__menu-list-item--arrow {
  margin-left: 0.4em;
  margin-bottom: 0.2em;
  width: 0.6em;
  height: 0.4em;
}

.arrow-dark {
  display: none;
}

.navbar__menu-sublist {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  grid-column-start: 3;
}

.inner-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 5rem;
  padding: 0 2.5rem;
  text-align: center;
}

.navbar__logo img {
  max-width: 4rem;
  height: auto;
  margin-right: 5rem;
}

.inner-header__title {
  font-size: 2rem;
  font-weight: 600;
}

.inner-header__tagline {
  font-size: 1.1rem;
}

.inner-header__button-container {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}

/* Section */
section {
  width: 100%;
  margin: 6rem 0 0;
  .content-container {
    margin: 4rem auto;
    max-width: 1100px;
  }

  .title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.2rem;
    font-weight: 500;
  }

  .subtitle {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .content {
    line-height: 1.8;
  }

  .text {
    padding: 0 2rem;
    text-align: center;
  }

  img {
    display: block;
    width: 95%;
    margin: 0 auto;
  }

  &.infrastructure {
    padding-bottom: 2rem;
    place-items: center;

    img {
      transform: translateY(50%);
    }

    .text {
      background:
        url("./images/bg-pattern-circles.svg"),
        linear-gradient(
          135deg,
          var(--gradient-very-dark-gray-blue),
          var(--very-dark-desaturated-blue)
        );

      background-size: 150%, 100%;
      background-position:
        top 300% center,
        center;
      background-repeat: no-repeat;
      border-bottom-left-radius: 100px;
      border-top-right-radius: 100px;

      padding: 14rem 0 4rem;
      color: var(--neutral-white-text);
      text-align: center;
      .title {
        margin-bottom: 1rem;
      }
      .text-content {
        place-items: center;
      }
      .content {
        max-width: 30ch;
      }
    }
  }
}

footer {
  width: 100%;
  place-items: center;
  background-color: var(--neutral-very-dark-black-blue-footer-background);
  border-top-right-radius: 100px;
  padding: 4rem 0;
  color: var(--neutral-grayish-blue-footer-text);

  .footer-container {
    img {
      display: block;
      margin-bottom: 3rem;
    }

    .section {
      text-align: center;
      margin: 3rem 0;

      .section-title {
        margin: 1.5rem 0;
      }

      li {
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 2;
      }
    }
  }
}

/* - Mobile: 375px
- Desktop: 1440px */

@media (min-width: 1000px) {
  header {
    .navbar__button-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
    }
    .navbar__menu {
      align-items: center;
      display: flex;
      justify-content: space-between;
    }
    .navbar__menu-list {
      display: flex;
      justify-content: center;
      gap: 30px;
    }

    .hamburger {
      display: none;
    }

    .inner-header {
      margin-top: 4rem;
      padding: 0;
    }

    .inner-header__title {
      font-size: 3rem;
    }

    .inner-header__tagline {
      font-size: 1rem;
    }
  }

  section {
    margin: 12rem 0 0;

    &.designed-for-the-future {
      margin-top: 8rem;
    }

    &.features {
      margin-bottom: 12rem;
    }

    .content-container {
      display: flex;
      align-items: center;
      gap: 50px;
      margin-top: 2.5rem;
    }

    &.designed-for-the-future .content-container {
      flex-direction: row-reverse;
    }

    .text {
      width: 60%;
      text-align: start;
    }

    .title {
      margin-bottom: 0;
      font-size: 3rem;
    }

    &.infrastructure .title {
      font-size: 2rem;
    }

    .content {
      max-width: 50ch;
    }

    &.designed-for-the-future img {
      width: 40%;
      transform: translateX(50%) scale(190%);
    }

    &.features img {
      width: 40%;
      transform: translateX(-50%) scale(190%);
    }

    &.infrastructure {
      padding: 0;
      place-items: center;

      background:
        url("./images/bg-pattern-circles.svg"),
        linear-gradient(
          135deg,
          var(--gradient-very-dark-gray-blue),
          var(--very-dark-desaturated-blue)
        );

      background-size: 50%, 100%;
      background-position:
        bottom right 125%,
        center;
      background-repeat: no-repeat;
      border-bottom-left-radius: 100px;
      border-top-right-radius: 100px;

      .content-container {
        gap: 200px;
        margin-left: 0;
        margin-right: 0;
      }

      img {
        transform: translateY(0);
        height: 20rem;
        width: auto;
        transform: scale(1.4);
      }

      .text {
        padding: 0;
        background: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        text-align: start;
        max-width: 1100px;

        .text-content {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          gap: 1rem;

          .content {
            max-width: 57ch;
          }
        }
      }
    }
  }

  footer .footer-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12rem;

    img {
      margin: 0;
    }

    .section {
      flex: 0;
      margin-top: 0;
      margin-bottom: 0;
      text-align: start;

      .section-title {
        margin-top: 0;
      }
    }
  }
}

@media (min-width: 0px) and (max-width: 64rem) {
  .hamburger {
    .open {
      display: block;
    }
    .close {
      display: none;
    }
  }

  .hamburger.active {
    .open {
      display: none;
    }
    .close {
      display: block;
    }
  }

  .navbar {
    position: relative;
  }

  .navbar__menu.visible {
    align-items: center;
    background: #fff;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    position: absolute;
    top: 100%;
    left: 2rem; /*same as navbar padding*/
    right: 2rem; /*same as navbar padding*/
    z-index: 900;

    .navbar__menu-list {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .navbar__button-container {
      align-items: center;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      padding-top: 1.5rem;

      .navbar__button {
        color: #1f3e5a;
        font-family: "Ubuntu";
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.15;
      }

      .btn {
        background: linear-gradient(135deg, #ff8f71 0%, #ff3e55 100%);
        color: var(--neutral-white-text);
      }
    }
  }

  .navbar__menu-list-item a {
    color: #1f3e5a;
  }

  .arrow-light {
    display: none;
  }

  .arrow-dark {
    display: block;
  }
}
