:root {
  color-scheme: dark;
  --bg: #03070b;
  --panel: rgba(4, 14, 20, 0.72);
  --panel-strong: rgba(2, 10, 15, 0.86);
  --cyan: #20d7ff;
  --jade: #34f5b4;
  --gold: #d6a65b;
  --magenta: #ff4fd8;
  --amber: #ff8a3d;
  --text: #ecfbff;
  --muted: #98b6c3;
  --line: rgba(214, 166, 91, 0.32);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    radial-gradient(760px 500px at 78% 6%, rgba(32, 215, 255, 0.16), transparent 64%),
    radial-gradient(680px 420px at 16% 18%, rgba(52, 245, 180, 0.1), transparent 66%),
    linear-gradient(180deg, #071017 0%, var(--bg) 48%, #020509 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(52, 245, 180, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 215, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 65%);
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(214, 166, 91, 0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(2, 8, 12, 0.76), rgba(4, 18, 24, 0.68));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

.brand-lockup,
.nav-cta,
.store-link,
.hero-points,
.signal-strip,
.screen-controls {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 11px;
  font-weight: 900;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(32, 215, 255, 0.32);
}

.brand-lockup span,
.nav-cta span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  color: rgba(236, 251, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  gap: 8px;
  min-width: 124px;
  min-height: 44px;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(52, 245, 180, 0.42);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(8, 38, 48, 0.88), rgba(9, 24, 24, 0.7));
  color: #eefcff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(236, 251, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.nav-cta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
.hero-shade,
.hero-rain,
.hero-sigil {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: -5;
  transform: scale(1.01);
}

.hero-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(3, 7, 11, 0.96) 0%, rgba(3, 7, 11, 0.72) 34%, rgba(3, 7, 11, 0.2) 68%, rgba(3, 7, 11, 0.38) 100%),
    linear-gradient(0deg, #03070b 0%, rgba(3, 7, 11, 0.2) 38%, rgba(3, 7, 11, 0.62) 100%);
}

.hero-rain {
  z-index: -3;
  opacity: 0.28;
  background: repeating-linear-gradient(100deg, transparent 0 17px, rgba(32, 215, 255, 0.2) 18px, transparent 20px);
  animation: rainDrift 10s linear infinite;
}

.hero-sigil {
  left: auto;
  right: 7vw;
  top: 14vh;
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  border: 1px solid rgba(32, 215, 255, 0.18);
  border-radius: 50%;
  opacity: 0.46;
  background:
    radial-gradient(circle, transparent 34%, rgba(32, 215, 255, 0.18) 35%, transparent 36%),
    conic-gradient(from 32deg, transparent, rgba(52, 245, 180, 0.34), transparent 22%, rgba(214, 166, 91, 0.22), transparent 48%);
  filter: blur(0.2px);
  animation: sigilTurn 24s linear infinite;
}

.hero-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  padding: 116px 0 112px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-logo {
  width: min(780px, 66vw);
  margin-left: -22px;
  filter:
    drop-shadow(0 0 8px rgba(188, 238, 255, 0.42))
    drop-shadow(0 0 24px rgba(32, 215, 255, 0.26));
}

.hero-lede {
  width: min(700px, 100%);
  margin: 22px 0 0;
  color: rgba(236, 251, 255, 0.88);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.82;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.store-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-copy .store-buttons {
  width: min(460px, 100%);
}

.store-link {
  flex: 0 0 auto;
  width: max-content;
  height: 60px;
  justify-content: center;
  line-height: 0;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-link img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hero-points {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-points span {
  padding: 7px 10px;
  border: 1px solid rgba(214, 166, 91, 0.36);
  border-radius: 999px;
  background: rgba(4, 14, 20, 0.56);
  color: rgba(236, 251, 255, 0.84);
  font-size: 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: rgba(236, 251, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-meta span {
  padding-left: 12px;
  border-left: 2px solid rgba(52, 245, 180, 0.54);
}

.signal-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 78px;
  border-top: 1px solid rgba(214, 166, 91, 0.34);
  background: rgba(2, 8, 12, 0.78);
  backdrop-filter: blur(16px);
}

.signal-strip span {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(214, 166, 91, 0.22);
  color: rgba(236, 251, 255, 0.82);
  font-weight: 900;
  font-size: 0.98rem;
  text-align: center;
}

.flow,
.teaser,
.download-panel {
  padding: clamp(78px, 9vw, 128px) 24px;
  scroll-margin-top: 88px;
}

.flow {
  background:
    linear-gradient(180deg, #03070b 0%, #061018 54%, #03070b 100%),
    radial-gradient(760px 360px at 16% 24%, rgba(52, 245, 180, 0.09), transparent 66%);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.section-heading h2,
.screen-copy h2,
.download-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.screen-copy p,
.lane-copy p,
.download-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-banner {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(214, 166, 91, 0.24);
  border-radius: 8px;
  background: #050d13;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.34);
}

.feature-banner img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  opacity: 0.82;
}

.feature-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 11, 0.82), rgba(3, 7, 11, 0.2) 58%, rgba(3, 7, 11, 0.52)),
    linear-gradient(0deg, rgba(3, 7, 11, 0.78), transparent 62%);
}

.feature-banner div {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(18px, 3.5vw, 42px);
  z-index: 2;
  width: min(540px, calc(100% - 40px));
}

.feature-banner span {
  display: block;
  margin-bottom: 8px;
  color: var(--jade);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-banner strong {
  display: block;
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.06;
}

.flow-lanes {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.flow-lane {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 166, 91, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 18, 26, 0.86), rgba(6, 18, 26, 0.34));
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.26);
}

.lane-media {
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #061017;
}

.lane-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 360ms ease;
}

.flow-lane:hover .lane-media img {
  transform: scale(1.035);
}

.lane-copy {
  min-height: 190px;
  padding: 22px;
}

.lane-copy span {
  color: var(--gold);
  font-weight: 900;
}

.lane-copy h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.lane-copy p {
  margin: 0;
}

.proof {
  position: relative;
  padding: clamp(88px, 10vw, 144px) 24px;
  isolation: isolate;
  overflow: hidden;
}

.proof-bg,
.proof-shade {
  position: absolute;
  inset: 0;
}

.proof-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.proof-shade {
  z-index: -2;
  background:
    radial-gradient(620px 420px at 76% 48%, rgba(32, 215, 255, 0.2), transparent 68%),
    linear-gradient(90deg, rgba(3, 7, 11, 0.9), rgba(3, 7, 11, 0.58) 48%, rgba(3, 7, 11, 0.88)),
    linear-gradient(0deg, rgba(3, 7, 11, 0.96), rgba(3, 7, 11, 0.22) 48%, rgba(3, 7, 11, 0.92));
}

.screens-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.68fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.screen-copy h2 {
  max-width: 760px;
}

.screen-kicker {
  margin: 34px 0 8px;
  color: var(--gold) !important;
  font-weight: 900;
}

.screen-copy h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 1;
}

#screen-body {
  min-height: 74px;
  max-width: 560px;
  margin: 18px 0 0;
}

.screen-controls {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.screen-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(32, 215, 255, 0.26);
  border-radius: 999px;
  background: rgba(3, 10, 15, 0.72);
  color: rgba(236, 251, 255, 0.78);
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.screen-tab:hover,
.screen-tab.is-active {
  border-color: rgba(214, 166, 91, 0.86);
  background: linear-gradient(135deg, rgba(214, 166, 91, 0.22), rgba(32, 215, 255, 0.1));
  color: #fff;
  transform: translateY(-1px);
}

.screen-stage {
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(360px, 82vw);
  padding: 9px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(214, 166, 91, 0.92), rgba(32, 215, 255, 0.55) 48%, rgba(255, 79, 216, 0.55)),
    #07131b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5), 0 0 56px rgba(32, 215, 255, 0.2);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

#screen-image {
  transition: opacity 140ms ease;
}

.teaser {
  background:
    radial-gradient(720px 360px at 50% 14%, rgba(32, 215, 255, 0.14), transparent 66%),
    linear-gradient(180deg, #03070b, #061017 42%, #03070b),
    #03070b;
}

.teaser-frame {
  width: min(1120px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(214, 166, 91, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: #02060a;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.48), 0 0 42px rgba(32, 215, 255, 0.12);
}

.teaser-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.download-panel {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(740px 420px at 50% 20%, rgba(52, 245, 180, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(3, 7, 11, 0.22), rgba(3, 7, 11, 0.95)),
    url("./assets/battle-atmosphere-imagegen.png") center / cover;
}

.download-inner {
  width: min(820px, 100%);
}

.download-mark {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 166, 91, 0.26);
  border-radius: 8px;
  background: rgba(2, 8, 12, 0.54);
  color: rgba(236, 251, 255, 0.86);
  font-weight: 900;
}

.download-mark img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  box-shadow: 0 0 16px rgba(32, 215, 255, 0.28);
}

.download-logo {
  width: min(680px, 96%);
  margin: 0 auto 8px;
  filter:
    drop-shadow(0 0 14px rgba(236, 251, 255, 0.3))
    drop-shadow(0 0 28px rgba(32, 215, 255, 0.24));
}

.download-panel p {
  width: min(620px, 100%);
  margin: 18px auto 0;
}

.store-buttons-center {
  justify-content: center;
  margin-top: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rainDrift {
  from {
    transform: translate3d(0, -30px, 0);
  }
  to {
    transform: translate3d(-80px, 60px, 0);
  }
}

@keyframes sigilTurn {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 1120px) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 7, 11, 0.56), rgba(3, 7, 11, 0.94) 74%, #03070b 100%),
      linear-gradient(90deg, rgba(3, 7, 11, 0.86), rgba(3, 7, 11, 0.22));
  }

  .hero-inner {
    width: min(720px, calc(100% - 32px));
    min-height: calc(100svh - 78px);
    padding: 104px 0 110px;
    align-items: center;
  }

  .hero-logo {
    width: min(560px, 100%);
    margin-left: -10px;
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    display: none;
  }

  .screens-layout {
    grid-template-columns: 1fr;
  }

  .flow-lanes {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .flow-lane {
    display: grid;
    grid-template-columns: minmax(126px, 0.52fr) 1fr;
    align-items: stretch;
  }

  .lane-media {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 56px;
  }

  .brand-lockup span {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    padding: 0 10px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding-top: 92px;
    padding-bottom: 122px;
  }

  .hero-logo {
    width: min(440px, 112%);
    max-width: none;
    margin-left: -18px;
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    width: 188px;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-copy .store-buttons {
    width: 188px;
  }

  .store-link {
    flex-basis: auto;
    width: 100%;
    height: 56px;
  }

  .store-link img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .store-buttons-center {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-points {
    gap: 7px;
  }

  .hero-points span {
    font-size: 0.82rem;
  }

  .hero-meta {
    gap: 8px 10px;
    font-size: 0.78rem;
  }

  .feature-banner img {
    aspect-ratio: 4 / 3;
  }

  .feature-banner div {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .feature-banner strong {
    font-size: 1.55rem;
  }

  .signal-strip {
    height: 78px;
    overflow-x: auto;
  }

  .signal-strip span {
    flex: 0 0 138px;
  }

  .flow,
  .proof,
  .teaser,
  .download-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .flow-lane {
    grid-template-columns: 1fr;
  }

  .lane-media {
    aspect-ratio: 16 / 10;
  }

  .screen-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-tab {
    padding: 0 8px;
  }

  .phone-frame {
    width: min(300px, 84vw);
  }

  .download-logo {
    width: min(430px, 112%);
    max-width: none;
    margin-left: -6%;
  }

  .download-mark {
    margin-bottom: 12px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(214, 166, 91, 0.16);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

/* 移动端系统检测：iOS 隐藏 Google Play 按钮，Android 隐藏 App Store 按钮。
   检测逻辑在 index.html <head> 中的同步 IIFE，根据 UA 给 <html> 加 .platform-ios / .platform-android。 */
html.platform-ios .store-badge.google-play {
  display: none;
}

html.platform-android .store-badge.app-store {
  display: none;
}
