:root {
  color-scheme: dark;
  --green: #b8ff37;
  --green-soft: rgba(184, 255, 55, 0.18);
  --green-line: rgba(184, 255, 55, 0.28);
  --text: #f2ffe2;
  --muted: rgba(234, 255, 202, 0.62);
  --panel: rgba(9, 18, 4, 0.46);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #020500;
  color: var(--text);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.hero-scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(184, 255, 55, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 44%, rgba(0, 0, 0, 0.64) 100%),
    url("./assets/bg-cyber-scene-v2.webp") center center / cover no-repeat,
    #010300;
}

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

.hero-scene::before {
  z-index: -4;
  background:
    radial-gradient(circle at 50% 43%, transparent 0%, rgba(0, 0, 0, 0.14) 34%, rgba(0, 0, 0, 0.72) 78%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 23%, transparent 76%, rgba(0, 0, 0, 0.78));
}

.hero-scene::after {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 20%, transparent 64%, rgba(0, 0, 0, 0.70)),
    repeating-linear-gradient(to bottom, rgba(184, 255, 55, 0.025) 0, rgba(184, 255, 55, 0.025) 1px, transparent 1px, transparent 7px);
}

.webgl-bg {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  opacity: 0.58;
  mix-blend-mode: screen;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.28;
}

.floating-brand {
  position: absolute;
  top: 28px;
  left: 10.5vw;
  z-index: 5;
  display: block;
  color: var(--green);
}

.floating-brand img {
  width: 156px;
  margin: 0;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(184, 255, 55, 0.36));
}


.center-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 84px 320px 120px;
  transform: translateY(-78px);
}

.sync-row {
  position: relative;
  top: -44px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 54px;
  color: rgba(184, 255, 55, 0.72);
  font-size: 10px;
  font-weight: 950;
}

.sync-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.sync-line {
  width: 36px;
  height: 1px;
  background: var(--green-line);
}

.logo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 0;
}

.logo-frame::before,
.logo-frame::after {
  content: none;
}

.logo-main {
  width: clamp(205px, 22vw, 350px);
  margin: -122px 0 -42px;
  height: auto;
  display: block;
  filter: none;
  animation: none;
}

.brand-cn {
  color: var(--green);
  font-size: clamp(90px, 10.2vw, 166px);
  line-height: 0.84;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: skewX(-7deg) scaleX(0.92);
  text-shadow:
    0 0 16px rgba(184, 255, 55, 0.86),
    0 0 70px rgba(184, 255, 55, 0.42),
    0 28px 80px rgba(0, 0, 0, 0.88);
  animation: titleGlow 4.8s ease-in-out infinite;
}

.name-strip {
  position: relative;
  width: min(430px, 60vw);
  min-height: 32px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020401;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.66em;
  padding-left: 0.66em;
  box-shadow: 0 0 28px rgba(184, 255, 55, 0.22);
}

.product-line {
  margin-top: 38px;
  color: var(--text);
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(184, 255, 55, 0.18);
}

.slogan {
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.48;
  font-weight: 800;
}

.slogan span {
  display: block;
}

.download-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  position: relative;
  transform: translateY(88px);
  min-width: 228px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 12px;
  border: 1px solid rgba(184, 255, 55, 0.72);
  border-radius: 8px;
  background: var(--green);
  color: #071004;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 0 46px rgba(184, 255, 55, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn::after {
  content: "";
  position: absolute;
  inset: -20px auto -20px -42%;
  width: 36%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transition: left 0.58s ease;
}

.download-btn:hover {
  transform: translateY(86px);
  box-shadow: 0 0 62px rgba(184, 255, 55, 0.58);
}

.download-btn:hover::after {
  left: 120%;
}

.version-pill {
  transform: translateY(88px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(184, 255, 55, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 1, 0.42);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.hud-card,
.metric-card,
.preview-card {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(184, 255, 55, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(9, 18, 4, 0.66), rgba(6, 10, 3, 0.34));
  box-shadow:
    inset 0 0 36px rgba(184, 255, 55, 0.07),
    0 0 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  will-change: transform;
}

.hud-panel {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  will-change: transform;
}

.panel-art {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 28px rgba(184, 255, 55, 0.12));
}

.hud-copy,
.metric-copy {
  position: absolute;
  z-index: 2;
}

.hud-left {
  left: 8vw;
  top: 43%;
  width: clamp(300px, 21vw, 385px);
  aspect-ratio: 1122 / 1402;
  padding: 0;
  transform: translateY(-50%);
}

.hud-copy {
  inset: 16.5% 12% 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-title {
  margin-bottom: 16px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.hud-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 82%;
  max-width: 245px;
  margin-top: 14px;
}

.hud-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 255, 55, 0.2);
  border-radius: 999px;
  background: rgba(184, 255, 55, 0.08);
  color: var(--green);
  font-size: 19px;
  font-weight: 900;
}

.hud-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.hud-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric-card {
  right: 7vw;
  top: 12%;
  width: clamp(320px, 22vw, 400px);
  aspect-ratio: 1448 / 1086;
  padding: 0;
}

.metric-copy {
  left: 16%;
  right: auto;
  top: 20%;
  width: 58%;
  text-align: left;
  transform: none;
}

.metric-card .hud-title {
  margin-bottom: 18px;
  text-align: left;
  font-size: 18px;
}

.metric-card p {
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: inline-block;
  margin-top: 6px;
  color: #dff818;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
  transform: skewX(-7deg) scaleX(0.96);
  transform-origin: left center;
  text-shadow:
    0 0 14px rgba(224, 248, 24, 0.74),
    0 0 44px rgba(224, 248, 24, 0.34);
}

.metric-card svg {
  width: 100%;
  height: 72px;
  margin-top: 10px;
  overflow: visible;
}

.metric-card polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(184, 255, 55, 0.7));
}

.preview-card {
  right: 4.2vw;
  top: 47%;
  bottom: auto;
  width: clamp(380px, 28vw, 510px);
  aspect-ratio: 1448 / 1086;
  padding: 0;
}


.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-grid span {
  aspect-ratio: 1.45;
  border: 1px solid rgba(184, 255, 55, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(184, 255, 55, 0.32), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #050802;
  box-shadow: inset 0 0 24px rgba(184, 255, 55, 0.08);
}

.page-foot {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 20px;
  transform: translateX(-50%);
  color: rgba(234, 255, 202, 0.48);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.page-foot a {
  color: inherit;
  text-decoration: none;
}

.page-foot a:hover {
  color: rgba(234, 255, 202, 0.55);
}

.icp-link {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 5;
  color: rgba(148, 178, 117, 0.24);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.icp-link:hover {
  color: rgba(148, 178, 117, 0.42);
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow:
      0 0 14px rgba(184, 255, 55, 0.72),
      0 0 62px rgba(184, 255, 55, 0.32),
      0 28px 80px rgba(0, 0, 0, 0.88);
  }
  50% {
    text-shadow:
      0 0 22px rgba(184, 255, 55, 0.9),
      0 0 92px rgba(184, 255, 55, 0.48),
      0 28px 80px rgba(0, 0, 0, 0.88);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    filter:
      drop-shadow(0 0 16px rgba(184, 255, 55, 0.52))
      drop-shadow(0 0 64px rgba(184, 255, 55, 0.26));
  }
  50% {
    filter:
      drop-shadow(0 0 24px rgba(184, 255, 55, 0.72))
      drop-shadow(0 0 94px rgba(184, 255, 55, 0.42));
  }
}

@media (max-width: 1180px) {
  .center-stage {
    padding-left: 260px;
    padding-right: 260px;
  }

  .hud-left {
    left: 56px;
    width: 230px;
  }

  .metric-card,
  .preview-card {
    right: 32px;
    width: 280px;
  }
}

@media (max-width: 980px) {
  .floating-brand {
    left: 32px;
    top: 24px;
  }


  .center-stage {
    position: relative;
    min-height: 100vh;
    padding: 116px 24px 120px;
  }

  .hud-card,
  .hud-panel,
  .metric-card,
  .preview-card {
    display: none;
  }

  .page-foot {
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .floating-brand img {
    width: 70px;
  }


  .logo-main {
    width: min(250px, 70vw);
    margin: -46px 0 -58px;
  }

  .product-line {
    font-size: 20px;
  }

  .slogan {
    font-size: 15px;
  }

  .download-row {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .download-btn,
  .version-pill {
    width: 100%;
  }
}

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