/* ===== Tokens (Sleek Dark) ===== */
:root {
  --bg: #0b0b0d;
  --bg-soft: #111114;
  --bg-elev: #16161b;
  --bg-hi: #1d1d24;
  --text: #f4f4f6;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #6366f1;
  --accent-hi: #818cf8;
  --accent-deep: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 16px 50px rgba(99, 102, 241, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 44px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* Subtle dotted field across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 11, 13, 0.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-weight: 800;
  font-size: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.brand-mark-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
.brand-name { font-size: 16px; }
.brand-name-accent { color: var(--text-muted); font-weight: 500; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.primary-nav a:hover { color: var(--text); background: var(--bg-elev); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  position: relative;
  transition: background 0.15s var(--ease);
}
.nav-toggle:hover { background: var(--bg-elev); }
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(72px, 12vh, 140px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle at 30% 30%, #6366f1, transparent 70%);
  top: -200px; right: -140px;
  opacity: 0.55;
  animation: drift1 18s ease-in-out infinite;
}
.blob-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 60% 40%, #818cf8, transparent 70%);
  bottom: -220px; left: -160px;
  opacity: 0.32;
  animation: drift2 22s ease-in-out infinite;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, #4f46e5, transparent 70%);
  top: 28%; left: 42%;
  opacity: 0.22;
  animation: drift3 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.06); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(0.94); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

.hero-inner { max-width: 840px; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 18px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55), 0 0 12px var(--accent-glow); }
  70% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
  font-size: clamp(40px, 7.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 22px;
  color: #fff;
}
.accent {
  background: linear-gradient(120deg, var(--accent-hi) 0%, #c7d2fe 60%, var(--accent-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(129, 140, 248, 0.55);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Sections ===== */
.section { padding-block: clamp(76px, 11vh, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--border); }

.section-head { margin-bottom: 44px; max-width: 760px; }
.section-title {
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
  margin-top: 8px;
  color: #fff;
}
.section-lede {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.about-body p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 65ch;
}
.about-body p + p { margin-top: 14px; }
.about-list {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.about-list li:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: var(--bg-hi);
  transform: translateX(4px);
}
.about-list strong { color: #fff; font-weight: 700; }
.about-list span { color: var(--text-muted); }

/* Genres */
.games { background: var(--bg-soft); }
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.genre-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.genre-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.genre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 60px rgba(99, 102, 241, 0.18);
  background: var(--bg-hi);
}
.genre-card:hover::before { opacity: 1; }
.genre-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  margin-bottom: 18px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}
.genre-icon svg { width: 22px; height: 22px; }
.genre-card:hover .genre-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 0 24px var(--accent-glow);
}
.genre-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: #fff;
}
.genre-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Contact */
.contact-inner { display: grid; gap: 28px; }
.contact-card {
  position: relative;
  padding: clamp(36px, 5.5vw, 56px);
  background: linear-gradient(180deg, var(--bg-hi) 0%, var(--bg-elev) 100%);
  color: var(--text);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.contact-card::before {
  width: 360px; height: 360px;
  background: rgba(99, 102, 241, 0.45);
  top: -160px; right: -100px;
}
.contact-card::after {
  width: 300px; height: 300px;
  background: rgba(129, 140, 248, 0.28);
  bottom: -140px; left: -80px;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-email {
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(129, 140, 248, 0.4);
  word-break: break-all;
  color: #fff;
  transition: text-decoration-color 0.15s var(--ease);
}
.contact-email:hover { text-decoration-color: var(--accent-hi); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.footer-nav a:hover { color: var(--text); background: var(--bg-elev); }
.footer-copy {
  font-size: 13px;
  color: var(--text-subtle);
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== Legal pages ===== */
.legal {
  padding-block: clamp(56px, 8vh, 96px);
  background: var(--bg);
}
.legal-inner { max-width: 760px; }
.legal-title {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-top: 6px;
  color: #fff;
}
.legal-updated {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 14px;
}
.legal-lede {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-muted);
  padding: 18px 20px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-block:first-of-type { margin-top: 32px; }
.legal-block h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.legal-block p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-block p + p { margin-top: 12px; }
.legal-block ul {
  margin-top: 10px;
  padding-left: 22px;
  list-style: disc;
}
.legal-block li {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  padding-left: 4px;
}
.legal-block li + li { margin-top: 6px; }
.legal-block strong { color: var(--text); }
.legal-link {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-link:hover { text-decoration-thickness: 2px; }
.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }

  .about-grid { gap: 28px; }
  .about-list li { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 28px; }

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

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
  .about-list { margin-top: 24px; }
}
