/* Hero V2 Block - Crypto Investment Platform */
.hero-v2-block {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Background Elements */
.hero-ellipse-left {
  position: absolute;
  top: 0;
  right: 75%;
  border-radius: 1063px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #4739ea 0%,
    rgba(71, 57, 234, 0) 100%
  );
  width: 75%;
  height: 1021px;
}

.hero-ellipse-right {
  position: absolute;
  top: 0;
  left: 75%;
  border-radius: 1063px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #4739ea 0%,
    rgba(71, 57, 234, 0) 100%
  );
  width: 75%;
  height: 1021px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 未使用
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            #1a1b3e 0%,
            #2d1b69 25%,
            #4c1d95 50%,
            #5b21b6 75%,
            #7c3aed 100%);
}

.gradient-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%,
            rgba(59, 130, 246, 0.3) 0%,
            transparent 50%),
        radial-gradient(ellipse at 80% 20%,
            rgba(147, 51, 234, 0.3) 0%,
            transparent 50%);
}

.flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%),
        radial-gradient(circle at 90% 80%,
            rgba(147, 51, 234, 0.1) 0%,
            transparent 50%),
        linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.05) 50%,
            transparent 100%);
    animation: flowAnimation 20s linear infinite;
}
*/

/* 未使用 
@keyframes flowAnimation {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(100px);
    }
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
*/

/* Main Content */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 0 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

/* Left Content */
.hero-content-left {
  z-index: 3;
}

.hero-title {
  color: #fff;
  font-family: "Bai Jamjuree";
  font-size: clamp(46px, 4vw, 80px);
  font-style: normal;
  font-weight: 700;
  line-height: 109%;
  letter-spacing: 4.8px;
  text-transform: capitalize;
  text-align: left;
}

.hero-description {
  color: #fff;
  font-family: "Bai Jamjuree";
  font-size: 20.943px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  letter-spacing: 0.628px;
  margin-top: 12px;
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-btn-primary,
.hero-btn-secondary {
  width: calc(48% - 0.5rem);
  min-width: 200px;
  max-width: 300px;
  height: 56px;
  flex-shrink: 0;
  color: #fff !important;
  text-align: center;
  text-shadow: 0 6px 17px #4739ea;
  font-family: "Bai Jamjuree";
  font-size: 25px;
  font-style: normal;
  font-weight: 700 !important;
  line-height: 50px;
  letter-spacing: 0.5px;
  border-radius: 25px;
  border: 2.5px solid #0ff;
  background: linear-gradient(180deg, #0ff 0.19%, #506bdd 123.54%);
}

/* Security Section */
.hero-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.hero-security-text {
  color: #0FF;
    font-weight: 700;
    font-size: x-small;
}

/*
.security-partners {
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 0.5px;
}

.security-icon {
    color: #00d4ff;
    opacity: 0.8;
}
*/

/* Right Content - Vault Image */
.hero-content-right {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.vault-halo-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.vault-halo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-vault-image {
  position: relative;
  max-width: 100%;
  height: auto;
  margin-right: 10%;
  
}

/* Common vault image styles */
.hero-vault-image img {
  width: 659px;
  object-fit: contain;
}

/* Vault Mesh Container - 独立容器 */
.vault-mesh-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1137px;
  height: 1137px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.vault-mesh-container .vault-mesh-image {
  object-fit: contain;
  opacity: 1;
}

.hero-vault-image .vault-base-image {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
  opacity: 0;
  z-index: 1;
  animation: fadeInBase 0.8s ease-in-out 3s forwards;
}

.hero-vault-image .vault-line-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 1;
  animation-iteration-count: infinite;
  mix-blend-mode: plus-lighter;
}

.hero-how-to-get-started {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 50px;
  background-color: #4739ea;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  z-index: 5;
}

.hero-how-to-get-started-title {
  padding: 4px 20px;
  color: #fff;
  text-align: center;
  font-family: "Bai Jamjuree";
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 125%;
  /* 32.5px */
  letter-spacing: 0.26px;
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInBase {
  0% {
    opacity: 0;
    transform: translateY(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* 未使用 - 3D Cube 相關樣式
.cube-3d {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
    margin: 50px auto;
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.cube-front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

.cube-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(0, 212, 255, 0.2) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.cube-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.7;
    animation: floatParticle 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 90%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: 0.5s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}
*/

/* Responsive Design */

@media (max-width: 968px) {
  .hero-container {
    padding: 0 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    justify-items: center;
    align-items: center;
    width: 100%;
  }

  .hero-content-left {
    order: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero-ellipse-left {
    width: 200%;
    right: 30%;
  }
  
  .hero-ellipse-right {
    width: 200%;
    left: 30%;
  }

  .hero-content-right {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 109%;
    /* 34.88px */
    letter-spacing: 1.92px;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.75rem;
    margin-top: 8px;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
  }

.hero-security img{
}

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 259px;
    max-width: 90vw;
    min-width: auto;
  }

  .hero-vault-image {
    width: 65%;
    max-width: none;
    text-align: center;
    margin: 0 auto;
    position: relative;
    height: 200px; 
  }

  /* Mobile vault image styles */
  .hero-vault-image img {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 400px;
  }
  
  /* Mobile vault mesh container */
  .vault-mesh-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 688px;
    height: 700px;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
  }
  
  .vault-mesh-container .vault-mesh-image {
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    opacity: 1;
  }
  
  .hero-vault-image .vault-base-image {
    display: none; /* 隐藏 base image */
  }
  
  .hero-vault-image .vault-base-image.vault-animate-start {
    animation: fadeInBase 0.8s ease-in-out 3s forwards;
  }
  
  .hero-vault-image .vault-line-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; /* 移动端直接显示 */
    mix-blend-mode: plus-lighter;
    animation-iteration-count: infinite;
    z-index: 2;
  }
  
  /* Mobile vault halo image - 自定义尺寸和角度 */
  .vault-halo-image {
    position: absolute;
    top: -5%;
    left: 30%;
    width: 845.911px;
    height: 592.033px;
    transform: translateX(-50%) rotate(13.282deg);
    z-index: 1;
    pointer-events: none;
  }
  
  .vault-halo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* .cube-container {
        width: 250px;
        height: 250px;
    } */

  .hero-how-to-get-started {
    width: 40%;
  }

  .hero-how-to-get-started-title {
    color: #fff;

    text-align: center;
    font-family: "Bai Jamjuree";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%; /* 20px */
    letter-spacing: 0.16px;
  }
}
