:root {
  --bg: #05070c;
  --panel: rgba(13, 18, 28, 0.78);
  --panel-strong: rgba(18, 24, 36, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.68);
  --soft: rgba(246, 247, 251, 0.48);
  --pink: #ff4f9a;
  --cyan: #19d7f0;
  --green: #4eea98;
  --violet: #9c6cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 79, 154, 0.22), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(25, 215, 240, 0.2), transparent 32%),
    linear-gradient(180deg, #030408 0%, #060912 48%, #030408 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1260px, calc(100% - 78px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.28);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 79, 154, 0.45));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: rgba(246, 247, 251, 0.82);
  font-size: 15px;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.language-switch button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #05070c;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.menu-button {
  display: none;
}

.section-shell {
  width: min(1260px, calc(100% - 78px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 34px;
  min-height: auto;
  padding: 106px 0 64px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(42px, 4vw, 62px);
  text-shadow: 0 0 42px rgba(255, 79, 154, 0.18);
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 18px 42px rgba(255, 79, 154, 0.24);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 42px 0 0;
}

.signal-list div {
  position: relative;
  min-height: 128px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.signal-list div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--green));
}

.signal-list dt {
  margin-bottom: 10px;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.signal-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-art {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: 0 0 110px rgba(25, 215, 240, 0.08);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0.1), transparent 48%);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.business,
.ai-capability,
.game-direction {
  padding: 58px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  min-height: 318px;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 154, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.service-card:nth-child(2) {
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 215, 240, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.service-card:nth-child(3) {
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 234, 152, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.service-card:nth-child(4) {
  background:
    radial-gradient(circle at 50% 0%, rgba(156, 108, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.service-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(255, 79, 154, 0.72), rgba(255, 79, 154, 0.08) 62%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 38px rgba(255, 79, 154, 0.28);
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #ff64ad;
  filter: drop-shadow(0 0 12px currentColor);
}

.shield-icon {
  background:
    radial-gradient(circle, rgba(25, 215, 240, 0.72), rgba(25, 215, 240, 0.08) 62%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 38px rgba(25, 215, 240, 0.26);
}

.shield-icon svg {
  color: var(--cyan);
}

.agent-icon {
  background:
    radial-gradient(circle, rgba(78, 234, 152, 0.72), rgba(78, 234, 152, 0.08) 62%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 38px rgba(78, 234, 152, 0.25);
}

.agent-icon svg {
  color: var(--green);
}

.game-icon {
  background:
    radial-gradient(circle, rgba(156, 108, 255, 0.72), rgba(156, 108, 255, 0.08) 62%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 38px rgba(156, 108, 255, 0.26);
}

.game-icon svg {
  color: var(--violet);
}

.service-card h3,
.capability-rail h3,
.game-panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.service-card p,
.capability-rail p,
.game-panel > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(246, 247, 251, 0.78);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 750;
}

.capability-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.capability-rail::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 45px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--green), var(--violet));
  opacity: 0.72;
}

.capability-rail article {
  position: relative;
  padding: 88px 22px 24px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.capability-rail span {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #05070c;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 38px rgba(255, 79, 154, 0.32);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.game-heading {
  margin-bottom: 28px;
}

.game-phone {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 70px rgba(255, 79, 154, 0.08);
}

.game-phone img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(25, 215, 240, 0.08));
}

.game-dashboard {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 18px;
}

.game-panel {
  position: relative;
  min-height: 254px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 154, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 79, 154, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(15, 19, 30, 0.94), rgba(6, 9, 16, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 54px rgba(0, 0, 0, 0.24);
}

.game-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent) 0 0 / 220% 1px no-repeat,
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.08), transparent 34%);
}

.game-panel h3 {
  position: relative;
  z-index: 1;
  font-size: 21px;
}

.game-panel > p {
  position: relative;
  z-index: 1;
  max-width: 34em;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.game-panel-large {
  min-height: 332px;
}

.retention-panel {
  border-color: rgba(25, 215, 240, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(25, 215, 240, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 31, 0.94), rgba(6, 10, 16, 0.91));
}

.creative-panel,
.ua-panel {
  min-height: 240px;
}

.ua-panel {
  border-color: rgba(255, 79, 154, 0.26);
}

.world-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.world-strip figure,
.creative-grid figure {
  margin: 0;
}

.world-strip img {
  width: 100%;
  aspect-ratio: 82 / 66;
  border: 1px solid rgba(255, 79, 154, 0.4);
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 79, 154, 0.16);
}

.world-strip figcaption {
  margin-top: 8px;
  color: rgba(246, 247, 251, 0.78);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.world-strip span {
  color: var(--pink);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 79, 154, 0.5);
}

.mini-chart {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.mini-chart p {
  margin: 0 0 8px;
  color: rgba(246, 247, 251, 0.76);
  font-size: 13px;
  font-weight: 750;
}

.mini-chart svg,
.retention-chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.grid-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px currentColor);
}

.chart-line.hot {
  color: var(--pink);
  stroke: var(--pink);
}

.chart-line.cool {
  color: var(--cyan);
  stroke: var(--cyan);
}

.chart-line.green {
  color: var(--green);
  stroke: var(--green);
}

.axis-labels text {
  fill: rgba(246, 247, 251, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.chart-legend,
.retention-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 4px;
  color: rgba(246, 247, 251, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.chart-legend span,
.retention-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend span::before,
.retention-legend span::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hot {
  color: var(--pink);
}

.cool {
  color: var(--cyan);
}

.green {
  color: var(--green);
}

.retention-chart {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.retention-legend {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.creative-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.creative-grid img {
  width: 100%;
  aspect-ratio: 94 / 72;
  border: 1px solid rgba(255, 79, 154, 0.42);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(25, 215, 240, 0.12);
}

.creative-grid figcaption {
  margin-top: 9px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 14px rgba(25, 215, 240, 0.28);
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.metric-grid div {
  min-height: 112px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  text-align: center;
}

.metric-grid span {
  display: block;
  color: rgba(246, 247, 251, 0.64);
  font-size: 12px;
  font-weight: 850;
}

.metric-grid strong {
  display: block;
  margin-top: 14px;
  color: white;
  font-size: 25px;
  line-height: 1;
}

.metric-grid em {
  display: block;
  margin-top: 11px;
  color: var(--green);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1260px, calc(100% - 78px));
  margin: 0 auto;
  padding: 36px 0 44px;
  color: var(--soft);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

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

.footer-brand img {
  width: 34px;
  height: 34px;
}

.site-footer a {
  color: rgba(246, 247, 251, 0.62);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

@media (max-width: 1080px) {
  .hero,
  .section-heading,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .capability-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-dashboard {
    grid-template-columns: 1fr;
  }

  .capability-rail::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 24px);
    grid-template-columns: auto auto auto;
    gap: 10px;
    margin-top: 10px;
  }

  .menu-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 24px));
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 18, 0.96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  }

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

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

  .language-switch button {
    min-width: 36px;
  }

  .section-shell,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 56px 0 54px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .section-heading p {
    font-size: 16px;
  }

  .signal-list,
  .service-grid,
  .capability-rail,
  .game-dashboard {
    grid-template-columns: 1fr;
  }

  .business,
  .ai-capability,
  .game-direction {
    padding: 70px 0;
  }

  .service-card,
  .capability-rail article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }

  .retention-chart,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .retention-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
