:root {
  --bg: #0a0a13;
  --bg-2: #0e0e1a;
  --surface: #141421;
  --surface-2: #191927;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #9b9bb0;
  --gold: #f5c542;
  --gold-2: #e09f1c;
  --gold-grad: linear-gradient(135deg, #f7d774 0%, #f0b429 45%, #dc8f13 100%);
  --teal: #17c3b2;
  --danger: #e05252;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(245, 197, 66, 0.10), transparent 60%),
    radial-gradient(700px 420px at 100% 30%, rgba(23, 195, 178, 0.07), transparent 60%),
    radial-gradient(800px 500px at 0% 75%, rgba(224, 159, 28, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold-grad);
  color: #241703;
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.16) 0%, rgba(245, 197, 66, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-text .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-image {
  margin: 42px 0 36px;
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(245, 197, 66, 0.18);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.7);
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 38px;
}

/* ---------- Game grid ---------- */

.games {
  background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.game-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.25);
  color: var(--gold);
}

.game-icon svg {
  width: 40px;
  height: 40px;
}

.game-name {
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 6px;
}

.feature-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 66, 0.4);
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(245, 197, 66, 0.18), rgba(245, 197, 66, 0.06));
  border: 1px solid rgba(245, 197, 66, 0.3);
  color: var(--gold);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */

.footer {
  background: #07070f;
  border-top: 1px solid var(--border);
  padding: 46px 0 36px;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  opacity: 0.95;
}

.footer-note {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-legal {
  max-width: 680px;
  color: rgba(155, 155, 176, 0.75);
  font-size: 12.5px;
}

.footer-copy {
  color: rgba(155, 155, 176, 0.6);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

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

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

@media (max-width: 600px) {
  .header-inner {
    height: 64px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 13px 30px;
    font-size: 15px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-image img {
    max-width: 100%;
  }

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

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  section {
    padding: 48px 0;
  }
}
