:root {
  --bg: #0b0d14;
  --bg-alt: #11141e;
  --surface: #161a27;
  --border: #252a3b;
  --text: #e8eaf2;
  --muted: #9aa1b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --radius: 14px;
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); font-weight: inherit; }

.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 700px;
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, 0.2), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

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

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6a48ff; }
.btn-ghost { border-color: var(--border); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.15));
  color: var(--accent-2);
}

/* Game placeholders */
.game-card { padding: 0; overflow: hidden; }
.game-cover {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(34, 211, 238, 0.15)),
    repeating-linear-gradient(45deg, #1a1f2e 0 12px, #161a27 12px 24px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.game-card:nth-child(2) .game-cover {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(124, 92, 255, 0.15)),
    repeating-linear-gradient(-45deg, #1a1f2e 0 12px, #161a27 12px 24px);
}
.game-card:nth-child(3) .game-cover {
  background:
    linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(124, 92, 255, 0.2)),
    repeating-linear-gradient(90deg, #1a1f2e 0 12px, #161a27 12px 24px);
}
.game-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

/* Contact */
.contact {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 24px;
}
.contact h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.contact p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0 90px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; padding-top: 8px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #c9cde0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
}
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; }
.legal .note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); }
.legal td { color: #c9cde0; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 80px 0 70px; }
  .btn-ghost { margin: 12px 0 0; }
  section { padding: 64px 0; }
}
