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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --border: rgba(255,255,255,0.06);
}

html {
  scroll-behavior: smooth;
}

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(10,10,15,0.3) 0%, 
    rgba(10,10,15,0.7) 60%, 
    var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  margin-bottom: 32px;
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* === SECTIONS === */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-secondary);
  max-width: 100%;
  padding: 100px 40px;
}

.section-dark .section-title {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* === GAME GRID === */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.game-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon {
  font-size: 3rem;
}

.game-name {
  padding: 16px 20px 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.game-desc {
  padding: 0 20px 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
}

.tag-popular {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
}

.tag-new {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent2);
}

.players {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* === STATS === */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg-primary);
  padding: 48px 20px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === COMMUNITY === */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.community-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.community-card:hover {
  transform: translateY(-4px);
}

.comm-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.community-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.community-card p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }
  .nav-links a {
    margin-left: 16px;
    font-size: 0.8rem;
  }
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 60px 20px;
  }
}
