/* root */
:root {
  --padding-size: 20rem;
  --padding-size-laptop: 10rem;
  --padding-size-tablet: 5rem;
  --padding-size-mobile: 1.6rem;
  --font-inter: "Inter", sans-serif;
  --font-archivo: "Archivo", sans-serif;
}

@font-face {
  font-family: "sfProDisplay";
  src: url("./fonts/SF-Pro-Display-SemiboldItalic.otf") format("truetype");
  font-weight: 600;
  font-style: italic;
}

html {
  /* 1rem = 10px */
  font-size: 62.5%;
}

/* Mobile nhỏ (≤ 480px) */
@media (max-width: 480px) {
  html {
    font-size: 56.25%; /* 1rem = 9px */
  }
}
/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 56.25%; /* 1rem = 9px */
  }
}
/* Desktop nhỏ (769px - 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
  html {
    font-size: 62.5%; /* 1rem = 10px */
  }
}
/* Desktop lớn (≥ 1200px) */
@media (min-width: 1200px) {
  html {
    font-size: 68.75%; /* 1rem = 11px */
  }
}

body {
  margin: 0;
  padding: 0;
}

/*  landing page */
.container {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;

  @media screen and (max-width: 480px) {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
  }

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

  .background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
  }

  .countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2d5fff;
    width: 100%;
    height: 2.9rem;

    .countdown-hidden {
      @media screen and (max-width: 768px) {
        display: none;
      }
    }

    .countdown-item {
      display: flex;
      align-items: center;
      justify-content: center;

      .countdown-text {
        color: #fff;
        text-align: center;
        font-family: var(--font-inter);
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;

        @media screen and (max-width: 768px) {
          font-size: 1.2rem;
          @media screen and (max-width: 768px) {
            margin-left: var(--padding-size-mobile);
          }
        }
      }

      .countdown-value {
        color: #fff;
        font-family: var(--font-inter);
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 800;
        line-height: normal;

        @media screen and (max-width: 768px) {
          font-size: 1.2rem;
        }
      }

      .countdown-icon {
        margin-left: 0.8rem;
        width: 1rem;
        height: 0.7rem;
        cursor: pointer;
        transition: 0.4s;

        @media screen and (max-width: 768px) {
          display: none;
        }

        &:hover {
          opacity: 0.8;
          transition: 0.4s;
          transform: translateX(0.2rem);
        }
      }
    }

    .close-icon {
      width: 1.6rem;
      height: 1.6rem;
      padding: 0.2rem;

      margin-right: 2.4rem;
      cursor: pointer;
      transition: 0.4s;

      @media screen and (max-width: 768px) {
        margin-right: var(--padding-size-mobile);
      }

      &:hover {
        opacity: 0.8;
        transition: 0.4s;
      }
    }
  }

  .body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;

    .header {
      width: 100%;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(10.949999809265137px);
      height: 7rem;
      display: flex;
      align-items: center;
      justify-content: center;

      .header-content {
        margin: 0 var(--padding-size);
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;

        @media screen and (min-width: 1200px) and (max-width: 1500px) {
          margin: 0 var(--padding-size-laptop);
        }

        @media screen and (min-width: 769px) and (max-width: 1199px) {
          margin: 0 var(--padding-size-tablet);
        }

        @media screen and (max-width: 768px) {
          margin: 0 var(--padding-size-mobile);
        }

        .turbo-logo {
          height: 3.9rem;
          width: auto;

          @media screen and (max-width: 768px) {
            height: 2.55rem;
          }
        }

        .button-join-discord {
          border-radius: 0.5rem;
          border: 1px solid #9ba3ba;
          width: max-content;

          display: flex;
          align-items: center;
          justify-content: center;
          padding: 1rem 2rem;
          gap: 1rem;
          cursor: pointer;
          transition: 0.4s;

          @media screen and (max-width: 768px) {
            padding: 0.7rem 1.4rem;
          }

          .join-discord-icon {
            width: 1.6rem;
            height: auto;

            @media screen and (max-width: 768px) {
              width: 1.124rem;
            }
          }

          .join-discord-text {
            color: #fff;

            text-align: center;
            font-family: var(--font-inter);
            font-size: 1.4rem;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
          }

          &:hover {
            /* opacity: 0.8; */
            transition: 0.4s;
            background: rgba(255, 255, 255, 0.127);
            backdrop-filter: blur(10.949999809265137px);
          }
        }
      }
    }

    .content {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      flex: 1;

      .content-container {
        margin: 0 var(--padding-size);
        margin-top: 2.23rem;
        width: 100%;

        @media screen and (min-width: 1200px) and (max-width: 1500px) {
          margin: 0 var(--padding-size-laptop);
          margin-top: 2.23rem;
        }

        @media screen and (min-width: 769px) and (max-width: 1199px) {
          margin: 0 var(--padding-size-tablet);
          margin-top: 2.23rem;
        }

        @media screen and (max-width: 768px) {
          margin: 0 2.215rem;
          margin-top: 60%;
        }

        .content-hint {
          color: #fff;
          width: max-content;

          text-align: center;
          font-family: var(--font-inter);
          font-size: 1.2rem;
          font-style: normal;
          font-weight: 600;
          line-height: normal;
          letter-spacing: 0.36rem;
          text-transform: uppercase;

          padding: 0.3rem 0.8rem;
          border-radius: 4px;
          background: #1d1f24;

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

          @media screen and (max-width: 768px) {
            font-size: 1rem;
            padding: 0.151rem 0.4rem;
          }
        }

        .content-title {
          display: flex;
          align-items: flex-start;
          justify-content: flex-start;
          gap: 0.621rem;
          margin-top: 2rem;
          width: max-content;
          margin-left: -3.2rem;

          @media screen and (max-width: 768px) {
            margin-top: 1rem;
            gap: 0.313rem;
            margin-left: -1.6rem;
          }

          .content-title-icon {
            height: 1.8rem;
            width: auto;

            @media screen and (max-width: 768px) {
              height: 0.9rem;
            }
          }

          .content-title-text {
            font-family: var(--font-archivo);
            font-size: 7.2rem;
            font-style: italic;
            font-weight: 900;
            line-height: 7.2rem;
            letter-spacing: -0.864px;
            text-transform: capitalize;
            background: linear-gradient(93deg, #f1f1f1 -3.74%, #a8a8a8 104.46%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;

            @media screen and (max-width: 768px) {
              line-height: 3.6rem;
              font-size: 3.2rem;
              letter-spacing: -0.384px;
            }
          }
        }

        .content-subtitle {
          color: #a7a7a7;
          font-family: "sfProDisplay";
          font-size: 2.2rem;
          font-style: italic;
          font-weight: 600;
          line-height: 3.2rem;
          letter-spacing: 0.196px;

          margin-top: 1.6rem;

          @media screen and (max-width: 768px) {
            margin-top: 0.8rem;

            font-weight: 500;
            line-height: 2rem;
            font-size: 1.4rem;
          }
        }

        .content-button {
          margin-top: 4.6rem;
          width: max-content;

          display: flex;
          align-items: center;
          justify-content: flex-start;
          gap: 1.962rem;

          @media screen and (max-width: 768px) {
            margin-top: 2.3rem;

            gap: 0.962rem;
          }

          .content-button-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            height: 6.1rem;
            width: max-content;
            padding: 0 2.2rem;
            transition: 0.4s;
            cursor: pointer;

            border: 0 solid #2d5fff;
            transition: 0.4s;

            @media screen and (max-width: 768px) {
              height: 4.4rem;

              gap: 0.37rem;
            }

            .content-button-icon {
              height: 2.2rem;
              width: auto;

              @media screen and (max-width: 768px) {
                height: 1.1rem;
              }
            }

            .content-button-text {
              color: #fff;

              font-family: var(--font-inter);
              font-size: 1.6rem;
              font-style: normal;
              font-weight: 600;
              line-height: normal;

              @media screen and (max-width: 768px) {
                font-size: 1.3rem;
              }
            }
          }

          .content-button-item-app {
            border-radius: 0.736rem;
            background: #2d5fff;
            border: 0.123rem solid #2d5fff;

            &:hover {
              transition: 0.4s;
              border: 1px solid #141519;
            }

            .content-button-text-app {
              margin-left: 0.439rem;

              &:hover {
                margin-left: 0.433rem;
              }
            }
          }

          .content-button-item-web {
            border-radius: 0.736rem;
            border: 0.123rem solid #2d5fff;
            background: #141519;

            &:hover {
              transition: 0.4s;
              border: 1px solid #141519;
            }
          }
        }
      }
    }
  }

  .footer {
    border-top: 1px solid #202227;
    background: #131418;
    width: 100%;

    .footer-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 var(--padding-size);
      padding: 1.9rem 0;

      @media screen and (max-width: 768px) {
        padding: 1rem 0;
      }

      @media screen and (min-width: 1200px) and (max-width: 1500px) {
        margin: 0 var(--padding-size-laptop);
      }

      @media screen and (min-width: 769px) and (max-width: 1199px) {
        margin: 0 var(--padding-size-tablet);
      }

      @media screen and (max-width: 768px) {
        margin: 0 var(--padding-size-mobile);
      }

      .footer-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;

        .footer-left-icon {
          height: 2.4rem;
          width: auto;
        }

        .footer-left-text {
          color: #fff;
          font-family: var(--font-inter);
          font-size: 1.4rem;
          font-style: normal;
          font-weight: 500;
          line-height: 3rem;

          @media screen and (max-width: 768px) {
            font-size: 1rem;
          }
        }
      }

      .footer-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .footer-right-container {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          gap: 1.7rem;

          @media screen and (max-width: 768px) {
            display: none;
          }
          .footer-right-text {
            color: #9ba3ba;
            font-family: var(--font-inter);
            font-size: 1.4rem;
            font-style: normal;
            font-weight: 400;
            line-height: 3rem;
            cursor: pointer;
            transition: 0.4s;

            &:hover {
              opacity: 0.8;
              transition: 0.4s;
            }
          }

          .footer-right-social {
            margin-left: 4.3rem;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 1.6rem;

            .footer-left-icon {
              width: 2.8rem;
              height: 2.8rem;
              cursor: pointer;
              transition: 0.4s;

              &:hover {
                opacity: 0.8;
                transition: 0.4s;
              }
            }
          }
        }

        .hamburger-icon {
          display: none;
          width: 2.4rem;
          transition: 0.4s;

          @media screen and (max-width: 768px) {
            display: block;
          }

          &:hover {
            opacity: 0.8;
            transition: 0.4s;
          }
        }
      }
    }
  }
}

.mobile-menu {
  display: none;

  @media screen and (max-width: 768px) {
    display: block;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100);
    transition: visibility 0.15s 0s;

    transform: translateX(-50%);
    z-index: 999;
    transition: 0.4s;

    &.open {
      transition: visibility 0s 0s;
      visibility: visible;
      background: rgba(51, 54, 58, 0.6);
      transition: 0.4s;
    }

    .mobile-menu-container {
      height: auto;

      position: absolute;
      overflow: hidden;
      right: 0;
      bottom: 0;
      width: 100%;

      display: flex;
      flex-direction: column;
      border-radius: 24px 24px 0 0;
      background: #131921;
      transform: translateY(100%);
      transition: 0.4s;

      &.open {
        transform: translateY(0);
        transition: 0.4s;
      }

      .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        cursor: pointer;
        transition: 0.4s;
        filter: brightness(0.34);

        .mobile-menu-close-icon {
          height: 1.8rem;
          width: 1.8rem;
          padding: 0.3rem;
        }

        &:hover {
          opacity: 0.8;
          transition: 0.4s;
        }
      }

      .mobile-menu-container-item {
        padding: 1.8rem 1.6rem;
        color: #9ba3ba;
        font-family: var(--font-inter);
        font-size: 1.4rem;
        font-style: normal;
        line-height: 3rem;
        font-weight: 400;

        border-bottom: 1px solid #373739;

        &:last-child {
          border-bottom: none;
        }

        &:first-child {
          margin-top: 0.6rem;
          border-bottom: none;
          padding-bottom: 0;
        }

        &:nth-child(2) {
          padding-top: 0;
        }

        &:hover {
          color: #fff;
        }

        .mobile-menu-social {
          display: flex;
          align-items: center;
          justify-content: flex-start;
          gap: 1.6rem;

          margin-top: 0.2rem;

          .mobile-menu-social-icon {
            height: 2.8rem;
            width: 2.8rem;
          }
        }
      }
    }
  }
}
