/* ============================================
   0063 - HHPoker/德扑圈  Landing Page Styles
   Design: Full-width overlay hero, transparent-to-solid navbar,
   teal accents, glass stats, horizontal scroll features,
   split two-tone CTA
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* --- Navbar Transparent-to-Solid Transition --- */
#mainNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  z-index: 1000;
}

#mainNav.nav-scrolled {
  background-color: rgba(30, 27, 75, 0.97) !important; /* indigo-950/97% */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#mainNav.nav-scrolled .nav-link {
  color: #e2e8f0;
}

#mainNav.nav-scrolled .nav-link:hover {
  color: #2dd4bf; /* teal-400 */
}

/* --- Mobile Nav Menu --- */
#mobileMenu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* --- Hero Full-Width Overlay --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.85) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(30, 27, 75, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* --- Hero CTA Buttons --- */
.btn-primary-hero {
  background: linear-gradient(135deg, #6366f1, #4f46e5); /* indigo-500 */
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.btn-outline-hero {
  background: transparent;
  color: #2dd4bf; /* teal-400 */
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid #2dd4bf;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-hero:hover {
  background: #2dd4bf;
  color: #1e1b4b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

/* --- Glass-morphism Cards (Stats) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

/* --- Horizontal Scroll Feature Cards (Mobile) --- */
.h-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 1rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.h-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.h-scroll-container::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 3px;
}

.h-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6366f1, #2dd4bf);
  border-radius: 3px;
}

.feature-card-snap {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 4px solid #2dd4bf; /* teal-400 left accent */
}

.feature-card-snap:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-left-color: #6366f1;
}

.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* --- Stats Counter --- */
.counter-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --- Testimonial Carousel --- */
.testimonial-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 0.5rem 1rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial-scroll::-webkit-scrollbar {
  height: 6px;
}

.testimonial-scroll::-webkit-scrollbar-track {
  background: rgba(45, 212, 191, 0.1);
  border-radius: 3px;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2dd4bf, #6366f1);
  border-radius: 3px;
}

.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2dd4bf;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item.active {
  border-left-color: #2dd4bf;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.3s ease;
  user-select: none;
}

.faq-item.active .faq-question {
  color: #0f766e; /* teal-700 */
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #6366f1;
}

.faq-item.active .faq-toggle {
  background: #2dd4bf;
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: #475569;
  line-height: 1.7;
}

/* --- Split Two-Tone CTA --- */
.split-cta {
  display: flex;
  flex-wrap: wrap;
}

.split-cta-left,
.split-cta-right {
  flex: 1 1 50%;
  min-width: 300px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  transition: all 0.3s ease;
}

.split-cta-left {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.split-cta-right {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

.split-cta-left:hover,
.split-cta-right:hover {
  filter: brightness(1.08);
}

.split-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.btn-split {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fff;
  color: #fff;
}

.btn-split:hover {
  background: #fff;
}

.split-cta-left .btn-split:hover {
  color: #4f46e5;
}

.split-cta-right .btn-split:hover {
  color: #0d9488;
}

/* --- Page Banners (about, contact, download) --- */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.85),
    rgba(49, 46, 129, 0.75)
  );
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.page-banner-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* --- About Page Values Grid --- */
.value-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.value-card:hover {
  border-top-color: #2dd4bf;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

/* --- Team Avatar Placeholders --- */
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #2dd4bf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
}

/* --- Contact Info Cards --- */
.contact-info-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.contact-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

/* --- WeChat Highlight Card --- */
.wechat-highlight {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 2px solid #2dd4bf;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}

.wechat-highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2dd4bf, #6366f1);
  z-index: -1;
  opacity: 0.3;
}

/* --- Download Page --- */
.download-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.version-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

/* --- Step Circles (Install Guide) --- */
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.35);
}

/* --- Compatibility Table --- */
.compat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.compat-table thead {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.compat-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
}

.compat-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.compat-table tbody tr:hover td {
  background: #f8fafc;
}

.compat-table .check-icon {
  color: #10b981;
  font-weight: 700;
}

/* --- QR Placeholder --- */
.qr-placeholder {
  width: 180px;
  height: 180px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-teal {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(45, 212, 191, 0);
  }
}

.pulse-teal {
  animation: pulse-teal 2s infinite;
}

/* --- Section Headings --- */
.section-label {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  background: rgba(45, 212, 191, 0.1);
  color: #0d9488;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #2dd4bf, #6366f1);
  border-radius: 2px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: #2dd4bf;
  transform: translateX(4px);
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
  .split-cta-left,
  .split-cta-right {
    flex: 1 1 100%;
    padding: 2.5rem 1.5rem;
  }

  .page-banner {
    min-height: 240px;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }
}

/* --- Tailwind custom config overrides via CDN --- */
/* These add to the CDN tailwind */
.bg-indigo-950 {
  background-color: #1e1b4b;
}

.text-teal-400 {
  color: #2dd4bf;
}

.border-teal-400 {
  border-color: #2dd4bf;
}

.bg-teal-400 {
  background-color: #2dd4bf;
}
