@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0918;
  --bg-alt: #120f26;
  --bg-alt2: #171331;
  --purple: #9b4dff;
  --purple-deep: #6b21d8;
  --cyan: #22e6e6;
  --yellow: #ffd400;
  --text: #f3f1ff;
  --text-muted: #a9a3c9;
  --border: rgba(155, 77, 255, 0.25);
  --gradient: linear-gradient(135deg, var(--purple), var(--cyan));
  --font-heading: 'Rajdhani', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html.hide #preloader {
  opacity: 0;
  visibility: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader img {
  width: 64px;
  height: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0918;
  box-shadow: 0 10px 30px rgba(155, 77, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(34, 230, 230, 0.4);
}

.btn-header {
  background: var(--cyan);
  color: #0a0918;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
}

.btn-header:hover {
  box-shadow: 0 0 20px rgba(34, 230, 230, 0.5);
}

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

.hero-cta {
  animation: floatCta 3s ease-in-out infinite;
}

.hero-cta:hover {
  animation-play-state: paused;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 9, 24, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.site-header.scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger-btn {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn.act span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
  opacity: 0;
  pointer-events: none;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 78%;
  max-width: 320px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 40px;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

#mobile-menu .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

#mobile-menu .btn-header {
  margin-top: 10px;
}

body.fixed {
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(155, 77, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 20%, rgba(34, 230, 230, 0.25), transparent 60%),
    var(--bg);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(155, 77, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -60px;
  left: -80px;
}

.hero::after {
  bottom: -80px;
  right: -60px;
  border-color: rgba(34, 230, 230, 0.18);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 52px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(107, 33, 216, 0.45);
  transform: rotate(-2deg);
}

/* Games / carousel */
.games {
  background: var(--bg-alt);
}

.games-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 4px 24px;
}

.game-card {
  background: var(--bg-alt2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.game-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.game-card:hover .game-icon,
.game-card.in-view .game-icon {
  transform: scale(1.1) rotate(-4deg);
}

.game-icon svg {
  width: 28px;
  height: 28px;
  stroke: #0a0918;
}

.game-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.game-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Why Gaming Hub */
.why {
  background: var(--bg);
}

/* Gallery */
.gallery {
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.benefit-card {
  background: var(--bg-alt2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(155, 77, 255, 0.15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan);
}

.benefit-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-closing {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--cyan);
}

/* Players */
.players {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-alt2) 100%);
}

.players-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.players-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(155, 77, 255, 0.4);
}

.players-title-row .section-title {
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 64px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(155, 77, 255, 0.06);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-value .suffix {
  color: var(--cyan);
}

.stat-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 10px;
}

.stat-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--yellow);
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.quote-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}

.quote-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

.quote-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan);
}

/* Privacy & Contact */
.privacy-contact {
  background: var(--bg);
  text-align: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
}

.privacy-contact p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.privacy-contact .btn-primary {
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid transparent;
  position: relative;
  padding: 44px 0 28px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

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

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

/* Legal pages */
.legal-page {
  padding: 160px 0 100px;
  background: var(--bg);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content h1 {
  font-size: 38px;
  color: var(--text);
  margin-bottom: 24px;
}

.legal-content h2,
.legal-content h3 {
  color: var(--text);
  margin: 32px 0 14px;
  font-size: 22px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
}

.legal-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.legal-content table td,
.legal-content table th {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 460px;
    margin: 0 auto;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .header-actions .btn-header {
    display: none;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero-title {
    font-size: 34px;
  }

  section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle,
  .hero-body {
    font-size: 15px;
  }

  .games-carousel {
    grid-template-columns: 1fr;
  }

  .btn-primary {
    width: 100%;
  }
}
