/* ============================================================
   HHPOKER - SaaS Style Custom CSS
   Primary: blue-600 (#2563EB)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-600: #2563EB;
  --primary-700: #1D4ED8;
  --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;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --rounded-sm: 0.375rem;
  --rounded: 0.5rem;
  --rounded-md: 0.75rem;
  --rounded-lg: 1rem;
  --rounded-xl: 1.25rem;
  --rounded-2xl: 1.5rem;
  --rounded-3xl: 2rem;
}

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

/* --- Gradient Backgrounds --- */
.gradient-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

/* --- Navbar Styles --- */
.navbar-transparent {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* --- Hero Styles --- */
.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 var(--primary-100);
}

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

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

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--rounded-lg);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--rounded-lg);
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--rounded-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* --- Feature Card Styles --- */
.feature-card {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: 2rem;
  transition: all 0.35s ease;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-xl);
  background: var(--primary-50);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 40%, #1E40AF 100%);
  border-radius: var(--rounded-3xl);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.stats-bar::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

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

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

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

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

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

.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;
  transition: color 0.3s ease;
}

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

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

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

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

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

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

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 30%, #1D4ED8 100%);
  border-radius: var(--rounded-3xl);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

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

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: var(--gray-400);
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

/* --- Page Header (Secondary Pages) --- */
.page-header {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header-badge {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  padding: 0.375rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --- About Page --- */
.value-card {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

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

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
}

/* --- Contact Page --- */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.contact-method:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
}

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

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

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }
.animate-delay-6 { animation-delay: 0.6s; opacity: 0; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Section Padding --- */
.section-padding {
  padding: 6rem 0;
}

/* --- Responsive Typography --- */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .cta-section {
    padding: 2.5rem 1.5rem;
  }
  .section-padding {
    padding: 3rem 0;
  }
}

/* --- Image Styles --- */
.hero-image {
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-rounded {
  border-radius: var(--rounded-2xl);
}

/* --- Loading / Skeleton (optional) --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* --- Select styles for mobile --- */
@media (max-width: 768px) {
  .stat-divider {
    display: none;
  }
}
