/* ============================================================
   HHpoker 德扑圈 - Isometric Illustration Style
   Colors: indigo-500 (#6366F1) + purple-400 (#A855F7) + cyan-300 (#67E8F9)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-800: #3730A3;
  --indigo-900: #312E81;
  --purple-400: #A855F7;
  --purple-500: #9333EA;
  --purple-600: #7C3AED;
  --purple-700: #6D28D9;
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;
}

/* ---------- Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Navigation Logo (Isometric) ---------- */
.iso-logo {
  width: 36px;
  height: 36px;
  perspective: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iso-logo-inner {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
  transform: rotateX(45deg) rotateZ(45deg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ============================================================
   HERO SECTION - Floating Isometric Shapes
   ============================================================ */
.iso-scene {
  perspective: 800px;
  perspective-origin: 50% 50%;
}

/* --- Isometric Cube Base --- */
.iso-cube {
  position: absolute;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: floatCube 8s ease-in-out infinite;
}
.iso-cube.cube-sm {
  width: 40px;
  height: 40px;
}
.iso-cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border-radius: 4px;
}
.iso-cube .face.front {
  transform: translateZ(40px);
}
.iso-cube .face.top {
  transform: rotateX(90deg) translateZ(40px);
}
.iso-cube .face.right {
  transform: rotateY(90deg) translateZ(40px);
}
.iso-cube.cube-sm .face.front { transform: translateZ(20px); }
.iso-cube.cube-sm .face.top { transform: rotateX(90deg) translateZ(20px); }
.iso-cube.cube-sm .face.right { transform: rotateY(90deg) translateZ(20px); }

/* Cube 1 - Large indigo */
.cube-1 {
  top: 15%;
  right: 10%;
  width: 100px;
  height: 100px;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-duration: 10s;
}
.cube-1 .face.front {
  background: rgba(99, 102, 241, 0.15);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  transform: translateZ(50px);
}
.cube-1 .face.top {
  background: rgba(99, 102, 241, 0.2);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  transform: rotateX(90deg) translateZ(50px);
}
.cube-1 .face.right {
  background: rgba(79, 70, 229, 0.12);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  transform: rotateY(90deg) translateZ(50px);
}

/* Cube 2 - Large purple */
.cube-2 {
  top: 55%;
  left: 5%;
  width: 90px;
  height: 90px;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-duration: 12s;
  animation-delay: -4s;
}
.cube-2 .face.front {
  background: rgba(168, 85, 247, 0.13);
  border: 1.5px solid rgba(168, 85, 247, 0.28);
  transform: translateZ(45px);
}
.cube-2 .face.top {
  background: rgba(168, 85, 247, 0.18);
  border: 1.5px solid rgba(168, 85, 247, 0.32);
  transform: rotateX(90deg) translateZ(45px);
}
.cube-2 .face.right {
  background: rgba(147, 51, 234, 0.10);
  border: 1.5px solid rgba(168, 85, 247, 0.22);
  transform: rotateY(90deg) translateZ(45px);
}

/* Cube 3 - Small cyan */
.cube-3 {
  top: 25%;
  left: 15%;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-duration: 7s;
  animation-delay: -2s;
}
.cube-3 .face.front {
  background: rgba(6, 182, 212, 0.2);
  border: 1.2px solid rgba(6, 182, 212, 0.35);
}
.cube-3 .face.top {
  background: rgba(6, 182, 212, 0.25);
  border: 1.2px solid rgba(6, 182, 212, 0.4);
}
.cube-3 .face.right {
  background: rgba(8, 145, 178, 0.15);
  border: 1.2px solid rgba(6, 182, 212, 0.28);
}

/* Cube 4 - Small indigo/purple */
.cube-4 {
  bottom: 20%;
  right: 20%;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-duration: 9s;
  animation-delay: -6s;
}
.cube-4 .face.front {
  background: rgba(99, 102, 241, 0.18);
  border: 1.2px solid rgba(168, 85, 247, 0.3);
}
.cube-4 .face.top {
  background: rgba(168, 85, 247, 0.22);
  border: 1.2px solid rgba(168, 85, 247, 0.35);
}
.cube-4 .face.right {
  background: rgba(99, 102, 241, 0.12);
  border: 1.2px solid rgba(99, 102, 241, 0.25);
}

/* --- Isometric Diamond --- */
.iso-diamond {
  position: absolute;
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  animation: floatDiamond 9s ease-in-out infinite;
}
.iso-diamond .d-face {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  backface-visibility: visible;
}
.diamond-1 {
  top: 40%;
  right: 25%;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-delay: -3s;
}
.diamond-1 .d-top {
  background: rgba(67, 56, 202, 0.2);
  border: 1.2px solid rgba(99, 102, 241, 0.4);
  transform: translateZ(10px);
}
.diamond-1 .d-bottom {
  background: rgba(99, 102, 241, 0.1);
  border: 1.2px solid rgba(99, 102, 241, 0.2);
  transform: translateZ(-10px);
}
.diamond-2 {
  top: 65%;
  right: 30%;
  width: 40px;
  height: 40px;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation-duration: 7s;
  animation-delay: -5s;
}
.diamond-2 .d-top {
  background: rgba(6, 182, 212, 0.25);
  border: 1px solid rgba(6, 182, 212, 0.45);
  transform: translateZ(8px);
}
.diamond-2 .d-bottom {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  transform: translateZ(-8px);
}

/* --- Isometric Ring --- */
.iso-ring {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.15);
  transform: rotateX(60deg) rotateZ(-30deg);
  animation: floatRing 14s linear infinite;
}

/* --- Isometric Pyramid --- */
.iso-pyramid {
  position: absolute;
  bottom: 30%;
  left: 8%;
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation: floatCube 11s ease-in-out infinite;
  animation-delay: -7s;
}
.iso-pyramid .p-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
}
.iso-pyramid .p-bottom {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  transform: rotateX(-90deg) translateZ(-20px);
}
.iso-pyramid .p-front {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.32);
  transform: rotateX(30deg) translateZ(0px);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  height: 50px;
}
.iso-pyramid .p-right {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transform: rotateY(90deg) rotateX(30deg) translateZ(30px);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  height: 50px;
  width: 60px;
  left: 0;
}

/* --- Isometric Grid Background (Hero) --- */
.iso-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 80px 80px, 80px 80px;
  background-position: 0 0, 0 0, 10px 10px, 10px 10px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center top;
  opacity: 0.6;
}

/* --- Float Animations --- */
@keyframes floatCube {
  0%, 100% { transform: rotateX(55deg) rotateZ(-45deg) translateY(0px); }
  50% { transform: rotateX(55deg) rotateZ(-45deg) translateY(-25px); }
}
@keyframes floatDiamond {
  0%, 100% { transform: rotateX(55deg) rotateZ(-45deg) translateY(0px) scale(1); }
  30% { transform: rotateX(55deg) rotateZ(-45deg) translateY(-18px) scale(1.05); }
  60% { transform: rotateX(55deg) rotateZ(-45deg) translateY(-30px) scale(1); }
}
@keyframes floatRing {
  0% { transform: rotateX(60deg) rotateZ(-30deg) rotate(0deg); }
  100% { transform: rotateX(60deg) rotateZ(-30deg) rotate(360deg); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
  cursor: pointer;
}

/* ============================================================
   HERO ISO SHOWCASE (Right side large block)
   ============================================================ */
.hero-iso-showcase {
  position: relative;
  width: 320px;
  height: 320px;
  perspective: 600px;
}
.hero-iso-block {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-45deg);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-iso-block .hib-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border-radius: 12px;
}
.hero-iso-block .hib-front {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  transform: translateZ(70px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}
.hero-iso-block .hib-top {
  background: linear-gradient(135deg, var(--indigo-400), var(--purple-400));
  transform: rotateX(90deg) translateZ(70px);
}
.hero-iso-block .hib-right {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  transform: rotateY(90deg) translateZ(70px);
}

@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-45deg) translateY(0px); }
  50% { transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-45deg) translateY(-15px); }
}

/* Floating mini cards */
.hero-float-card {
  position: absolute;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
  transform: rotateX(55deg) rotateZ(-45deg);
  animation: miniFloat 5s ease-in-out infinite;
}
.hfc-1 { top: 10%; right: 5%; animation-delay: 0s; }
.hfc-2 { bottom: 15%; left: 5%; animation-delay: -1.5s; }
.hfc-3 { top: 50%; right: 0%; animation-delay: -3s; width: 40px; height: 40px; }

@keyframes miniFloat {
  0%, 100% { transform: rotateX(55deg) rotateZ(-45deg) translateY(0px); }
  50% { transform: rotateX(55deg) rotateZ(-45deg) translateY(-12px); }
}

/* ============================================================
   FEATURE CARDS - Isometric Icon Containers
   ============================================================ */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  border: 1px solid #f3f4f6;
  transition: all 0.35s ease;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Isometric Icon Container */
.feature-iso-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  perspective: 200px;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-iso-icon {
  transform: rotateX(55deg) rotateZ(-45deg) translateY(-4px) scale(1.05);
}
.feature-iso-icon .fii-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border-radius: 10px;
}
.feature-iso-icon .fii-front {
  transform: translateZ(32px);
}
.feature-iso-icon .fii-top {
  transform: rotateX(90deg) translateZ(32px);
}
.feature-iso-icon .fii-right {
  transform: rotateY(90deg) translateZ(32px);
}
.feature-iso-icon .fii-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(33px);
  color: white;
  font-size: 22px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ============================================================
   STATS SECTION - Isometric Grid Pattern
   ============================================================ */
.iso-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(103, 232, 249, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.05) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 60px 60px, 60px 60px;
  background-position: 0 0, 0 0, 5px 5px, 5px 5px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: center top;
}

/* Stat Isometric Icon */
.stat-iso-icon {
  position: relative;
  width: 80px;
  height: 80px;
  perspective: 150px;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-iso-icon .sii-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border-radius: 8px;
}
.stat-iso-icon .sii-front {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  transform: translateZ(40px);
}
.stat-iso-icon .sii-top {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  transform: rotateX(90deg) translateZ(40px);
}
.stat-iso-icon .sii-right {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  transform: rotateY(90deg) translateZ(40px);
}
.stat-iso-icon .sii-val {
  position: relative;
  z-index: 2;
  transform: translateZ(42px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   CLUB CARDS
   ============================================================ */
.club-card {
  transition: all 0.35s ease;
}
.club-card:hover {
  transform: translateY(-4px);
}
.club-card:hover .club-badge {
  transform: rotate(0deg) scale(1.1);
}
.club-badge {
  transition: all 0.35s ease;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  transition: all 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}
.faq-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
.faq-toggle:focus-visible {
  outline: 2px solid var(--indigo-400);
  outline-offset: -2px;
  border-radius: 12px;
}
.faq-toggle i {
  transition: transform 0.3s ease;
}
.faq-toggle.active i {
  transform: rotate(180deg);
}
.faq-answer {
  animation: slideDown 0.3s ease forwards;
  overflow: hidden;
}
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* ============================================================
   CTA SECTION - Isometric Shape Background
   ============================================================ */
.cta-iso-bg {
  perspective: 600px;
}
.cta-cube {
  position: absolute;
  width: 70px;
  height: 70px;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation: ctaFloat 8s ease-in-out infinite;
}
.cta-cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border-radius: 6px;
}
.cta-cube .face.front {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transform: translateZ(35px);
}
.cta-cube .face.top {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotateX(90deg) translateZ(35px);
}
.cta-cube .face.right {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotateY(90deg) translateZ(35px);
}
.cta-c-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.cta-c-2 {
  bottom: 15%;
  right: 8%;
  animation-delay: -4s;
  width: 50px;
  height: 50px;
}
.cta-c-2 .face.front { transform: translateZ(25px); }
.cta-c-2 .face.top { transform: rotateX(90deg) translateZ(25px); }
.cta-c-2 .face.right { transform: rotateY(90deg) translateZ(25px); }

.cta-diamond {
  position: absolute;
  top: 60%;
  left: 15%;
  width: 50px;
  height: 50px;
  transform: rotateX(55deg) rotateZ(-45deg);
  animation: ctaFloat 7s ease-in-out infinite;
  animation-delay: -2s;
  background: rgba(255,255,255,0.1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border: 1px solid rgba(255,255,255,0.18);
}

@keyframes ctaFloat {
  0%, 100% { transform: rotateX(55deg) rotateZ(-45deg) translateY(0px); }
  50% { transform: rotateX(55deg) rotateZ(-45deg) translateY(-15px); }
}

/* CTA Download Buttons */
.cta-download-btn {
  transition: all 0.3s ease;
}

/* ============================================================
   CUSTOMER SERVICE FLOATING
   ============================================================ */
#cs-toggle {
  transition: all 0.3s ease;
}
#cs-toggle.active {
  transform: rotate(360deg);
}
#cs-panel {
  animation: fadeInUp 0.3s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .iso-scene {
    display: none;
  }
  .cta-iso-bg {
    opacity: 0.5;
  }
}
@media (max-width: 768px) {
  .hero-iso-showcase {
    display: none;
  }
  .feature-iso-icon {
    width: 52px;
    height: 52px;
  }
  .feature-iso-icon .fii-front { transform: translateZ(26px); }
  .feature-iso-icon .fii-top { transform: rotateX(90deg) translateZ(26px); }
  .feature-iso-icon .fii-right { transform: rotateY(90deg) translateZ(26px); }
  .feature-iso-icon .fii-icon {
    transform: translate(-50%, -50%) translateZ(27px);
    font-size: 18px;
  }
  .stat-iso-icon {
    width: 64px;
    height: 64px;
  }
  .stat-iso-icon .sii-front { transform: translateZ(32px); }
  .stat-iso-icon .sii-top { transform: rotateX(90deg) translateZ(32px); }
  .stat-iso-icon .sii-right { transform: rotateY(90deg) translateZ(32px); }
  .stat-iso-icon .sii-val {
    transform: translateZ(34px);
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  .feature-card { padding: 20px 16px; }
  .stat-iso-icon {
    width: 50px;
    height: 50px;
  }
  .stat-iso-icon .sii-front { transform: translateZ(25px); }
  .stat-iso-icon .sii-top { transform: rotateX(90deg) translateZ(25px); }
  .stat-iso-icon .sii-right { transform: rotateY(90deg) translateZ(25px); }
  .stat-iso-icon .sii-val {
    transform: translateZ(27px);
    font-size: 1.25rem !important;
  }
}
