@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html,
body {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  background: linear-gradient(180deg, #F6F5FF 0%, rgba(246, 245, 255, 0) 100%);
  
  color: #000;
  font-size: .8rem;
  line-height: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

img {
  width: 100%;
}

/* Nav */
nav {
  position: absolute;
  top: 0%;

  width: 100%;

  padding: 1.425rem 0;

  background-color: transparent;
}

nav .inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

nav button {
  position: absolute;
  left: 1.2rem;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1.3rem;
  max-height: 1rem;

  background-color: transparent;
  border: none;
}

nav button span {
  position: relative;

  display: block;
  width: 100%;
  height: 2px;

  background-color: #fff;
  transition-duration: .4s;
}

nav button.active span:nth-child(1) {
  top: .4rem;
  transform: rotate(-45deg);
}

nav button.active span:nth-child(2) {
  /* display: none; */
  opacity: 0;
}

nav button.active span:nth-child(3) {
  top: -.5rem;
  transform: rotate(45deg);
}

nav img {
  position: relative;
  z-index: 2;
  width: initial;
}

nav ul {
  position: absolute;
  top: 0;
  z-index: 1;
  
  width: 100%;
  min-height: 352px;

  padding: 0 1.5rem;
  padding-top: 88px;

  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);

  display: none;
  flex-direction: column;
  list-style: none;
}

nav ul a {
  display: inline-flex;
  width: 100%;

  padding: .5rem 0;

  color: #fff;
  font-size: .7rem;
  line-height: 1rem;
  font-weight: 500;
  text-decoration: none;
}

nav ul a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1312px;

  margin: 0 auto;
  padding: 0 1.1rem;
}

/* Header */
header {
  padding: 4.3rem 0 0 0;

  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  border-radius: 0 0 3.5rem 3.5rem;
  overflow: hidden;

  color: #fff;
}

header .inner {
  position: relative;

  display: flex;
  flex-direction: column;
}

header h1 {
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;

  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03rem;
}

header .box {
  margin-top: 1.5rem;
}

header .box p {
  opacity: .8;
  
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
}

header img {
  margin: 1.7rem auto 0;

  width: 328px;
  height: auto;
}

/* Services */
#goals {
  margin-top: 4rem;
}
#goals p {
  opacity: .8;
}

/* Body */
#goals,
#statistics,
footer .container {
  max-width: 964px;
  margin-left: auto;
  margin-right: auto;
}
.copy .container {
  max-width: 1312px;
}

.body .inner {
  display: flex;
  flex-direction: column;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 4rem;
}

.box h2,
.box h3 {
  text-align: center;
}

.box h3 {
  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  margin-bottom: .6rem;

  font-size: .7rem;
  line-height: .9rem;
  letter-spacing: .1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.box h2 {
  margin-bottom: 1.2rem;

  color: #000;
  font-size: 1.8rem;
  line-height: 1.25;
  letter-spacing: 0.05rem;
  font-weight: 700;
  text-transform: capitalize;
}

.box p {
  margin-bottom: 1.2rem;

  color: #000;
  font-size: .9rem;
  line-height: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01rem;
}

.button {
  margin: 0 auto;
  padding: .7rem 1.8rem;

  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  border: none;
  border-radius: 50px;

  color: #fff;
  font-size: .8rem;
  line-height: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition-duration: .4s;
}

.button:hover {
  transition-duration: .4s;
  background: linear-gradient(106.75deg, #2272FF 30%, #0D03C3 100%);
}

/* Projects */
.projects {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 3.1rem;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  padding-bottom: 1.8rem;
}

.carousel-container {
  position: relative;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 6.4rem;
  border-radius: 3.4rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #0D03C3;
  background-color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease-in-out;
}

.carousel-prev[disabled],
.carousel-next[disabled] {
  opacity: 0;
}

.carousel-prev { 
  left: 0.4rem;
}

.carousel-next { 
  right: 0.4rem; 
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 12px;
}

.carousel-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background-color: rgba(129, 129, 129, 0.5);
  border: none;
  outline: none;
  transition: background-color 0.3s ease-in-out, 
              width 0.3s ease-in-out, 
              height 0.3s ease-in-out;
  cursor: pointer;
}
.carousel-dot.active {
  background-color: #818181;
  width: 0.6rem;
  height: 0.6rem;
}

.project {
  margin-top: 4.5rem;
  background-color: #fff;
  box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.07);
  border-radius: 1rem;
  padding: 0 1.2rem 2rem;
  display: flex;
  flex-direction: column;

  flex: 0 0 auto; 
}

.project img {
  width: 100%;
  max-width: 324px;
  height: auto;
  border-radius: 1rem;
  position: relative;
  left: 50%;
  top: -4.5rem;
  transform: translateX(-50%);
  margin-bottom: -3.5rem;
}

.project .body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-basis: 100%;
}

.project h4 {
  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: .6rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
}

.project p {
  opacity: .8;
  font-size: 0.8rem;
  line-height: 1.4rem;
}

.project a {
  display: inline;
  padding: .75rem 0;
  background-color: transparent;
  border: 1px solid;
  border-color: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  border-radius: 1.5rem;
  width: 100%;
  text-align: center;
  margin-top: auto;
  color: #0D03C3;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1rem;
  cursor: pointer;
}

.project a:hover {
  text-decoration: underline;
}

/* Work */
#work {
  margin-top: 4rem;
}

/* Statistics */
#statistics {
  margin-top: 2rem;
}
#statistics p {
  text-align: center;
  max-width: 874px;
  margin-left: auto;
  margin-right: auto;
}

.list {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.3rem;
}

.card-average-session-duration {
    padding: 0 24px;
}

.list .card {
  min-width: 233px;
  min-height: 147px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background: linear-gradient(168.53deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 97.46%);
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.07);
  border-radius: 20px;

  text-align: center;
}

.list .card p {
  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  margin-bottom: .5rem;

  font-size: 3rem;
  line-height: 2.8rem;
  font-weight: 800;
}

.list .card h4 {
  font-size: .9rem;
  line-height: 1.3rem;
  letter-spacing: -0.02rem;
  white-space: nowrap;
}

/* Footer */
footer {
  margin-top: 4rem;
  background-color: white;
}

footer .box {
  margin-top: 3.2rem;
}

footer .box p {
  text-align: center;
  max-width: 813px;
  margin: 0 auto 1.4rem;
  letter-spacing: -0.02rem;
}

footer form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 30rem;

  margin: 0 auto;
}

footer input,
footer textarea {
  width: 100%;
  height: 2.25rem;

  margin-bottom: 1rem;

  padding: 0.45rem 0.6rem;
  border: 1px solid #2272FF;
  border-radius: 8px;

  font-size: .8rem;
  font-family: 'Inter', sans-serif;
}

footer input::placeholder,
footer textarea::placeholder {
  opacity: 0.2;
}

footer textarea {
  min-height: 4rem;
  resize: vertical;
  margin-bottom: 0;
}

footer .box form button {
  margin-top: 2.4rem;
}

footer form .alert {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;

  margin-top: .5rem;
  padding: 1rem;
  border-radius: 8px;
}

footer form .alert p {
  margin: 0;
}

footer form .alert:not(.success):not(.warning) {
  opacity: 0;
}

footer form .alert.success {    
  background-color: #f1fffc;
}

footer form .alert.success p {
  color: #009f79;
}

footer form .alert.warning {    
  background-color: #fff1f1;
}

footer form .alert.warning p {
  color: #df4268;
}

footer .copy {
  display: flex;

  margin-top: 1rem;
  padding: 1.1rem 0;

  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

footer .copy .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

footer .copy img {
  width: initial;
  margin: 0 auto;
}

footer .copy .link {
  font-size: .7rem;
  line-height: .9rem;
  font-weight: 400;
  color: #000;
  text-decoration: none;
}

@media screen and (min-width: 768px) {

  .d--isHidden {
    display: none;
  }

  .container {
    padding: 0;
  }

  /* Navbar */

  nav .inner {
    justify-content: space-between;
  }

  nav button {
    display: none;
  }

  nav ul {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    min-height: inherit;

    padding: 0;

    background: transparent;
  }

  nav ul li a {
    display: inline;
    margin-left: 1.2rem;
  }

  /* Header */
  header .inner {
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
  }
  
  header .box {
    min-width: 23rem;
    max-width: 23rem;
    margin: 176px 0 auto;
  }

  header .box p {
    font-size: 1rem;
  }

  header h1 {
    font-size: 3.2rem;
    line-height: 3.8rem;
  }

  header img {
    width: 654px;
    margin: 0;
  }

  /* Body */
  .box {
    margin-top: 5rem;
  }

  .box h2 {
    font-size: 2.5rem;
  }

  .box p {
    line-height: 1.3rem;
    letter-spacing: -0.02rem;
  }

  /* Services */
  #goals div {
    display: flex;
  }

  #goals div p:first-child {
    margin-right: 2rem;
  }

  #goals div p {
    flex: 1;
  }

  /* Projects */
  .project {
    padding: 0 1.8rem 2rem;
  }
  .carousel-prev,
  .carousel-next {
    width: 2.4rem;
    height: 2.4rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .carousel-prev {
    left: -1.2rem;
  }
  .carousel-next {
    right: -1.2rem;
  }

  .carousel-track {
    padding-bottom: 2.8rem;
  }

  /* Statistics */
  .list {
    display: flex;
    flex-direction: row;
  }

  /* Footer */
  footer {
    margin-top: 7rem;
    border-radius: 3.2rem 3.2rem 0 0;
  }

  footer .box {
    margin-top: 4rem;
  }

  footer form {
    margin-top: 0.3rem;
  }

  footer .box form button {
    margin-top: 1.7rem;
  }

  form div {
    width: 100%;
    display: flex;
  }

  form div input:first-child {
    margin-right: 1rem
  }

  footer .copy {
    margin-top: 2rem;
  }
}

/* Terms */
.termsPage nav a {
  color: #040335;
}

.termsPage .body {
  margin-top: 5rem;
}

.termsPage h1 {
  background: linear-gradient(106.75deg, #2272FF 0%, #0D03C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  margin-bottom: 2rem;

  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 700;
  text-align: center;
}

.termsPage h3 {
  margin-bottom: 1rem;
  
  font-size: 1.6rem;
  line-height: 1.4rem;
}

.termsPage p {
  margin-bottom: 1.5rem;
}

.termsPage ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 767px) {
  .m--isHidden {
    display: none;
  }
}