/* ============================================
   HHPOKER - ACE Club Landing Page
   Custom Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-50: #EFF6FF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
}

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

/* --- Body --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar --- */
.navbar {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(229,231,235,0.6);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-2xl);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--gray-700);
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid var(--gray-200);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.5rem;
  font-size: 1.05rem;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-white:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  background: #f8fafc;
}

/* --- Hero Section --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(37,99,235,0.15);
  animation: fadeInUp 0.6s ease both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-4px);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
}

.hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --- Feature Cards --- */
.feature-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.feature-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-50), #DBEAFE);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.35s ease;
}

.feature-card:hover .feature-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: scale(1.05);
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 40%, #1D4ED8 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(96,165,250,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-plus {
  color: #60A5FA;
  font-weight: 700;
}

/* --- Testimonials --- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.stars {
  color: #F59E0B;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-50);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

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

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  color: var(--gray-500);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.975rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 40%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(96,165,250,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-badge i {
  color: #34D399;
  font-size: 0.75rem;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer a {
  color: var(--gray-400);
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

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

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

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* --- Reveal on Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Headers --- */
.section-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }

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

  .hero-image-wrapper {
    border-radius: var(--radius-xl);
  }

  .hero-image-wrapper img {
    border-radius: var(--radius-xl);
  }

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

  .btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.65rem;
  }

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

  .testimonial-card {
    padding: 1.5rem;
  }
}
