:root {
  --bg: #070b16;
  --bg-soft: #10172b;
  --surface: #0f162c;
  --surface-alt: #111a34;
  --text: #e8ecf8;
  --text-muted: #afb8d3;
  --brand: #7f5af0;
  --brand-strong: #5a34d9;
  --accent: #2cb3ff;
  --line: #253052;
  --radius: 16px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 70% -10%, #1c2661 0%, transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(7, 11, 22, 0.8);
  border-bottom: 1px solid rgba(144, 168, 255, 0.14);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  gap: 0.8rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.hero {
  min-height: calc(90vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(127, 90, 240, 0.35), transparent 40%),
    radial-gradient(circle at 80% 35%, rgba(44, 179, 255, 0.22), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(23, 35, 83, 0.55), transparent 56%);
  filter: blur(8px);
  animation: floatGlow 10s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-15px) scale(1.03);
  }
}

.hero-content {
  position: relative;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.2rem;
}

.subtitle,
.section-lead,
p {
  margin: 0;
  color: var(--text-muted);
}

.subtitle {
  font-size: clamp(1rem, 2.6vw, 1.3rem);
}

.section-lead {
  max-width: 640px;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 26px rgba(95, 61, 218, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 28px rgba(95, 61, 218, 0.5);
}

.btn-secondary {
  border-color: var(--line);
  background: #131d37;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #5269a8;
}

.games-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.games-grid-single {
  justify-items: center;
}

.game-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border: 1px solid rgba(130, 152, 215, 0.2);
  border-radius: var(--radius);
  padding: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
  display: grid;
  gap: 0.6rem;
}

.games-grid-single .game-card {
  width: min(100%, 520px);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(130, 152, 215, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(127, 90, 240, 0.18);
}

.game-media {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 124px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.games-grid-single .game-card h3 {
  margin-top: 0.05rem;
}

.games-grid-single .game-card p {
  max-width: 48ch;
}

.games-grid-single .game-card .btn {
  margin-top: 0.25rem;
  padding: 0.62rem 1rem;
}

.alt-surface {
  background: rgba(20, 29, 54, 0.5);
  border-top: 1px solid rgba(130, 152, 215, 0.16);
  border-bottom: 1px solid rgba(130, 152, 215, 0.16);
}

.contact-form {
  margin-top: 1rem;
  max-width: 560px;
  display: grid;
  gap: 0.7rem;
}

label {
  font-weight: 500;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f1831;
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid rgba(130, 152, 215, 0.2);
  padding: 1.2rem 0 1.8rem;
}

.footer-wrap {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}

.footer-wrap p {
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .games-grid:not(.games-grid-single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .games-grid:not(.games-grid-single) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-wrap {
    grid-template-columns: 1fr auto auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .footer-links {
    justify-self: end;
  }
}

@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;
  }
}
