/* ============================================================
   HHPoker 0052 - Indigo Theme · style.css
   Sections: CSS Variables, Typography, Navbar, Hero, Buttons,
   Feature Cards (Indigo), Stats, Testimonials, FAQ Accordion,
   CTA, Footer, Keyframes, Responsive
   ============================================================ */

/* ---------- CSS VARIABLES (Indigo Palette) ---------- */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --secondary: #3b82f6;
  --accent: #06b6d4;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #c7d2fe;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(79, 70, 229, 0.06);
  --shadow-md: 0 6px 16px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 12px 48px rgba(79, 70, 229, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- BASE RESETS ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- GLASS NAVBAR (Indigo) ---------- */
#navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(165, 180, 252, 0.25);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 2px 24px rgba(79, 70, 229, 0.1);
}

.nav-link {
  position: relative;
  border-radius: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

/* ---------- HERO (Indigo) ---------- */
.hero-gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:active,
.btn-cta:active {
  transform: scale(0.96);
}

/* ---------- FEATURE CARDS (Indigo Variant) ---------- */
.card-indigo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.card-indigo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.card-indigo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-indigo:hover::before {
  opacity: 0.06;
}

.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-indigo:hover .feature-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

/* ---------- STATS BAR (Indigo) ---------- */
.stat-item-indigo {
  animation: fadeInUpIndigo 0.5s ease forwards;
  opacity: 0;
}

.stat-item-indigo:nth-child(1) { animation-delay: 0.1s; }
.stat-item-indigo:nth-child(2) { animation-delay: 0.2s; }
.stat-item-indigo:nth-child(3) { animation-delay: 0.3s; }
.stat-item-indigo:nth-child(4) { animation-delay: 0.4s; }

/* ---------- TESTIMONIAL CARDS (Indigo) ---------- */
.testimonial-card-indigo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.testimonial-card-indigo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* ---------- FAQ ACCORDION (Indigo) ---------- */
.faq-item-indigo {
  transition: all var(--transition);
}

.faq-item-indigo:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item-indigo .faq-btn i {
  transition: transform var(--transition);
}

.faq-item-indigo.active .faq-btn i {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-item-indigo.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: #eef2ff;
}

.faq-item-indigo .faq-answer {
  animation: slideDownIndigo 0.35s ease forwards;
}

/* ---------- CTA SECTION ---------- */
#cta {
  background-image: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                    radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

/* ---------- FOOTER ---------- */

/* ---------- ANIMATIONS / KEYFRAMES ---------- */
@keyframes fadeInUpIndigo {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownIndigo {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 600px;
    transform: translateY(0);
  }
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* ---------- MOBILE MENU ---------- */
#mobile-menu {
  animation: slideDownIndigo 0.3s ease forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .card-indigo {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  #hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .stat-number {
    font-size: 2rem !important;
  }
  .card-indigo {
    margin-bottom: 1rem;
  }
}

@media (max-width: 639px) {
  .btn-primary,
  .btn-secondary,
  .btn-cta,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}