/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #6c63ff;
  --color-primary-dark: #5a52d5;
  --color-bg: #0f0f1a;
  --color-surface: #1a1a2e;
  --color-surface-alt: #16213e;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0b0;
  --color-accent: #ff6584;
  --color-success: #4ecdc4;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Games Grid ===== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.games-section {
  padding: 80px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.game-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
}

.game-card-img {
  width: 100%;
  height: 200px;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card-body {
  padding: 24px;
}

.game-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.game-card-body p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.game-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(108, 99, 255, 0.15);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== About Section ===== */
.about-section {
  padding: 80px 0;
  text-align: center;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(108, 99, 255, 0.1);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

/* ===== Contact ===== */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-section p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.contact-email {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
