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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  background: #0f3a76;
  color: #fff;
}

p a { color: #fff; }

#webgl-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 66% 34%, rgba(183, 103, 241, 0.3), transparent 45%),
    radial-gradient(circle at 22% 92%, rgba(112, 78, 232, 0.3), transparent 34%),
    radial-gradient(circle at 26% 70%, rgba(110, 220, 227, 0.16), transparent 56%);
}

canvas {
  filter: blur(10px);
}

.container {
  margin: 0 auto;
  border-radius: 10px;
  width: min(92vw, 1200px);
}

.main-nav {
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
  }

  .logo {
    font-size: 1px;
    color: rgba(0,0,0,0);
    height: 30px;
    width: 200px;
    background: transparent url('../img/logo-woojer.png') no-repeat center left;
    background-size: contain;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }

  .nav-links a:hover {
    text-decoration: underline;
  }

}

/* Vibrate animation for the hero image */
@keyframes vibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
.hero-content {
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  /* animation: vibrate 0.3s ease-in-out infinite; */
}

.hero-lockup {
  display: block;
  width: 80%;
  height: auto;
  position: absolute;
  left: 10%;
  bottom: 0;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy {
  margin: -1rem auto 1rem auto;
  font-size: 1.5rem;
  font-weight: 400;
  max-width: 500px;
  text-align: center;
}


.main-copy {
  margin: 0 auto 0.5rem auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2rem;
  max-width: 705px;
  font-weight: 200;
}

.descriptor-wrap {
  padding: 0 0 3rem 0;
  background: transparent url('../img/bg-sound.png') no-repeat center bottom;
  background-size: cover;
}

.descriptor-line {
  display: grid;
  gap: 1rem;
  text-align: center;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: 5rem 0;

  .process-step {
    width: 100%;
    .process-title {
      height: 55px;

      span {
        display: block;
        text-align: center;
        font-weight: 600;
        font-size: 0.9rem;
      }
    }
    img {
      display: block;
      width: 75%;
      height: auto;
      margin: 0 auto;
    }
  }

  #woojer-phone {
    .process-title {
      transform: translateX(1.4rem);
    }

    img {
      width: 100%;
      transform: scale(1.5);
    }
  }
}


.app-link-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;

  p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: 1px;

    span {
      filter: blur(1px);
      text-shadow: 0 -8px 8px rgba(255,255,255,0.4),
                   0 -4px 2px rgba(255,255,255,0.6),
                   0 4px 2px rgba(255,255,255,0.6),
                   0 8px 8px rgba(255,255,255,0.4)
    }
  }

  a {
    background: transparent url('../img/button-app-store.png') no-repeat center center;
    background-size: contain;
    color: rgba(0,0,0,0);
    text-decoration: none;
    font-size: 1px;
    width: 100px;
    height: 35px;
  }
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 4rem 0 8rem 0;

  a {
    background: transparent url('../img/logo-woojer.png') no-repeat center center;
    background-size: contain;
    color: rgba(0,0,0,0);
    text-decoration: none;
    font-size: 1px;
    width: 220px;
    height: 40px;
    display: inline-block;
  }

}


button {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: #efefef;
  cursor: pointer;
}

button:hover {
  background: #e4e4e4;
}

@media (max-width: 768px) {
  .hero-image {
    max-width: 200px;
    padding-bottom: 6rem;
  }
  .hero-copy {
    font-size: 1.2rem;
  }

  .main-copy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .descriptor-wrap {
    background: none;
    padding: 0;

    .container {
      width: 100vw;
    }
  }

  .descriptor-line {
    grid-template-columns: 1fr;
    gap: 3rem;

    div {
      /* border: 1px solid red; */
    }

    .process-step {
      display: flex;
      flex-direction: column-reverse;

      .process-title {
        width: 75%;
        height: auto;
        margin: 20px auto 0 auto;
        
        span { display: inline; }
      }

      img { width: 60%;}
    }

    #woojer-phone {
      background: transparent url('../img/bg-sound-mobile.png') no-repeat center top;
      background-size: cover;

    .process-title {
      transform: translateX(0);
    }

    img {
      width: 60%;
      transform: scale(1);
      }
    }
  }

  .app-link-line {
    flex-direction: column-reverse;
    gap: 1rem;

    p {
      width: 50%;
      margin: 0 auto;
      line-height: 2rem;
      text-align: center;
    }

    a {
      width: 150px;
      height: 50px;
    }
  }
}