/* ============================================================
   HHPOKER - Gradient Maximalist Design
   Color Palette: Blue-Violet -> Pink -> Orange flowing gradients
   Style: Stripe-inspired modern SaaS with animated backgrounds
   ============================================================ */

/* === CSS Variables === */
:root {
  --max-bg: #0f0f1a;
  --max-surface: rgba(255, 255, 255, 0.04);
  --max-card-bg: rgba(255, 255, 255, 0.06);
  --max-card-border: rgba(255, 255, 255, 0.1);
  --max-text: #f1f5f9;
  --max-text-secondary: #94a3b8;
  --max-text-muted: #64748b;
  --grad-1: #6366f1;
  --grad-2: #a855f7;
  --grad-3: #ec4899;
  --grad-4: #f97316;
  --max-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --max-radius: 18px;
  --font-heading: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--max-bg);
  color: var(--max-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Animated Gradient Background === */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  animation: gradientShift 18s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 50% 25%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 75%;
  }
}

/* === Navbar === */
.max-nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 1240px;
  background: rgba(15, 15, 26, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.75rem 2rem;
  transition: all 0.4s ease;
}

.max-nav.scrolled {
  background: rgba(15, 15, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.max-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.max-logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5b4fc;
}

.gradient-text-logo {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.max-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.max-nav-links a {
  color: var(--max-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.max-nav-links a:hover {
  color: #c084fc;
}

.max-nav-cta {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem;
  transition: all 0.3s !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.max-nav-cta:hover {
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.max-mobile-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--max-text);
  font-size: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
}

/* === Hero === */
.max-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.max-hero-card {
  max-width: 780px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.max-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.3), rgba(249, 115, 22, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.max-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.max-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.max-hero-subtitle {
  font-size: 1.05rem;
  color: var(--max-text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
}

.max-hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.max-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.max-btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 4px 25px rgba(99, 102, 241, 0.4);
  background-size: 200% 200%;
  animation: btnGradient 4s ease infinite;
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.max-btn-primary:hover {
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
}

.max-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--max-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.max-btn-outline:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.max-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--max-text);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.max-btn-secondary:hover {
  border-color: rgba(236, 72, 153, 0.6);
  background: rgba(236, 72, 153, 0.1);
  transform: translateY(-2px);
}

/* === Section Common === */
.max-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.max-container {
  max-width: 1280px;
  margin: 0 auto;
}

.max-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.max-section-label {
  display: inline-block;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.max-section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.max-section-desc {
  color: var(--max-text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
}

/* === Features Grid === */
.max-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.max-feature-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--max-radius);
  padding: 2.2rem 1.8rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.max-feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--max-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.max-feature-card:hover::before {
  opacity: 1;
}

.max-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.max-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a78bfa;
  margin-bottom: 1.3rem;
}

.max-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #e2e8f0;
}

.max-feature-card p {
  color: var(--max-text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === Games Grid === */
.max-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.max-game-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--max-radius);
  padding: 2rem 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.max-game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.max-game-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.max-game-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #e2e8f0;
}

.max-game-card p {
  color: var(--max-text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.max-game-tag {
  font-size: 0.8rem;
  color: #a78bfa;
  font-weight: 600;
}

/* === Stats === */
.max-stats {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.max-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.max-stat-item {
  padding: 2rem 1rem;
  position: relative;
}

.max-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline;
}

.max-stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.max-stat-label {
  color: var(--max-text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* === Testimonials === */
.max-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.max-testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--max-radius);
  padding: 2rem;
  transition: all 0.4s ease;
}

.max-testimonial-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.max-testimonial-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.max-testimonial-text {
  color: var(--max-text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.max-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.max-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.max-testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.max-testimonial-role {
  color: var(--max-text-muted);
  font-size: 0.78rem;
}

/* === FAQ === */
.max-faq-container {
  max-width: 800px;
}

.max-faq-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.max-faq-item:hover {
  border-color: rgba(168, 85, 247, 0.2);
}

.max-faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  color: #e2e8f0;
  user-select: none;
  transition: color 0.3s;
}

.max-faq-question:hover {
  color: #c084fc;
}

.max-faq-question i {
  color: #a78bfa;
  transition: transform 0.35s ease;
  font-size: 0.8rem;
}

.max-faq-item.active .max-faq-question i {
  transform: rotate(180deg);
}

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

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

.max-faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--max-text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === CTA === */
.max-cta {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.max-cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.max-cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.3), rgba(249, 115, 22, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.max-cta-card:hover::before {
  opacity: 1;
}

.max-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.max-cta p {
  color: var(--max-text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.max-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Footer === */
.max-footer {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
  color: var(--max-text-secondary);
  font-size: 0.88rem;
}

.max-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.max-footer-col h4 {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.max-footer-col p {
  color: var(--max-text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.max-footer-col ul {
  list-style: none;
}

.max-footer-col ul li {
  margin-bottom: 0.6rem;
}

.max-footer-col ul li a {
  color: var(--max-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.max-footer-col ul li a:hover {
  color: #c084fc;
}

.max-footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.max-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.max-footer-social a:hover {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.max-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--max-text-muted);
  font-size: 0.82rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .max-nav {
    width: calc(100% - 1rem);
    padding: 0.7rem 1.2rem;
    top: 0.5rem;
    border-radius: 14px;
  }

  .max-nav-links {
    position: fixed;
    top: 0.75rem;
    right: -100%;
    width: 82%;
    max-width: 300px;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    flex-direction: column;
    padding: 2rem;
    gap: 1.3rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease;
  }

  .max-nav-links.open {
    right: 0.5rem;
  }

  .max-mobile-btn {
    display: block;
    z-index: 1001;
  }

  .max-hero {
    padding: 6rem 1.2rem 3rem;
    min-height: auto;
  }

  .max-hero-card {
    padding: 2.5rem 1.5rem;
    border-radius: 22px;
  }

  .max-hero h1 {
    font-size: 2rem;
  }

  .max-section {
    padding: 4rem 1.2rem;
  }

  .max-features-grid,
  .max-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .max-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .max-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .max-cta-card {
    padding: 2.5rem 1.5rem;
  }

  .max-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
