:root {
  --bg: #262524;
  --gold: #d4a15f;
  --text: #ffffff;
  --muted: #cccccc;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

.container {
  max-width: 1440px;
  margin: 0 12.5%;
  padding: 0 1.25%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;

  &.btn-primary {
    background: var(--gold);
    color: var(--text);
    padding: 10px 16px;
    gap: 10px;

    .btn-icon {
      transform: rotate(180deg);
    }

    &.light {
      background: var(--gold);
      color: var(--text);
      align-self: flex-start;
    }
  }

  &.btn-ghost {
    color: var(--text);
    border: 1px solid transparent;
    padding: 10px 16px;
  }
}

.section-title {
  margin-bottom: 10px;
  text-align: center;
  font-family: "AR One Sans", Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 75px;

  .accent {
    color: var(--gold);
  }
}

.section-subtitle {
  text-align: center;
  color: #eeeeee;
  font-size: 16px;
  margin-top: 8px;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(38, 37, 36, 0);
  transition: background-color 0.3s ease;

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: Poppins, Poppins;

    .brand-mark {
      display: flex;
      justify-content: center;
      align-items: center;
      border: 3px solid var(--text);
      border-radius: 50%;
      padding: 0 12px;
      width: 50px;
      height: 50px;
    }

    .brand-e {
      display: block;
      color: var(--text);
      font-family: Poppins, Arial, Helvetica, sans-serif;
      font-weight: 700;
      font-size: 32px;
      justify-content: center;
      transform: skew(-25deg);
    }

    .brand-er {
      color: var(--text);
      font-family: Poppins, Arial, Helvetica, sans-serif;
      font-size: 24px;
      transform: skew(-25deg);
    }
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 80px;

    .nav-link {
      color: var(--text);
      text-decoration: none;
      font-size: 14px;
      padding: 10px 14px;

      &.nav-cta {
        border-radius: 10px;
        background: var(--gold);
        color: var(--text);
      }
    }
  }
}

.hero {
  position: relative;
  padding-top: 120px;
  display: flex;
  justify-content: center;

  .hero-bg {
    position: absolute;
    inset: 0;
    background: url('../.figma/image/mi2ibm60-7o7mc75.png') center/cover no-repeat;
  }

  .hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 120px 0 40px;

    .hero-title {
      margin: 0;
      text-align: center;
      font-family: "AR One Sans", Arial, Helvetica, sans-serif;
      font-size: 72px;
      line-height: 1.1;
    }

    .hero-subtitle {
      max-width: 720px;
      text-align: center;
      color: var(--text);
      font-size: 18px;
      margin: 0 12%;
    }

    .hero-actions {
      display: flex;
      gap: 24px;
      margin: 8px 8% 0;
    }

    .partners {
      display: flex;
      gap: 32px;
      margin-top: 64px;
      justify-content: space-around;
      width: 100vw;

      img {
        height: 36px;
      }
    }
  }
}

.navigation {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 74px;
  top: calc(50% - 65px);
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  &.visible {
    opacity: 1;
    visibility: visible;
  }

  .point {
    width: 10px;
    height: 10px;
    background: rgba(127, 127, 127, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;

    &.active {
      background: #7F7F7F;
      transform: scale(1.2);
    }
  }
}

.projects {
  padding: 80px 0;
  background: #262524;

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 120px;
    gap: 70px;

    h3 {
      margin: 0 0 20px;
      font-size: 24px;
      color: var(--text);
    }

    p {
      color: #cccccc;
      line-height: 26px;
      font-size: 14px;
    }

    .projects-article {
      width: 370px;
      line-height: 36px;
    }

    .projects-areas {
      display: flex;
      gap: 14px;
      flex-direction: column;

      .area-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text);
        font-weight: 500;
        height: 32px;
        font-size: 14px;
      }
    }

    .projects-media {
      img {
        width: 352px;
        height: auto;
      }
    }
  }
}

.cases {
  padding: 40px 0;
  margin-bottom: 150px;

  .cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    .case-card {
      position: relative;
      display: flex;
      justify-content: center;
      height: calc(25vw / 480 * 760);
      color: var(--text);
      align-items: center;
      flex-direction: column;
      overflow: hidden;

      .case-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;

        .case-title {
          font-size: 28px;
          font-weight: 600;
          text-align: center;
          z-index: 10;
        }

        .case-play {
          z-index: 10;
        }

        .case-mask {
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          right: 0;
          background: rgba(38, 37, 36, 0.6);
        }
      }

      .case-hover {
        position: absolute;
        width: 80px;
        height: 80px;
        border-radius: 100px;
        background: #D4A15F;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;

        .case-play {
          z-index: 10;
        }
      }

      .case-back {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: auto;
      }

      &:hover {
        .case-content {
          opacity: 0;
        }

        .case-hover {
          opacity: 1;
        }
      }
    }
  }
}

.feature {
  position: relative;
  min-height: calc(100vw / 1920 * 800);
  overflow: hidden;

  .feature-bg {
    position: absolute;
    width: 100%;
    height: 100%;

    img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .feature-mask {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      background: linear-gradient(180deg, rgba(19, 26, 42, 0) 0%, rgba(19, 26, 42, 0.6) 100%);
    }
  }

  .feature-inner {
    position: relative;

    .feature-copy {
      text-align: right;
      display: flex;
      flex-direction: column;
      align-items: flex-end;

      .feature-title {
        margin: 153px 0 40px;
        font-size: 72px;
        font-weight: 600;
      }

      .feature-desc {
        color: var(--text);
        font-size: 20px;
        line-height: 1.7;
        margin-bottom: 80px;
        width: 77%;
      }

      .btn {
        margin-bottom: 40px;
      }
    }
  }
}

.company {
  padding: 80px 0;

  .company-inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: center;

    .company-copy {
      .section-title {
        justify-self: start;
        text-align: left;
      }

      .company-text {
        color: #eeeeee;
        line-height: 1.7;
        margin-bottom: 60px;

        strong {
          display: block;
          margin-bottom: 12px;
          color: var(--text);
          font-size: 20px;
        }
      }
    }

    .company-media {
      display: flex;
      flex-direction: column;
      gap: 24px;

      .hero-shot {
        width: calc(72.5vw / 5 * 3);

        img {
          width: 100%;
          height: calc(72.5vw / 5 * 3 / 1.7);
        }
      }

      .thumbs {
        display: flex;
        gap: 40px;
        align-items: center;
        justify-content: space-between;
        width: 100%;

        .thumbs-box {
          width: 500px;
          overflow: hidden;
          display: flex;
          justify-content: center;

          .thumbs-container {
            display: flex;
            justify-content: space-between;
            width: 860px;
            gap: 40px;

            img {
              width: 140px;
              height: 80px;
            }
          }
        }

        .carousel-btn {
          width: 50px;
          height: 50px;

          &.next-btn {
            transform: rotate(180deg);
          }
        }
      }
    }
  }
}

.social {
  background: var(--text);
  color: #000;
  padding: 80px 0;

  .social-inner {
    gap: 120px;
    display: grid;
    grid-template-columns: 4fr 1fr;
    align-items: center;

    .social-shot {
      width: 100%;
      height: auto;
    }

    .social-list {
      display: flex;
      flex-direction: column;
      gap: 100px;
      align-items: center;

      .social-x {
        font-size: 50px;
        color: #666;
        font-weight: 600;
      }

      .social-discord {
        font-size: 60px;
        font-weight: 600;
      }

      .social-telegram {
        font-size: 40px;
        color: #999;
        font-weight: 600;
      }
    }
  }
}

.site-footer {
  background: url('../.figma/image/mi2ibm6f-8pcf04q.png') center/cover no-repeat;
  color: #f4f4f4;
  position: relative;
  font-size: 14px;

  * {
    z-index: 10;
  }

  .footer-mask {
    z-index: 0 !important;
    background-color: #262524e0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    padding: 40px 240px 60px;
    position: relative;

    .footer-col {
      display: flex;
      flex-direction: column;
      gap: 20px;

      .footer-title {
        font-weight: 600;
        text-decoration: underline;
      }

      .footer-item {
        color: var(--text);
      }
    }

    .footer-help {
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: var(--text);
      width: 36px;
      height: 36px;
      position: absolute;
      bottom: 75px;
      right: 93px;

      img {
        width: 14px;
        height: 14px;
      }
    }
  }

  .footer-line {
    box-shadow: 0px 1px 1px 0px rgb(239, 239, 239);
    border: 1px solid #000000;
    width: 100vw;
    height: 0;
  }

  .footer-bottom {
    .footer-bottom-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 240px;

      .follow {
        display: flex;
        align-items: center;
        gap: 12px;

        img {
          width: 20px;
          height: 20px;
        }
      }

      .footer-bottom-right {
        display: flex;
        gap: 78px;

        .copyright {
          color: #f4f4f4;
        }

        .locale {
          display: flex;
          gap: 12px;
          color: #f0f0f3;
        }
      }
    }
  }
}

@media (max-width: 1584px) {
  .projects {
    .projects-grid {

      h3 {
        font-size: calc(max(100vw / 88, 16px));
        margin: 0 0 calc(100vw / 79);
        line-height: calc(max(100vw / 88, 16px));
      }

      .projects-areas {
        gap: calc(100vw / 102);

        .area-item {
          font-size: calc(max(100vw / 113, 14px));
          height: calc(max(100vw / 49, 19px));

          img {
            height: 100%;
            width: auto;
          }
        }
      }

      .projects-media {
        img {
          width: 100%;
          height: auto;
        }
      }
    }
  }

  .company {
    .company-inner {
      .company-media {
        .thumbs {
          gap: calc(100vw / 66);

          .thumbs-box {
            width: calc(((72.5vw / 5 * 3) - 100vw / 30 * 2 - 100vw / 66 * 2));

            .thumbs-container {
              gap: calc(100vw / 40);
              width: calc(((72.5vw / 5 * 3) - 100vw / 30 * 2 - 100vw / 66 * 2 - 100vw / 40 * 2) / 3 * 5 + 4 * 100vw / 40);

              img {
                width: calc(((72.5vw / 5 * 3) - 100vw / 30 * 2 - 100vw / 66 * 2 - 100vw / 40 * 2) / 3);
                height: auto;
              }
            }
          }

          .carousel-btn {
            width: calc(100vw / 30);
            height: calc(100vw / 30);
          }
        }
      }
    }
  }
}

@media (max-width: 1440px) {
  .section-title {
    font-size: calc(max(100vw / 36, 25px));
    line-height: calc(max(100vw / 19, 25px));
  }

  .site-header {
    .header-inner {
      margin: 0 3%;
      padding: calc(100vw / 60) 0;
    }

    .brand {
      gap: calc(100vw / 72);

      .brand-mark {
        padding: 0 calc(100vw / 120);
        width: calc(max(100vw / 28.8, 45px));
        height: calc(max(100vw / 28.8, 45px));
      }

      .brand-e {
        font-size: calc(max(100vw / 45, 32px));
      }

      .brand-er {
        font-size: calc(max(100vw / 60, 30px));
      }
    }

    .nav {
      gap: calc(100vw / 18);

      .nav-link {
        padding: calc(100vw / 144) calc(100vw / 103);
      }
    }
  }

  .hero {
    .hero-inner {
      padding: calc(100vw / 12) 0 calc(100vw / 36);

      .partners {
        gap: calc(100vw / 32);
        margin-top: 64px;
        width: 100vw;
        margin-top: calc(100vw / 24);

        img {
          height: calc(100vw / 40);
        }
      }
    }
  }

  .navigation {
    display: none;
  }

  .projects {
    padding: calc(100vw / 18) 0;

    .projects-grid {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: calc(100vw / 12);

      p {
        line-height: calc(max(100vw / 55, 14px));
        font-size: calc(max(100vw / 102, 14px));
      }
    }
  }

  .cases {
    margin-bottom: calc(100vw / 10);

    .cases-grid {
      .case-card {
        .case-play {
          height: calc(100vw / 31);
        }

        .case-content {
          gap: calc(100vw / 24);

          .case-title {
            font-size: calc(max(100vw / 51, 16px));
          }
        }

        .case-hover {
          width: calc(100vw / 18);
          height: calc(100vw / 18);
        }
      }
    }
  }

  .feature {
    .feature-inner {
      .feature-copy {
        .feature-title {
          font-size: calc(max(100vw / 20, 25px));
          margin: calc(100vw / 9) 0 calc(100vw / 36);
        }

        .feature-desc {
          font-size: calc(max(100vw / 72, 14px));
        }
      }
    }
  }

  .company {
    .company-inner {
      display: flex;
      flex-direction: column;

      .company-copy {
        .company-text {
          p {
            font-size: calc(max(100vw / 72, 14px));
          }
        }
      }
    }
  }

  .social {
    padding: calc(100vw / 18) 0;

    .social-inner {
      gap: calc(100vw / 12);

      .social-list {
        gap: calc(100vw / 14);

        .social-x {
          font-size: calc(100vw / 29);
        }

        .social-discord {
          font-size: calc(100vw / 24);
        }

        .social-telegram {
          font-size: calc(100vw / 36);
        }
      }
    }
  }

  .site-footer {
    .footer-top {
      padding: calc(100vw / 36) calc(100vw / 6) calc(100vw / 24);

      .footer-col {
        gap: calc(100vw / 72);
      }
    }

    .footer-bottom {
      .footer-bottom-inner {
        padding: calc(100vw / 80) calc(100vw / 6);

        .follow {
          gap: calc(100vw / 120);
        }

        .footer-bottom-right {
          gap: calc(100vw / 18);

          .locale {
            gap: calc(100vw / 120);
          }
        }
      }
    }
  }
}

@media (max-width: 900px) {
  .projects {
    .projects-grid {
      .projects-media {
        max-width: 300px;
      }
    }
  }

  .company {
    .company-inner {
      .company-media {

        .hero-shot {
          width: calc(max(72.5vw / 5 * 3, 300px));

          img {
            width: 100%;
            height: calc(max(72.5vw / 5 * 3, 300px) / 1.7);
          }
        }

        .thumbs {
          gap: calc(100vw / 66);

          .thumbs-box {
            width: calc((max(72.5vw / 5 * 3, 300px) - 100vw / 30 * 2 - 100vw / 66 * 2));

            .thumbs-container {
              gap: calc(100vw / 40);
              width: calc((max(72.5vw / 5 * 3, 300px) - 100vw / 30 * 2 - 100vw / 66 * 2 - 100vw / 40 * 2) / 3 * 5 + 4 * 100vw / 40);

              img {
                width: calc((max(72.5vw / 5 * 3, 300px) - 100vw / 30 * 2 - 100vw / 66 * 2 - 100vw / 40 * 2) / 3);
                height: auto;
              }
            }
          }

          .carousel-btn {
            width: calc(100vw / 30);
            height: calc(100vw / 30);
          }
        }
      }
    }
  }

  .site-footer {
    .footer-top {
      padding: calc(100vw / 22) calc(100vw / 7.5) calc(100vw / 15);

      .footer-help {
        right: 46px;
      }
    }

    .footer-bottom {
      .footer-bottom-inner {
        padding: calc(100vw / 50) calc(100vw / 7.5);
      }
    }
  }
}

@media (max-width: 820px) {
  .btn {
    &.btn-primary {
      padding: calc(100vw / 82) calc(100vw / 68);
    }
  }

  .projects {
    .projects-grid {
      gap: calc(100vw / 11);

      .projects-media {
        max-width: 200px;
      }
    }
  }

  .site-footer {

    .footer-bottom {
      .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;

        .footer-bottom-right {
          flex-direction: column;
          align-items: center;
          gap: 10px;
        }
      }
    }
  }
}

@media (max-width: 720px) {

  .section-subtitle {
    font-size: calc(max(100vw / 45, 18px));
  }

  .site-header {
    .header-inner {
      flex-direction: column;
      gap: var(100vw / 36);

      .brand {
        align-self: baseline;
      }

      .nav {
        width: 100%;
        justify-content: space-between;
      }
    }
  }

  .hero {
    .hero-inner {
      .hero-title {
        font-size: calc(max(100vw / 10, 32px));
      }

      .hero-subtitle {
        font-size: calc(max(100vw / 40, 16px));
      }
    }
  }

  .projects {
    .projects-grid {
      gap: calc(100vw / 36) calc(100vw / 14);
    }
  }

  .cases {
    .cases-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);

      .case-card {
        width: 50vw;
        height: 50vw;
      }
    }
  }

  .feature {
    .feature-inner {
      .feature-copy {
        .feature-desc {
          width: 100%;
          margin-bottom: calc(100vw / 18);
        }

        .btn {
          margin-bottom: calc(100vw / 18);
        }
      }
    }
  }

  .company {
    .company-inner {
      .company-copy {
        .company-text {
          strong {
            font-size: calc(max(100vw / 45, 18px));
          }
        }
      }
    }
  }

  .site-footer {
    .footer-top {
      padding: calc(100vw / 18) calc(100vw / 12) calc(100vw / 12);

      .footer-help {
        bottom: 95px;
      }
    }
  }
}

@media (max-width: 560px) {
  .btn {
    font-size: calc(max(100vw / 40, 12px));
    line-height: calc(max(100vw / 40, 12px));
  }

  .site-footer {
    .footer-top {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: calc(100vw / 28);
    }
  }
}

@media (max-width: 486px) {
  .site-header {
    .header-inner {
      .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px 35px;
        margin-top: -29.5px;
      }
    }
  }
}