/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050507;
  --bg-secondary: #0a0a0d;
  --bg-card: #0d0d12;
  --bg-card-hover: #121218;
  --purple-primary: #9333ea;
  --purple-light: #a855f7;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(147, 51, 234, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #8a8a95;
  --text-muted: #55555f;
  --border-color: #1a1a22;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-light);
}

.nav-btn {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--purple-primary);
  background: rgba(147, 51, 234, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-custom-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid var(--purple-primary);
  color: var(--purple-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 100%);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-badge-green:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.35) 100%);
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  background: var(--purple-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 0 30px var(--purple-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--purple-primary);
  background: rgba(147, 51, 234, 0.1);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid var(--purple-primary);
  color: var(--purple-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Products Section */
.products-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid .product-card {
    max-width: 350px;
    margin: 0 auto;
  }
}

.product-card {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.9) 0%, rgba(13, 13, 18, 0.95) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(147, 51, 234, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Only apply max-width on products page, not featured */
.products-page .product-card {
  max-width: 350px;
  justify-self: center;
}

.product-card:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 8px 50px rgba(147, 51, 234, 0.3), 0 0 80px rgba(147, 51, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image img {
  transition: transform 0.4s ease;
}

.product-image {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, rgba(15, 15, 25, 1) 0%, rgba(20, 20, 35, 1) 50%, rgba(30, 20, 50, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(147, 51, 234, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-info {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.product-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(147, 51, 234, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.status-badge.status-undetected {
  background: rgba(147, 51, 234, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.status-badge.status-updating {
  background: rgba(234, 179, 8, 0.1);
  color: var(--warning);
  border-color: rgba(234, 179, 8, 0.3);
}

.status-badge.status-detected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.product-footer {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-buy {
  background: var(--purple-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-buy:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--purple-glow);
}

/* View All Products Button */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--purple-primary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
}

.view-all-btn:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  box-shadow: 0 4px 20px var(--purple-glow);
  transform: translateY(-2px);
}

/* Games Section */
.games-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.game-card:hover {
  border-color: var(--purple-primary);
  box-shadow: 0 0 40px var(--purple-glow);
  transform: scale(1.05);
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card img {
  transition: transform 0.5s ease;
}

.game-card:hover .game-overlay {
  background: linear-gradient(transparent, rgba(147, 51, 234, 0.8));
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transition: background 0.3s ease;
}

.game-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Why Choose Us Section */
.why-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.features-grid-bottom {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .features-grid,
  .features-grid-bottom {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--purple-primary);
}

.feature-card-wide {
  position: relative;
}

.feature-icon {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.loading-ring {
  width: 80px;
  height: 80px;
  border: 4px solid var(--purple-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkmark {
  width: 60px;
  height: 60px;
  background: var(--purple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.config-preview {
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  align-items: stretch;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.9rem;
}

.toggle {
  width: 40px;
  height: 22px;
  background: var(--border-color);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
}

.toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.toggle.on {
  background: var(--purple-primary);
}

.toggle.on::after {
  left: 20px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.payment-icon {
  width: 60px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
}

.payment-icon.pp {
  width: auto;
  padding: 0 15px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #003087;
  background: white;
}

.setup-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.setup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 0.85rem;
}

.setup-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 0.85rem;
}

.setup-slider input[type="range"] {
  width: 100px;
  accent-color: var(--purple-primary);
}

.easy-label {
  position: absolute;
  top: 30px;
  right: 30px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand .logo-icon {
  font-size: 2rem;
}

.footer-brand span:nth-child(2) {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Page Hero */
.page-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 40px;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Filter Section */
.filter-section {
  padding: 20px 0 40px;
  background: var(--bg-primary);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover {
  border-color: var(--purple-primary);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: white;
}

/* Products Page */
.products-page {
  padding-top: 0;
}

/* Scroll Mouse Indicator */
.scroll-mouse {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s ease 0.5s both;
}

.mouse-body {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards */
.product-card.fade-in:nth-child(1) { transition-delay: 0.1s; }
.product-card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.product-card.fade-in:nth-child(3) { transition-delay: 0.3s; }
.game-card.fade-in:nth-child(1) { transition-delay: 0.1s; }
.game-card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.game-card.fade-in:nth-child(3) { transition-delay: 0.3s; }
.game-card.fade-in:nth-child(4) { transition-delay: 0.4s; }
.feature-card.fade-in:nth-child(1) { transition-delay: 0.1s; }
.feature-card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.feature-card.fade-in:nth-child(3) { transition-delay: 0.3s; }
.feature-card.fade-in:nth-child(4) { transition-delay: 0.4s; }
.feature-card.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* New Footer Styles */
.footer-new {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-col {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo .highlight {
  color: var(--purple-light);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.footer-badge.purple {
  background: rgba(147, 51, 234, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.footer-badge.yellow {
  background: rgba(234, 179, 8, 0.15);
  color: var(--warning);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--purple-light);
}

.footer-bottom-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.footer-bottom-new p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-online {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .nav-links {
    display: none;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .footer-bottom-new {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
