:root {
  --ink: #172033;
  --muted: #5d687a;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --line: #d9e3ef;
  --navy: #10243f;
  --blue: #2167d8;
  --cyan: #20a4b8;
  --coral: #ef6a4c;
  --amber: #f4b740;
  --green: #2f9d68;
  --shadow: 0 18px 50px rgba(16, 36, 63, 0.15);
  --radius: 8px;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(32, 164, 184, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 227, 239, 0.75);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(16, 36, 63, 0.12);
}

.nav-shell {
  width: min(100% - 36px, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--navy);
  transition: transform 0.18s ease, color 0.18s ease;
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 36, 63, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover img {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 12px 28px rgba(16, 36, 63, 0.2);
}

.brand span {
  white-space: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #26354b;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-menu a:hover {
  background: #eef6ff;
  color: var(--blue);
  transform: translateY(-1px);
}

.site-menu a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 840px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 21, 39, 0.9) 0%, rgba(16, 36, 63, 0.68) 48%, rgba(16, 36, 63, 0.24) 100%),
    linear-gradient(0deg, rgba(9, 21, 39, 0.64) 0%, rgba(9, 21, 39, 0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding-top: var(--header);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #79edf0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-actions,
.cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::before {
  left: 130%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #f08b3c);
  box-shadow: 0 12px 28px rgba(239, 106, 76, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(239, 106, 76, 0.42);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.2);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin: 48px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

.band {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.section-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.22;
  letter-spacing: 0;
}

#library .section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  color: #2c313a;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
}

#library .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: #087be8;
  transform: translateX(-50%);
}

.section-copy p,
.section-heading p,
.content-text p,
.game-card p,
.work-card p,
.faq p,
.site-footer p,
.cta-strip p {
  color: var(--muted);
}

.section-copy p {
  margin: 18px 0 0;
  font-size: 17px;
}

.media-panel {
  margin: 0;
}

.media-panel img,
.content-row figure img,
.game-card img,
.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#platform-features {
  background: #fff;
}

#platform-features .section-heading {
  max-width: 880px;
  margin-bottom: 58px;
}

#platform-features .section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  color: #2c313a;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
}

#platform-features .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: #087be8;
  transform: translateX(-50%);
}

#platform-features .section-heading p {
  max-width: 780px;
  margin: 26px auto 0;
  color: #667085;
  font-size: 17px;
  line-height: 1.8;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading p {
  margin: 14px 0 0;
  font-size: 17px;
}

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

.feature-card,
.game-card,
.work-card,
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card {
  min-height: 310px;
  padding: 54px 44px 42px;
  border-color: #e5ebf2;
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31, 45, 61, 0.12);
}

.feature-icon {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 30px;
  border-radius: 0;
  background: transparent;
  color: #5b3c9a;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.feature-card h3,
.content-text h3,
.game-card h3,
.work-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.3;
}

#platform-features .feature-card h3 {
  color: #087be8;
  font-size: 24px;
  font-weight: 900;
}

.feature-card p,
.game-card p,
.work-card p {
  margin: 12px 0 0;
}

#platform-features .feature-card p {
  margin-top: 22px;
  color: #4a5668;
  font-size: 17px;
  line-height: 1.85;
}

.article-flow {
  display: grid;
  gap: 44px;
}

.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}

.content-row.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.content-row.reverse .content-text {
  grid-column: 2;
}

.content-row.reverse figure {
  grid-column: 1;
  grid-row: 1;
}

.content-row figure {
  margin: 0;
}

.content-text p {
  margin: 14px 0 0;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--amber);
}

.game-card img,
.work-card img {
  border-radius: 0;
  box-shadow: none;
}

.game-card-body,
.work-card-body {
  padding: 24px 26px 28px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 38px;
  width: min(100%, 1080px);
  margin: 50px auto 0;
}

.work-card {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 45, 61, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(31, 45, 61, 0.18);
}

.work-card img {
  aspect-ratio: 3 / 2;
}

.work-card h3 {
  color: #087be8;
  font-size: 23px;
  font-weight: 900;
}

.work-card p {
  min-height: 58px;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

.rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: #ffad00;
  font-weight: 900;
  line-height: 1.2;
}

.rating strong {
  color: #2c313a;
}

.rating em {
  color: #87909d;
  font-style: normal;
  font-weight: 500;
}

.insight {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
}

.update-panel {
  display: grid;
  gap: 14px;
}

.update-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 36, 63, 0.08);
}

.update-panel div:nth-child(2) {
  border-left-color: var(--green);
}

.update-panel div:nth-child(3) {
  border-left-color: var(--amber);
}

.update-panel div:nth-child(4) {
  border-left-color: var(--coral);
}

.update-panel strong {
  color: var(--navy);
  white-space: nowrap;
}

.update-panel span {
  color: var(--muted);
  text-align: right;
}

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 17px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
}

.cta-strip {
  padding: 44px 0;
  background: var(--navy);
  color: #fff;
}

.cta-inner {
  justify-content: space-between;
}

.cta-strip h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
}

.cta-strip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 34px 0;
  background: #091527;
  color: #fff;
}

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

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(33, 103, 216, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.media-panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.media-panel img {
  transition: transform 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.media-panel:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
  box-shadow: 0 24px 54px rgba(16, 36, 63, 0.2);
}

.feature-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  border-color: rgba(8, 123, 232, 0.28);
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(31, 45, 61, 0.16);
}

.feature-icon {
  transition: transform 0.22s ease, filter 0.22s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 8px 14px rgba(8, 123, 232, 0.22));
}

.work-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(31, 45, 61, 0.2);
}

.work-card img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.work-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.work-card h3 {
  transition: color 0.18s ease;
}

.work-card:hover h3 {
  color: #055fb5;
}

.rating {
  transition: transform 0.18s ease;
}

.work-card:hover .rating {
  transform: translateX(3px);
}

.faq details {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.faq details:hover,
.faq details[open] {
  border-color: rgba(8, 123, 232, 0.26);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.09);
}

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

.faq summary {
  transition: color 0.18s ease, background 0.18s ease;
}

.faq summary:hover {
  color: var(--blue);
  background: #f7fbff;
}

html.js-ready .feature-card,
html.js-ready .work-card,
html.js-ready .content-row,
html.js-ready .update-panel div {
  opacity: 0;
  transform: translateY(18px);
  transition-property: opacity, transform, box-shadow, border-color;
  transition-duration: 0.42s, 0.42s, 0.22s, 0.22s;
  transition-timing-function: ease;
}

html.js-ready .feature-card.is-inview,
html.js-ready .work-card.is-inview,
html.js-ready .content-row.is-inview,
html.js-ready .update-panel div.is-inview {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .feature-card:nth-child(2),
html.js-ready .work-card:nth-child(2) {
  transition-delay: 0.04s;
}

html.js-ready .feature-card:nth-child(3),
html.js-ready .work-card:nth-child(3) {
  transition-delay: 0.08s;
}

html.js-ready .feature-card:nth-child(4),
html.js-ready .work-card:nth-child(4) {
  transition-delay: 0.12s;
}

html.js-ready .feature-card:nth-child(5),
html.js-ready .work-card:nth-child(5) {
  transition-delay: 0.16s;
}

html.js-ready .feature-card:nth-child(6),
html.js-ready .work-card:nth-child(6) {
  transition-delay: 0.2s;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16, 36, 63, 0.12);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    min-height: 46px;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
  }

  .split,
  .content-row,
  .content-row.reverse {
    grid-template-columns: 1fr;
  }

  .content-row.reverse .content-text,
  .content-row.reverse figure {
    grid-column: auto;
    grid-row: auto;
  }

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

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 64px;
  }

  .container,
  .hero-content,
  .nav-shell {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(9, 21, 39, 0.84) 0%, rgba(16, 36, 63, 0.8) 60%, rgba(9, 21, 39, 0.72) 100%);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .works-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 32px;
  }

  .feature-card {
    min-height: auto;
    padding: 34px 28px 30px;
  }

  #platform-features .feature-card h3 {
    font-size: 22px;
  }

  #platform-features .feature-card p {
    font-size: 16px;
  }

  .update-panel div,
  .footer-inner,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .update-panel span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
