@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;800&display=swap");
:root {
  --main-color: #5352ed;
  --light-color: #f7f7f7;
  --grey-color: #9f9f9f;
  --dark-color: #18161e;
}

* {
  margin: 0;
  padding: 0;
}
*,
::before,
::after {
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--light-color);
  background-color: var(--dark-color);
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  min-width: 100%;
  vertical-align: middle;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}
/* 01. HEADER */
header {
  line-height: 90px;
}
header :where(nav, .menu, .menu ul) {
  display: flex;
  align-items: center;
}
.logo a {
  font-size: 1.5em;
  font-weight: 600;
  margin-right: 2.5em;
}
/* HEADER: RESPONSIVE MENU */
nav {
  justify-content: space-between;
}
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  background-color: var(--dark-color);
  z-index: 100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0.3s;
}
.showmenu .menu {
  transform: translateX(0);
  visibility: visible;
}
.menu ul {
  flex-direction: column;
  line-height: normal;
  width: 100%;
  gap: 1em;
  font-size: 1.75em;
}
.menu .close {
  position: absolute;
  top: 0;
  right: 0;
  line-height: normal;
  padding: 0.75em;
  font-size: 1.5em;
  display: flex;
}
.menu a,
.footer__links a {
  transition: color 0.3s;
}
.menu a:hover,
a.menu-trigger:hover,
.footer__links a:hover {
  color: var(--main-color);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--main-color);
  opacity: 0;
  z-index: 99;
  visibility: hidden;
}
.showmenu .overlay {
  opacity: 0.75;
  visibility: visible;
}
/* HEADER: GENERAL BUTTON */
.button a {
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  min-width: 110px;
  padding: 0 2em;
  line-height: 42px;
  border: 2px solid transparent;
  border-radius: 25px;
  margin: 0 1em 1em 0;
  transition: border-radius 0.3s, color 0.3s;
}
.button a.light {
  background-color: var(--main-color);
  border-bottom-left-radius: 0;
  box-shadow: rgb(83, 82, 237) 0px 12px 40px -12px;
}
.button a.light:hover {
  border-top-right-radius: 0;
}
.button a.dark {
  border-top-right-radius: 0;
  border: 2px solid var(--main-color);
}
.button a.dark:hover {
  color: var(--main-color);
  border-bottom-left-radius: 0;
  box-shadow: rgb(83, 82, 237) 0px 12px 40px -12px;
}
.button a.menu-trigger {
  font-size: 1.5em;
  font-weight: 400;
  margin: 0;
  padding: 0 16px;
  min-width: auto;
  border: 0;
}

/* 02. HERO */
main > div {
  padding-bottom: 8em;
}
.grid {
  display: flex;
  padding-top: 50px;
}
.hero,
.engage {
  border-bottom: 1px solid #3f3b4a;
}
.hero .grid {
  flex-direction: column-reverse;
}
.grid .half {
  flex: 1 0 50%;
}
.grid__text {
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 7em 0 0 2em;
  height: 100%;
}
:where(.grid, .grid__text) h2 {
  font-size: 3em;
  font-weight: 800;
}
.grid p {
  color: var(--grey-color);
}
.start-meeting {
  display: flex;
  margin-top: 3em;
  align-self: center;
  text-align: right;
}
.start-meeting .button {
  position: relative;
  margin-left: 1.5em;
}
.start-meeting .button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 50px;
  height: 50px;
  margin-left: -14px;
  border-radius: 50%;
  background-color: var(--main-color);
  transform: scale(1.75);
  opacity: 0.15;
}
.start-meeting .button a {
  min-width: auto;
  font-size: 1.5em;
  font-weight: 400;
  margin: 0 0 0 1em;
  padding: 0.25em;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(135deg);
  z-index: 1;
}
.start-meeting .button a i {
  transform: rotate(-135deg);
}
.hero .hero__image {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin: auto;
}
.hero .hero__image .col {
  flex: 0 0 calc(33.3333% - 1em);
  position: relative;
  z-index: -1;
}
.hero .hero__image .col .pic,
.testimonials .grid .pic {
  position: relative;
  min-height: 250px;
  background-color: var(--main-color);
  border-radius: 70px;
  margin-bottom: 1em;
  overflow: hidden;
}
.hero .hero__image img,
.testimonials .grid .pic img {
  position: absolute;
  left: 0;
  bottom: 0;
  object-fit: cover;
  width: 100%;
}
.hero .hero__image .left {
  top: -50px;
}
.hero .hero__image .middle {
  top: -250px;
  margin-bottom: -250px;
}
.hero .hero__image .right {
  top: 50px;
}
.hero .hero__image .left .pic:first-child {
  height: 350px;
  background-color: #feca57;
}
.hero .hero__image .left .pic:last-child {
  background-color: #0abde3;
}
.hero .hero__image .middle .pic:nth-child(1) {
  background-color: var(--main-color);
  height: 400px;
}
.hero .hero__image .middle .pic:nth-child(2) {
  background-color: #c8d6e5;
  height: 300px;
}
.hero .hero__image .middle .pic:nth-child(3) {
  background-color: #222f3e;
}
.hero .hero__image .right .pic:first-child {
  height: 350px;
  background-color: #ee5253;
}
.hero .hero__image .right .pic:last-child {
  background-color: #54a0ff;
  height: 300px;
}
/* 03. FEATURES */
.features .grid {
  flex-wrap: wrap;
}
:where(.grid, .grid__text) h2 span {
  font-size: calc(0.5em + 1vw);
  font-weight: 400;
}
.features .grid .half {
  flex: 100%;
  text-align: center;
  max-width: 280px;
  margin: 0 auto 4em;
}
.features .grid .icon {
  font-size: 3em;
  color: var(--main-color);
  margin-bottom: 0.75em;
}
.features .grid h3 {
  font-weight: 1.5em;
  font-weight: 600;
  margin-bottom: 0.5em;
}
/* 04. BRANDS */
.bg__white {
  position: relative;
  background-color: var(--light-color);
  overflow: hidden;
}
.bg__white h2 {
  color: var(--dark-color);
}
.brands::before,
.cta::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -60px;
  width: 400px;
  height: 200px;
  background-color: var(--main-color);
  filter: blur(100px);
}
.brands .grid {
  flex-direction: column;
  padding: 0;
}
.brands .grid__text {
  margin-bottom: 5em;
  position: relative;
}
.brands ul li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1em 2em;
  background-color: var(--grey-color);
  border-radius: 40px;
  width: 200%;
}
.brands ul {
  transform: rotate(340deg);
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.brands ul li i {
  font-size: 2em;
  margin-right: 1em;
}
.brands ul li:nth-child(1) {
  background-color: #4285f4;
  left: 10%;
}
.brands ul li:nth-child(2) {
  background-color: #f25022;
  left: 8%;
  width: 100%;
}
.brands ul li:nth-child(3) {
  background-color: #e50914;
  left: -6%;
}
.brands ul li:nth-child(4) {
  background-color: #3d9ae8;
  left: 35%;
}
.brands ul li:nth-child(5) {
  background-color: #107c10;
}
/* 05. ENGAGE */
.engage .grid {
  flex-direction: column;
}
.engage .image {
  margin: 0 auto 2em;
}
.engage .button {
  margin-left: 2em;
  text-align: center;
}
/* 06. TESTIMONIALS */
.testimonials .grid {
  max-width: 480px;
  margin: 0 auto;
  flex-direction: row;
  gap: 0;
  padding-left: 0;
}
.testimonials .half:first-child {
  flex: 0 0 90px;
}
.testimonials .grid .pic {
  background-color: #c8d6e5;
}
.testimonials .item {
  padding-left: calc(1em + 3vw);
}
.testimonials .item p:first-child {
  position: relative;
  font-size: calc(1.5em + 1.5em);
  color: inherit;
  line-height: 1.2;
  margin-bottom: 1em;
}
.testimonials .item sup {
  position: absolute;
  top: -120px;
  left: 100px;
  color: var(--main-color);
  font-size: 7em;
  vertical-align: top;
  font-family: cursive;
  z-index: -1;
  opacity: 0.5;
}
.engage .button,
.testimonials .item .button {
  margin-top: 3em;
}
/* 07. CTA */
.cta .grid {
  gap: 1em;
}
.cta .button a.dark {
  color: var(--main-color);
}
.cta::before {
  top: auto;
  bottom: -300px;
  left: auto;
  right: -60px;
  height: 400px;
}
/* 08. FOOTER */
footer .grid {
  flex-direction: column;
  gap: 2em;
}
footer .grid .half:first-child {
  display: flex;
  flex-direction: column;
}
footer .grid .half:last-child {
  display: flex;
}
.footer__links h3 {
  margin-bottom: 1em;
  font-weight: 600;
}
.footer__links ul {
  line-height: 1.8;
  font-size: 90%;
}
.footer__links a {
  color: var(--grey-color);
}
footer .socials ul {
  display: flex;
  gap: 1em;
  font-size: 1.5em;
}
footer .copyright {
  margin: 2em 0;
  padding: 1em 0;
  font-size: 80%;
  color: var(--grey-color);
  text-align: center;
  border-top: 1px solid #3f3b4a;
}
/* 09. ANIMATE */
.animate > div,
.side.animate li {
  opacity: 0;
  transition: transform 1.5s, opacity 1.5s;
}
.up.animate > div {
  transform: translateY(20%);
}
.down.animate > div {
  transform: translateY(-20%);
}
:is(.up, .down).animate.this > div {
  transform: translateY(0);
  opacity: 1;
}
.animate > div:nth-child(2),
.animate li:nth-child(1) {
  transition-delay: 0.3s;
}
.animate > div:nth-child(3),
.animate li:nth-child(2) {
  transition-delay: 0.5s;
}
.animate li:nth-child(3) {
  transition-delay: 0.7s;
}
.animate li:nth-child(4) {
  transition-delay: 0.9s;
}
.animate li:nth-child(5) {
  transition-delay: 1.1s;
}
.side.animate li {
  transform: translateX(20%);
}
.side.animate.this li {
  transform: translateX(0);
  opacity: 1;
}

@media screen and (min-width: 992px) {
  header {
    line-height: 150px;
  }
  nav {
    justify-content: unset;
  }
  .menu {
    position: relative;
    background-color: transparent;
    transform: none;
    visibility: visible;
  }
  .menu ul {
    font-size: inherit;
    flex-direction: row;
    line-height: inherit;
    gap: 2.5em;
  }
  .button .menu-trigger,
  .menu .close {
    display: none;
  }
  .hero .grid,
  .brands .grid {
    flex-direction: row;
    padding-top: 0;
  }
  .hero .grid .half:last-child {
    padding-top: 130px;
  }
  .features .grid {
    flex-wrap: nowrap;
  }
  footer .grid {
    flex-direction: row;
    gap: 0;
  }
  footer .grid .half:first-child {
    flex-basis: 60%;
    flex-direction: row;
    justify-content: space-between;
  }
  footer .grid .half:last-child {
    flex-basis: 40%;
    align-items: flex-end;
    justify-content: flex-end;
  }
}
