/* ============================================================
   HHPoker Landing Page Set 0035 - Custom Styles
   Theme: Terra Cotta / Burnt Orange - Warm & Earthy
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --tc-950: #431407;
  --tc-900: #7c2d12;
  --tc-800: #9a3412;
  --tc-700: #c2410c;
  --tc-600: #ea580c;
  --tc-500: #f97316;
  --tc-400: #fb923c;
  --tc-300: #fdba74;
  --tc-200: #fed7aa;
  --tc-100: #ffedd5;
  --tc-50: #fff7ed;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
}

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

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--gray-900);
}

/* --- Navbar --- */
.navbar {
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--tc-200);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(154, 52, 18, 0.15);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tc-600);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--tc-600);
}

.nav-btn-download {
  background: linear-gradient(135deg, var(--tc-600), var(--tc-500));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.nav-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

/* Mobile menu */
.mobile-menu {
  transition: max-height 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 500px;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(160deg, #431407 0%, #9a3412 40%, #c2410c 100%);
  position: relative;
  overflow: hidden;
}

/* Geometric triangle decorations */
.triangle-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

.triangle-1 {
  top: -80px;
  right: -40px;
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 350px solid var(--tc-300);
  transform: rotate(15deg);
  animation: floatTriangle 8s ease-in-out infinite;
}

.triangle-2 {
  bottom: -60px;
  left: 10%;
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 200px solid var(--tc-200);
  transform: rotate(-20deg);
  animation: floatTriangle 10s ease-in-out infinite reverse;
}

.triangle-3 {
  top: 30%;
  right: 15%;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--tc-400);
  transform: rotate(45deg);
  animation: floatTriangle 7s ease-in-out infinite;
}

.triangle-4 {
  bottom: 20%;
  left: 5%;
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--tc-500);
  transform: rotate(-35deg);
  animation: floatTriangle 9s ease-in-out infinite reverse;
}

/* Triangle-shaped clip decorations in CSS */
.geo-clip {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--tc-300);
}

.geo-clip-1 {
  width: 180px;
  height: 200px;
  top: -40px;
  left: -30px;
  transform: rotate(25deg);
}

.geo-clip-2 {
  width: 140px;
  height: 160px;
  bottom: -30px;
  right: -20px;
  transform: rotate(-30deg);
}

@keyframes floatTriangle {
  0%, 100% { transform: translateY(0) rotate(var(--r, 15deg)); }
  50% { transform: translateY(-25px) rotate(var(--r, 15deg)); }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tc-400), var(--tc-600));
  z-index: -1;
  opacity: 0.5;
}

.hero-image-wrapper img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(67, 20, 7, 0.4);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--tc-100);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--tc-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* --- Feature Cards --- */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(154, 52, 18, 0.12);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  background: var(--tc-50);
  color: var(--tc-600);
  transition: all 0.3s;
}

.feature-card:hover .feature-card-icon {
  background: var(--tc-600);
  color: white;
  transform: rotateY(180deg);
}

/* Chunky bottom colored border */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tc-700), var(--tc-500), var(--tc-400));
  border-radius: 0 0 12px 12px;
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--tc-950), var(--tc-800));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--tc-500);
  line-height: 1;
}

.stat-label {
  color: var(--tc-200);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}

.stat-icon {
  color: var(--tc-400);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  border: 1px solid var(--tc-100);
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--tc-300);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.1);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 4rem;
  color: var(--tc-200);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--tc-300);
}

.testimonial-stars {
  color: var(--tc-500);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--tc-100);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: white;
  transition: all 0.25s;
}

.faq-item:hover {
  border-color: var(--tc-300);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gray-900);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--tc-600);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--tc-500);
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--tc-600);
}

.faq-item.active {
  border-color: var(--tc-400);
  box-shadow: 0 4px 16px rgba(154, 52, 18, 0.08);
}

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

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

.faq-answer-inner {
  padding: 0 1.25rem 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  border-top: 1px solid var(--tc-100);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--tc-700) 0%, var(--tc-800) 50%, var(--tc-950) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,146,60,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.split-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.35rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.split-btn a {
  padding: 0.7rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.split-btn-primary {
  background: white;
  color: var(--tc-800);
}

.split-btn-primary:hover {
  background: var(--tc-50);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.split-btn-secondary {
  color: white;
}

.split-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

/* --- Footer --- */
.footer-section {
  background: var(--gray-900);
  color: var(--gray-300);
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tc-800), var(--tc-500), var(--tc-400), var(--tc-500), var(--tc-800));
}

.footer-link {
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--tc-400);
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  transition: all 0.3s;
  font-size: 1.1rem;
}

.footer-social-icon:hover {
  background: var(--tc-600);
  color: white;
  transform: translateY(-3px);
}

/* --- Club Page: Circle Badge Rankings --- */
.ranking-badge-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  position: relative;
  background: linear-gradient(135deg, var(--tc-600), var(--tc-500));
  color: white;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.4);
}

.ranking-badge-circle.top-1 {
  background: linear-gradient(135deg, #b45309, var(--tc-400));
  width: 110px;
  height: 110px;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.5);
}

.ranking-badge-circle.top-2 {
  background: linear-gradient(135deg, var(--tc-600), var(--tc-500));
}

.ranking-badge-circle.top-3 {
  background: linear-gradient(135deg, var(--tc-500), var(--tc-400));
}

.ranking-badge-circle .rank-num {
  font-size: 1.5rem;
  line-height: 1;
}

.ranking-badge-circle.top-1 .rank-num {
  font-size: 1.85rem;
}

.ranking-badge-circle .rank-label {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 2px;
}

.club-card {
  border: 1px solid var(--tc-100);
  border-radius: 14px;
  transition: all 0.3s;
  background: white;
  position: relative;
}

.club-card:hover {
  border-color: var(--tc-400);
  box-shadow: 0 16px 36px rgba(154, 52, 18, 0.1);
  transform: translateY(-4px);
}

.club-card.featured {
  border-color: var(--tc-400);
  background: linear-gradient(180deg, var(--tc-50) 0%, white 30%);
}

.club-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--tc-600), var(--tc-500));
  color: white;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Download Page: Device Mockup Cards --- */
.device-mockup-card {
  background: white;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  border: 1px solid var(--tc-100);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.device-mockup-card:hover {
  border-color: var(--tc-400);
  box-shadow: 0 20px 48px rgba(154, 52, 18, 0.12);
  transform: translateY(-6px);
}

.device-mockup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tc-700), var(--tc-500), var(--tc-400));
}

.device-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--tc-50);
  color: var(--tc-600);
  margin-bottom: 1rem;
}

.device-mockup-card:hover .device-icon {
  background: var(--tc-600);
  color: white;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  background: linear-gradient(160deg, var(--tc-950) 0%, var(--tc-800) 50%, var(--tc-700) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 60%, rgba(249,115,22,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(251,146,60,0.06) 0%, transparent 50%);
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .ranking-badge-circle {
    width: 70px;
    height: 70px;
  }

  .ranking-badge-circle.top-1 {
    width: 85px;
    height: 85px;
  }

  .ranking-badge-circle .rank-num {
    font-size: 1.2rem;
  }
}

/* --- Section titles --- */
.section-badge {
  display: inline-block;
  background: var(--tc-50);
  color: var(--tc-600);
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 0.75rem;
}

.section-subtitle {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0.6rem auto 0;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tc-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--tc-700);
  transform: translateY(-3px);
}
