:root {
  color-scheme: dark;
  --bg: #0d0218;
  --text: #fffaff;
  --muted: rgba(255, 250, 255, 0.74);
  --subtle: rgba(255, 250, 255, 0.58);
  --line: rgba(255, 255, 255, 0.2);
  --panel: rgba(25, 8, 43, 0.58);
  --panel-hover: rgba(255, 255, 255, 0.13);
  --purple: #8b4dff;
  --violet: #df7dff;
  --cyan: #56f2ed;
  --blue: #6e92ff;
  --gold: #ffd86f;
  --ink: #13051f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  appearance: none;
  color: inherit;
}

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

#meteor-canvas,
.spectral-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#meteor-canvas {
  z-index: -4;
}

.spectral-veil {
  z-index: -3;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 0%, rgba(139, 77, 255, 0.12) 35%, rgba(86, 242, 237, 0.11) 66%, rgba(255, 216, 111, 0.08) 100%),
    linear-gradient(180deg, rgba(13, 2, 24, 0.05) 0%, rgba(13, 2, 24, 0.24) 54%, rgba(13, 2, 24, 0.96) 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 104px);
  color: rgba(255, 250, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 3, 23, 0.64);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 34px rgba(139, 77, 255, 0.42), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 62px);
  color: rgba(255, 250, 255, 0.78);
  font-size: 16px;
  font-weight: 760;
}

.nav-links a {
  position: relative;
  padding: 29px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(86vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(58px, 7vw, 94px) clamp(20px, 5vw, 104px) 54px;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 17% 10% auto;
  height: 42%;
  background:
    linear-gradient(104deg, rgba(86, 242, 237, 0), rgba(86, 242, 237, 0.18), rgba(139, 77, 255, 0)),
    linear-gradient(72deg, rgba(255, 216, 111, 0), rgba(255, 216, 111, 0.12), rgba(255, 216, 111, 0));
  filter: blur(14px);
  transform: skewY(-7deg);
}

.hero::after {
  left: 50%;
  bottom: 34px;
  width: min(980px, 72vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 242, 237, 0.58), rgba(255, 216, 111, 0.46), transparent);
  transform: translateX(-50%);
}

.hero-shell {
  position: relative;
  width: min(1180px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #f6dbff 28%, #bbfefd 66%, #ffe6a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 22px 76px rgba(139, 77, 255, 0.28);
}

.hero-slogan {
  width: min(820px, 100%);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.62;
}

.hero-downloads {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 40px auto 0;
}

.platform-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 156px;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.065));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 60px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(24px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.platform-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 460ms ease;
}

.platform-tile::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  opacity: 0.82;
}

.platform-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(86, 242, 237, 0.68);
  background: var(--panel-hover);
  box-shadow: 0 28px 86px rgba(30, 9, 56, 0.44), 0 0 42px rgba(86, 242, 237, 0.18);
}

.platform-tile:hover::before {
  transform: translateX(120%);
}

.platform-tile.featured {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(210, 253, 255, 0.9));
}

.tile-icon,
.platform-icon {
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #c8fffb);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(86, 242, 237, 0.2);
}

.tile-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
}

.platform-tile strong,
.platform-tile small {
  display: block;
}

.platform-tile strong {
  font-size: 22px;
  line-height: 1.1;
}

.platform-tile small {
  min-height: 37px;
  margin-top: 8px;
  color: rgba(255, 250, 255, 0.64);
  font-size: 13px;
  line-height: 1.42;
}

.platform-tile.featured small {
  color: rgba(19, 5, 31, 0.62);
}

.platform-tile em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 16px;
  color: var(--cyan);
  font-style: normal;
  font-weight: 950;
  border: 1px solid rgba(86, 242, 237, 0.36);
  border-radius: 999px;
  background: rgba(86, 242, 237, 0.08);
}

.platform-tile.featured em {
  color: #5b2fbe;
  border-color: rgba(91, 47, 190, 0.24);
  background: rgba(91, 47, 190, 0.08);
}

.platform-tile.is-unavailable,
.platform-tile.featured.is-unavailable,
.download-row.is-unavailable {
  color: rgba(255, 250, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(128, 128, 148, 0.22), rgba(72, 72, 86, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  filter: grayscale(0.8) saturate(0.48);
}

.platform-tile.is-unavailable:hover,
.platform-tile.featured.is-unavailable:hover,
.download-row.is-unavailable:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(128, 128, 148, 0.25), rgba(72, 72, 86, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 34px rgba(0, 0, 0, 0.16);
}

.platform-tile.is-unavailable::after,
.platform-tile.featured.is-unavailable::after {
  background: rgba(255, 255, 255, 0.18);
}

.platform-tile.is-unavailable .tile-icon,
.platform-tile.featured.is-unavailable .tile-icon,
.download-row.is-unavailable .platform-icon {
  color: rgba(255, 250, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: none;
}

.platform-tile.is-unavailable small,
.platform-tile.featured.is-unavailable small,
.download-row.is-unavailable small {
  color: rgba(255, 250, 255, 0.42);
}

.platform-tile.is-unavailable em,
.platform-tile.featured.is-unavailable em,
.download-row.is-unavailable .row-action {
  color: rgba(255, 250, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.signal-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-strip span {
  min-height: 36px;
  padding: 8px 15px;
  color: rgba(255, 250, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px);
}

.vision-band,
.section,
.download-section {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.vision-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 4px;
}

.vision-copy,
.vision-metrics div,
.feature-grid article,
.service-grid article,
.download-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.vision-copy {
  padding: clamp(28px, 4vw, 44px);
}

.vision-copy h2,
.section-heading h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.7vw, 54px);
  line-height: 1.18;
  letter-spacing: 0;
}

.vision-copy p:last-child,
.download-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.vision-metrics div {
  min-height: 188px;
  padding: 26px;
}

.vision-metrics strong,
.vision-metrics span {
  display: block;
}

.vision-metrics strong {
  color: var(--gold);
  font-size: 28px;
  font-weight: 950;
}

.vision-metrics span {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.section,
.download-section {
  padding-top: 104px;
}

.section-heading {
  width: min(780px, 100%);
}

.feature-grid,
.service-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

.feature-grid article,
.service-grid article {
  min-height: 220px;
  padding: 26px;
}

.feature-grid span {
  color: var(--cyan);
  font-weight: 950;
}

.feature-grid h3,
.service-grid h3 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.feature-grid p,
.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 40px;
  align-items: start;
}

.download-grid {
  display: grid;
  gap: 12px;
}

.download-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  padding: 17px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-row:hover {
  transform: translateX(4px);
  border-color: rgba(86, 242, 237, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.platform-icon {
  width: 58px;
  height: 58px;
}

.download-row strong,
.download-row small {
  display: block;
}

.download-row strong {
  font-size: 20px;
}

.download-row small {
  margin-top: 6px;
  color: var(--subtle);
}

.row-action {
  color: var(--cyan);
  font-weight: 950;
}

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

.service-grid article {
  min-height: 188px;
}

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 78px 18px 34px;
  color: rgba(255, 250, 255, 0.52);
}

.is-loading {
  opacity: 0.72;
  cursor: progress;
}

@media (max-width: 1180px) {
  .hero-downloads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vision-band,
  .download-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .vision-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 94px;
    padding: 12px 18px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 3px;
    font-size: 14px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 5px 0 10px;
  }

  .nav-links a::after {
    bottom: 3px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 46px;
  }

  .hero-slogan {
    font-size: 17px;
  }

  .hero-downloads,
  .feature-grid,
  .service-grid,
  .vision-metrics {
    grid-template-columns: 1fr;
  }

  .platform-tile {
    min-height: 128px;
  }

  .download-row {
    grid-template-columns: 58px 1fr;
  }

  .row-action {
    grid-column: 2;
  }
}

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

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