/* ============================================================
   HHPoker 0047 - Violet Theme · style.css
   Sections: CSS Variables, Typography, Navbar, Hero, Buttons,
   Feature Cards, Stats, Testimonials, FAQ Accordion, CTA,
   Footer, Animations, Responsive
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #a855f7;
  --accent: #c084fc;
  --surface: #ffffff;
  --surface-alt: #faf5ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e9d5ff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 10px 40px rgba(124, 58, 237, 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.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- GLASS NAVBAR ---------- */
#navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(196, 181, 253, 0.25);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 20px rgba(124, 58, 237, 0.1);
}

.nav-link {
  position: relative;
}

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

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

/* ---------- HERO ---------- */
.hero-gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 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.97);
}

/* ---------- FEATURE CARDS ---------- */
.feature-card {
  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;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* ---------- STATS BAR ---------- */
.stat-item {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* ---------- TESTIMONIAL CARDS ---------- */
.testimonial-card {
  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:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

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

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

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

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

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

.faq-answer {
  animation: slideDown 0.3s ease forwards;
}

/* ---------- CTA SECTION ---------- */
#cta {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .feature-card {
    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;
  }
  .feature-card {
    margin-bottom: 1rem;
  }
}

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

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

/* ---------- SCROLLBAR (Webkit) ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}