:root {
  --bg: #030303;
  --surface: #0a0a0d;
  --surface-2: #101018;
  --text: #f5f7fb;
  --muted: #9ba3b4;
  --line: rgba(255, 255, 255, 0.10);
  --accent-a: #11d9ff;
  --accent-b: #5f2cff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(30, 80, 255, 0.13), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(102, 44, 255, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 56px);
  display: grid;
  align-items: center;
  padding: 96px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #b8c1d8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 850px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
}

h3 {
  margin: 0;
  font-size: 1.4rem;
}

.gradient-text {
  display: inline-block;

  background: linear-gradient(135deg,
      #bdf8ff 0%,
      #72e9ff 14%,
      #19cfff 30%,
      #258cff 52%,
      #315cff 72%,
      #542cff 88%,
      #3214d9 100%);

  background-size: 100% 100%;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: transparent;

  background: linear-gradient(135deg,
      #16b9e8 0%,
      #168fef 32%,
      #2868f5 58%,
      #3e45f5 78%,
      #5728e8 100%);

  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero-card,
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border-radius: 24px;
}

.hero-card {
  padding: 28px;
}

.hero-card img {
  border-radius: 18px;
  background: #000;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
}

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.game-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0.97) 15%, rgba(3, 3, 3, 0.18) 70%),
    radial-gradient(circle at 70% 20%, rgba(20, 210, 255, 0.24), transparent 28%),
    radial-gradient(circle at 28% 54%, rgba(92, 43, 255, 0.26), transparent 34%);
}

.game-card>* {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cad3ea;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero {
  padding: 120px 0 70px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.contact-link {
  display: block;
  margin-top: 12px;
  color: #d7dcff;
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.legal {
  background: #fff;
  color: #111827;
}

.legal .site-header {
  background: rgba(255, 255, 255, 0.90);
  border-color: #e5e7eb;
}

.legal .nav-links a {
  color: #4b5563;
}

.legal .nav-links a:hover {
  color: #111827;
}

.legal .menu-toggle {
  color: #111827;
  border-color: #d1d5db;
  background: #fff;
}

.legal .brand img {
  filter: invert(1);
}

.legal main {
  width: min(calc(100% - 40px), 900px);
  margin-inline: auto;
  padding: 72px 0 96px;
}

.legal h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: #374151;
}

.legal .meta {
  margin: 28px 0;
  padding: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 13, 0.98);
  }

  .legal .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }

  .hero-grid,
  .contact-panel,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand img {
    width: 180px;
  }

  .nav {
    height: 76px;
  }

  .nav-links {
    top: 76px;
    left: 14px;
    right: 14px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0;
  }

  .hero-card,
  .card {
    border-radius: 18px;
  }

  .hero-card,
  .card {
    padding: 22px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}