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

:root {
  --dark-color: hsl(var(--hue), 100%, 4%);
  --light-color: hsl(var(--hue), 95%, 98%);
  --base: hsl(var(--hue), 95%, 50%);
  --complimentary1: hsl(var(--hue-complimentary1), 95%, 50%);
  --complimentary2: hsl(var(--hue-complimentary2), 95%, 50%);

  --font-family: "Poppins", system-ui;

  --bg-gradient: linear-gradient(
    to bottom,
    hsl(var(--hue), 95%, 99%),
    hsl(var(--hue), 95%, 84%)
  );
  --main-btn-height: 60px;
  --main-btn-width: 216px;
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

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


body {
  display: grid;
  place-items: center;
  font-family: "Montserrat", sans-serif;
  font-family: var(--font-family);
  color: var(--light-color);
  background: #121212;
  /* background: var(--dark-color); */
}

.orb-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--dark-color);
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(16px);
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.1);
  z-index: 1;
}

#logo {
  margin-right: 32px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav a {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
  font-size: 16px;
  font-weight: medium;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
  border-radius: 20px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

header {
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-content {
  margin: 0 auto;
  padding-top: 160px;
}

.header-content h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.header-content p {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 40px;
}

.slogan {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slogan h2 {
  font-size: 40px;
  font-weight: bolder;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.text-gradient {
  background: linear-gradient(160deg, #34FBCB -2%, #53ACFF 102%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

button a {
  text-decoration: none;
  color: white;
}

#typing-effect {
  width: 100%;
  font-size: 36px;
  font-weight: bold;
  line-height: 48px;
}

#typing-cursor {
  display: inline-block;
  width: 4px;
  height: 36px;
  margin-left: 4px;
  background: linear-gradient(160deg, #34FBCB -2%, #53ACFF 102%);
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.slogan h3 {
  font-size: 32px;
  font-weight: lighter;
}

.btn-groups {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
  gap: 40px;
}

#download-select {
  position: relative;
}

#download-menu {
  width: 300px;
  background: white;
  border-radius: 12px;
  padding: 8px 16px;
  position: absolute;
  left: 0px;
  top: 80px;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  z-index: 1000;
}

#download-menu.show {
  opacity: 1.0;
  transform: translate(0, 0);
}

#download-menu.hide {
  opacity: 0.0;
  transform: translate(0, 16px);
}

#download-menu ul {
  list-style: none;
}

#download-menu ul li a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

#download-menu ul li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-groups .btn {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  align-items: center;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.8);
  width: var(--main-btn-width);
  height: var(--main-btn-height);
  border: none;
  border-radius: 16px;
  
  font-size: 18px;
  font-weight: 600;
  color: white;
  padding: 32px;
  padding-right: 16px;
  height: 48px;
  transition: all 0.3s ease-in-out;
}

.btn-groups .btn .icon {
  width: 24px;
  height: 24px;
}

.btn-groups .btn:hover {
  transform: translateY(-2px) scale(1.05);
  /* background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 60%, #4e00c2); */
}

.btn-groups .btn span {
  font-size: 14px;
  font-weight: lighter;
}

.btn-groups .btn::before {
  content: "";
  width: 220px;
  height: 68px;
  border-radius: 18px;
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 60%, #4e00c2);
  position: absolute;
  z-index: -1;
  top: -2px;
  left: -2px;
  animation: spin 6s linear infinite;
}

.btn-groups .btn::after {
  position: absolute;
  content: "";
  top: 10px;
  left: 0;
  right: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(1.0);
  filter: blur(20px);
  background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
  opacity: 1;
  transition: opacity .5s;
  animation: spin 6s ease infinite;
}

/* 内测按钮，高亮 */
.btn-groups .btn#beta-invite {
  width: 220px;
  padding-right: 32px;
  background-image: linear-gradient(var(--rotate),  #A042FF, #4e00c2);
  animation: spin 6s ease-in-out infinite;
}

.btn-groups .btn#beta-invite::before {
  width: 224px;
  background-image: linear-gradient(var(--rotate), #4e00c2, #A042FF );
}

.btn-groups .btn#beta-invite::after {
  background-image: linear-gradient(var(--rotate), #A042FF, #4e00c2);
}


@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

#product-video {
  display: block;
  width: 1080px;
  position: relative;
}

#videoPlayer {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  width: 1080px;
  object-fit: cover;
  animation: scale-back 0.4s ease-in-out forwards;
}

@keyframes scale {
  0% { transform: translateY(0) scale3d(0.9,0.9,1); }
  64% { transform: translateY(-8px) scale3d(1.01,1.01,1); }
  100% { transform: translateY(-16px) scale3d(1,1,1); }
}

@keyframes scale-back {
  0% { transform: translateY(-16px) scale3d(1,1,1); }
  64% { transform: translateY(-8px) scale3d(1.01,1.01,1); }
  100% { transform: translateY(0) scale3d(0.9,0.9,1); }
}

#videoPlayer.playing {
  animation: scale 0.4s ease-in-out forwards;
}

#playButton, #pauseButton {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  position: absolute;
  top: 70%;
  left: 50%;
  cursor: pointer;

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

  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(16px);
  box-shadow: 0px -1px 0px rgba(255, 255, 255, 0.1);
  border: transparent 2px solid;

  transform: translate(-50%, -50%);
  transition: all 0.3 ease;
}

#pauseButton {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

#playButton:hover, #pauseButton:hover{
  border: #46E5AC 2px solid;
}

#playButton svg, #pauseButton svg {
  fill: white;
  stroke: none;
}

#pauseButton {
  display: none;
}

.features-list {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.features-list h2 {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
  padding: 24px;
  width: 370px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4F46E5 0%, #9747FF 100%);
}

.feature.light {
  background: linear-gradient(180deg, #46E5AC 0%, #47B2FF 100%);
}

.feature-img {
  width: 320px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.feature i {
  font-size: 48px;
  margin-right: 20px;
  color: #252525;
}

.feature h3 {
  font-size: 24px;
  font-weight: bolder;
  line-height: 48px;
}

.feature p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.8;
}

.scenes {
  padding: 100px 0;
}

.scenes h2 {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
}

.scene {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.scene i {
  font-size: 48px;
  margin-right: 20px;
  color: #252525;
}

.scene h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.scene p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.cta {
  background-color: #252525;
  padding: 100px 0;
}

.cta h2 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 80px;
}

.cta button {
  background-color: #fff;
  color: #252525;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

.cta button:hover {
  background-color: #f2f2f2;
  color: #252525;
}

footer {
  margin-top: 80px;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;

  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(16px);
  box-shadow: 0px -1px 0px rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.6);
}

@media screen and (max-width: 767px) {
  .features h2,
  .scenes h2,
  .cta h2 {
    font-size: 36px;
    margin-bottom: 60px;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature i {
    margin: 0 0 20px 0;
  }

  .scene {
    flex-direction: column;
    text-align: center;
  }

  .scene i {
    margin: 0 0 20px 0;
  }

  .cta button {
    font-size: 16px;
    padding: 15px 30px;
  }
}
