@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&display=swap");

:root {
  --primary: #6a38fe;
  --secondary: rgb(168, 85, 247);
}

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

html {
  background-color: #070a29;
  color: white;
  scroll-behavior: smooth;
}

body {
  background-image: linear-gradient(
    to right,
    rgb(from var(--primary) r g b / 20%),
    rgb(from var(--secondary) r g b / 20%)
  );
  font-family: "Outfit", sans-serif;
  font-size: 1rem /* 16px */;
  line-height: 1.5rem /* 24px */;
}

button {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 0.625rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all ease 0.3s;
}

button.btn-large {
  font-size: 1rem /* 16px */;
  line-height: 1.5rem;
  padding: 1rem 3rem;
}

button:hover {
  background-image: linear-gradient(to left, var(--primary), var(--secondary));
}

button:focus {
  outline: 2px solid rgb(233, 213, 255);
  outline-offset: 2px;
}

main {
  padding-top: 4rem;
}

/* 
======== HERO SECTION ============
*/

#hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

#hero > div {
  width: 100%;
  text-align: center;
}

#hero h2 {
  font-weight: 900;
  font-size: 2.25rem /* 36px */;
  line-height: 2.5rem /* 40px */;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 1rem;
}

#hero button {
  margin-top: 1rem;
}

#hero img {
  background-color: rgb(255 255 255 / 0.1);
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  #hero div.left {
    width: 66.666667%;
  }
  #hero div.right {
    width: 33.333333%;
  }
  #hero h2 {
    font-size: 3.25rem;
    line-height: 1;
  }
  #hero p {
    font-size: 1.125rem /* 18px */;
    line-height: 1.75rem; /* 28px */
  }
}

/* 
========= SELECTION SECTION ===========
*/

#selection {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 2rem 2rem;
  margin-bottom: 4rem;
}

#selection h3 {
  text-align: center;
  font-size: 1.875rem /* 30px */;
  line-height: 2.25rem /* 36px */;
  font-weight: 900;
  margin-bottom: 2.5rem;
}

#selection .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

#selection .grid-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  /* background-image: linear-gradient(to right, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)); */
  background-color: rgb(255 255 255 / 0.1);
  border-radius: 0.5rem;
  padding: 2rem 2rem 2rem;
  transition: all ease 0.3s;
}

#selection .grid-child:hover {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

#selection .grid-child:focus {
  outline: 2px solid rgb(233, 213, 255);
  outline-offset: 2px;
}

#selection .grid-child h5 {
  font-size: 1.125rem /* 18px */;
  line-height: 1.75rem /* 28px */;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

#selection .grid-child p {
  color: rgb(255 255 255 / 75%);
}

@media (min-width: 768px) {
  #selection h3 {
    font-size: 2.25rem /* 36px */;
    line-height: 2.5rem /* 40px */;
  }
  #selection .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 
======== FOOTER ============
*/
footer {
  background-color: rgb(0 0 0 / 0.5);
  padding: 3rem 2rem 0;
}

footer section {
  max-width: 80rem;
  margin: 0 auto;
}

footer .socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

footer .socials span:hover {
  text-decoration: underline;
  cursor: pointer;
}

footer .copyright {
  font-size: 0.875rem /* 14px */;
  line-height: 1.25rem /* 20px */;
  color: rgb(156 163 175);
  text-align: center;
  padding: 2rem 0.5rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
