:root {
  --bg: #080b14;
  --bg-2: #111827;
  --panel: #151b2d;
  --panel-2: #f5f7fb;
  --text: #f8fbff;
  --muted: #a8b3c7;
  --ink: #111827;
  --ink-muted: #526070;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(17, 24, 39, 0.12);
  --cyan: #2de2e6;
  --lime: #b8f24b;
  --pink: #ff4d8d;
  --orange: #ffb84d;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

body.nav-open {
  overflow: hidden;
}

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

button {
  border: 0;
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(45, 226, 230, 0.26);
  background: rgba(8, 11, 20, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 14px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-dark,
.section-light {
  position: relative;
  padding: 94px 0;
}

.section-light {
  color: var(--ink);
  background: #f5f7fb;
}

.section-title {
  margin-bottom: 28px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-light .section-kicker {
  color: #007a80;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(58px, 11vw, 118px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(45, 226, 230, 0.2), transparent 22rem),
    radial-gradient(circle at 18% 70%, rgba(255, 77, 141, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(8, 11, 20, 0.94), rgba(17, 24, 39, 0.74));
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(500px) rotateX(58deg) translateY(18%);
  transform-origin: bottom;
}

.hero-stage {
  position: absolute;
  right: 8vw;
  top: 24vh;
  width: min(42vw, 480px);
  aspect-ratio: 1;
}

.hero-stage span {
  position: absolute;
  border: 1px solid rgba(45, 226, 230, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45, 226, 230, 0.18), rgba(255, 77, 141, 0.1));
  box-shadow: 0 0 46px rgba(45, 226, 230, 0.16);
  transform: rotate(18deg);
}

.hero-stage span:nth-child(1) {
  inset: 7% 18% 18% 8%;
}

.hero-stage span:nth-child(2) {
  inset: 26% 5% 6% 34%;
}

.hero-stage span:nth-child(3) {
  inset: 0 42% 58% 20%;
  border-color: rgba(184, 242, 75, 0.42);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: end;
}

.hero-lead {
  margin-bottom: 12px;
  color: var(--lime);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-text {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 800;
}

.button-primary {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 14px 34px rgba(45, 226, 230, 0.22);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.metric {
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.rich-text {
  color: var(--ink-muted);
  font-size: 17px;
}

.rich-text p {
  margin-bottom: 18px;
}

.capability {
  background:
    linear-gradient(180deg, #080b14, #111827),
    var(--bg);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 32px;
  margin-bottom: 28px;
  color: #061018;
  font-weight: 900;
  border-radius: 6px;
  background: var(--orange);
}

.capability-card:nth-child(2) .card-icon {
  background: var(--cyan);
}

.capability-card:nth-child(3) .card-icon {
  background: var(--lime);
}

.capability-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-muted);
  cursor: pointer;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
}

.filter-tabs button.is-active,
.filter-tabs button:hover {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

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

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 226, 230, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.96)),
    #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 160ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 226, 230, 0.42);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.16), 0 0 28px rgba(45, 226, 230, 0.14);
}

.game-card.is-hidden {
  display: none;
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(18px, 4vw, 30px);
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 42%, rgba(45, 226, 230, 0.2), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(184, 242, 75, 0.14), transparent 28%),
    linear-gradient(145deg, #0b1120 0%, #111827 52%, #071018 100%);
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.game-card div {
  padding: 16px 16px 18px;
}

.game-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: #00666b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(0, 122, 128, 0.16);
  border-radius: 999px;
  background: rgba(45, 226, 230, 0.1);
}

.game-card h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
}

.contact {
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 226, 230, 0.15), transparent 26rem),
    linear-gradient(180deg, #111827, #080b14);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.contact-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--lime);
  font-weight: 800;
}

.contact-card p {
  margin-bottom: 0;
  color: rgba(248, 251, 255, 0.78);
}

.contact-card a:hover {
  color: var(--cyan);
}

.site-footer {
  padding: 26px 0;
  color: rgba(248, 251, 255, 0.66);
  background: #050711;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner a:hover {
  color: var(--cyan);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #061018;
  cursor: pointer;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 24px, 720px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 11, 20, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-grid,
  .games-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title-row {
    display: block;
  }

  .filter-tabs {
    margin-top: 20px;
  }
}

@media (max-width: 620px) {
  .section-inner {
    width: min(100% - 28px, 520px);
  }

  .section-dark,
  .section-light {
    padding: 72px 0;
  }

  .hero {
    min-height: 92vh;
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(48px, 18vw, 76px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .capability-grid,
  .games-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    gap: 8px;
  }

  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .metric span {
    margin-top: 0;
    text-align: right;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner a {
    display: inline-block;
    margin-top: 12px;
  }
}
