:root {
  --bg: #f7f8fd;
  --surface: #ffffff;
  --surface-soft: #f0f2fb;
  --ink: #12131a;
  --muted: #626577;
  --line: #dfe2ee;
  --blue: #6578ff;
  --blue-deep: #4457e8;
  --violet: #8b75ff;
  --navy: #13182b;
  --on-dark: #f7f8ff;
  --shadow: 0 24px 70px rgba(45, 52, 105, 0.11);
}

:root[data-theme="dark"] {
  --bg: #0e1018;
  --surface: #161925;
  --surface-soft: #1c2030;
  --ink: #f4f5fb;
  --muted: #a9adbf;
  --line: #2b3042;
  --navy: #080a10;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  height: 66px;
  padding: 0 12px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 14px 40px rgba(29, 34, 70, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 280px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 70%, rgba(255, 255, 255, 0.97) 0 12%, transparent 34%),
    radial-gradient(circle at 77% 72%, #eef0ff 0 19%, transparent 44%),
    radial-gradient(circle at 42% 18%, #756cff 0, #7080ff 26%, transparent 58%),
    linear-gradient(145deg, #7f6eff 5%, #a4bdff 52%, #f7f8ff 86%);
  box-shadow:
    inset -22px -24px 45px rgba(255, 255, 255, 0.55),
    inset 18px 12px 34px rgba(88, 86, 255, 0.22),
    0 38px 80px rgba(91, 102, 228, 0.28);
}

.brand-mark--small {
  width: 34px;
  box-shadow:
    inset -4px -4px 8px rgba(255, 255, 255, 0.55),
    0 6px 14px rgba(91, 102, 228, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: 180ms ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.theme-toggle {
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 174px max(7vw, 24px) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 8vw;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, black, transparent 75%);
  opacity: 0.55;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57d6a4;
  box-shadow: 0 0 0 5px rgba(87, 214, 164, 0.14);
}

.hero h1 {
  max-width: 760px;
  margin: 30px 0 24px;
  font-size: clamp(62px, 7.5vw, 116px);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--blue) 8%, #8e78ff 48%, #aabfff 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 15px 28px rgba(93, 105, 240, 0.28);
}

.button--ghost {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-art {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  position: absolute;
  width: 410px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 128, 255, 0.16), transparent 68%);
  content: "";
  filter: blur(2px);
}

.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  top: 9%;
  left: 13%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 8px rgba(139, 117, 255, 0.11);
  content: "";
}

.orbit--outer {
  width: 420px;
  height: 420px;
  transform: rotate(18deg);
}

.orbit--inner {
  width: 350px;
  height: 250px;
  transform: rotate(-36deg);
}

.orbit--inner::after {
  top: auto;
  right: 7%;
  bottom: 15%;
  left: auto;
  width: 9px;
  height: 9px;
  background: #72d4e8;
}

.spark {
  position: absolute;
  color: var(--violet);
  font-size: 20px;
}

.spark--one { top: 8%; right: 20%; }
.spark--two { bottom: 12%; left: 8%; font-size: 12px; }
.spark--three { top: 32%; left: 2%; color: #72d4e8; font-size: 9px; }

.hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb--one {
  top: 110px;
  right: -120px;
  width: 310px;
  height: 310px;
  background: rgba(145, 121, 255, 0.1);
}

.hero-orb--two {
  bottom: -130px;
  left: 35%;
  width: 280px;
  height: 280px;
  background: rgba(98, 164, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: max(7vw, 24px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.scroll-cue span {
  color: var(--blue);
  font-size: 17px;
}

.games-section {
  padding: 116px max(7vw, 24px);
  background: var(--surface);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 52px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.games-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  min-height: 590px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 220ms ease;
}

.game-card::after {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 117, 255, 0.14), transparent 66%);
  content: "";
}

.game-card--blue::after {
  background: radial-gradient(circle, rgba(92, 159, 255, 0.15), transparent 66%);
}

.game-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.game-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.platform-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-identity {
  position: relative;
  z-index: 1;
  margin-top: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.game-identity img {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 18px 34px rgba(20, 22, 50, 0.18);
}

.game-identity span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.game-identity h3 {
  margin: 7px 0 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.game-description {
  position: relative;
  z-index: 1;
  margin: 34px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.feature-list {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.feature-list li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(113, 125, 255, 0.12);
  color: var(--blue);
  font-size: 11px;
}

.game-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.game-link span {
  color: var(--blue);
  font-size: 19px;
  transition: transform 180ms ease;
}

.game-link:hover span {
  transform: translate(3px, -3px);
}

.coming-soon {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 0.65fr);
  align-items: center;
  gap: 22px;
  border: 1px dashed color-mix(in srgb, var(--blue) 45%, var(--line));
  border-radius: 24px;
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
}

.coming-soon__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: 24px;
  font-weight: 800;
}

.coming-soon span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-soon h3 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.coming-soon > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.values-section {
  padding: 112px max(7vw, 24px) 126px;
  background: var(--navy);
  color: var(--on-dark);
}

.section-heading--light .eyebrow {
  color: #9ca8ff;
}

.values-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.values-grid article {
  min-height: 270px;
  padding: 35px 34px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.values-grid article + article {
  padding-left: 34px;
}

.values-grid article:last-child {
  border-right: 0;
}

.values-grid span {
  color: #8694ff;
  font-size: 11px;
  font-weight: 800;
}

.values-grid h3 {
  margin: 74px 0 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.values-grid p {
  max-width: 280px;
  margin: 0;
  color: rgba(247, 248, 255, 0.58);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  padding: 48px max(7vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.legal-hero {
  position: relative;
  min-height: 530px;
  padding: 180px 24px 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 72%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.legal-hero__glow {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 660px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 121, 255, 0.16), transparent 68%);
  filter: blur(24px);
  transform: translate(-50%, -50%);
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  max-width: 830px;
}

.legal-hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.legal-hero__content > p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-meta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 120px;
  display: grid;
  grid-template-columns: 260px minmax(0, 750px);
  justify-content: space-between;
  gap: 70px;
}

.legal-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.legal-toc > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
}

.legal-toc a {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  transition: 180ms ease;
}

.legal-toc a:hover {
  color: var(--blue);
  padding-left: 4px;
}

.legal-toc a span {
  color: var(--blue);
  font-size: 9px;
}

.legal-content > section {
  padding: 0 0 64px;
  scroll-margin-top: 115px;
}

.legal-section-number {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-content h2 {
  margin: 10px 0 24px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.legal-content h3 {
  margin: 0 0 9px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a:not(.button):not(.back-link) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  margin: 8px 0 22px;
  padding-left: 20px;
}

.legal-content li {
  margin: 8px 0;
  padding-left: 6px;
}

.legal-content li::marker {
  color: var(--blue);
}

.policy-card {
  margin: 0 0 14px;
  padding: 24px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-contact {
  margin-top: 15px;
  padding: 44px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 20%, rgba(143, 125, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #586bf4, #786bed);
  color: #fff;
}

.legal-contact > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-contact h2 {
  margin: 12px 0;
  color: #fff;
}

.legal-contact p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
}

.legal-contact .button {
  margin-top: 8px;
  background: #fff;
  color: #4756d9;
  box-shadow: none;
}

.back-link {
  margin-top: 30px;
  display: inline-flex;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
    order: -1;
  }

  .brand-mark {
    width: 240px;
  }

  .brand-mark--small {
    width: 34px;
  }

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

  .coming-soon {
    grid-template-columns: auto 1fr;
  }

  .coming-soon > p {
    grid-column: 2;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 60px;
    padding-left: 12px;
    grid-template-columns: 1fr auto;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    justify-self: center;
  }

  .main-nav a {
    padding: 9px 8px;
    font-size: 11px;
  }

  .theme-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    box-shadow: var(--shadow);
  }

  .hero {
    padding: 112px 20px 80px;
    gap: 20px;
  }

  .hero-art {
    min-height: 320px;
  }

  .brand-mark {
    width: 190px;
  }

  .brand-mark--small {
    width: 34px;
  }

  .orbit--outer {
    width: 300px;
    height: 300px;
  }

  .orbit--inner {
    width: 260px;
    height: 180px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .scroll-cue {
    display: none;
  }

  .games-section,
  .values-section {
    padding: 82px 20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-card {
    min-height: 0;
    padding: 24px;
  }

  .game-identity {
    margin-top: 42px;
    align-items: flex-start;
    flex-direction: column;
  }

  .game-identity img {
    width: 92px;
    height: 92px;
    border-radius: 21px;
  }

  .game-link {
    margin-top: 16px;
  }

  .coming-soon {
    padding: 22px;
    grid-template-columns: 1fr;
  }

  .coming-soon > p {
    grid-column: auto;
  }

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

  .values-grid article,
  .values-grid article + article {
    min-height: 220px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .values-grid h3 {
    margin-top: 50px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    min-height: 500px;
    padding-top: 145px;
  }

  .legal-meta {
    align-items: center;
    flex-direction: column;
  }

  .legal-layout {
    padding: 54px 20px 82px;
  }

  .legal-contact {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
