:root {
  color-scheme: dark;
  --bg: #0d0d12;
  --panel: rgba(24, 24, 31, 0.82);
  --panel-solid: #191920;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff8e8;
  --muted: #bdb5a5;
  --gold: #ffd75c;
  --red: #ff3c44;
  --cyan: #21f0dc;
  --black: #050507;
  --radius-xl: 34px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 60, 68, 0.26), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(255, 215, 92, 0.22), transparent 26rem),
    radial-gradient(circle at 82% 82%, rgba(33, 240, 220, 0.12), transparent 24rem),
    linear-gradient(145deg, #09090d 0%, #171720 48%, #0d0d12 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  mix-blend-mode: screen;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 52px;
}

.hero-card,
.guide-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(15, 15, 21, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  min-height: 640px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.hero-card::after {
  content: "";
  position: absolute;
  left: clamp(22px, 4vw, 42px);
  right: clamp(22px, 4vw, 42px);
  bottom: 0;
  height: 5px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan));
  opacity: 0.9;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-red {
  width: 360px;
  height: 360px;
  left: -170px;
  bottom: 40px;
  background: rgba(255, 60, 68, 0.13);
}

.ambient-gold {
  width: 420px;
  height: 420px;
  right: -170px;
  top: -170px;
  background: rgba(255, 215, 92, 0.14);
}

.orbital-line {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -150px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 46% 54% 42% 58%;
  transform: rotate(-16deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-logo {
  width: 94px;
  height: 94px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.eyebrow,
.phone-kicker,
.meta-strip span,
.checksum summary,
.guide-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 6px;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.82;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.55fr);
  gap: 12px;
  margin-top: 34px;
}

.store-button,
.copy-button,
.text-link {
  border: 0;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 20px;
}

.store-button strong,
.store-button small {
  display: block;
}

.store-button strong {
  font-size: 17px;
  line-height: 1.25;
}

.store-button small {
  margin-top: 4px;
  font-size: 13px;
}

.android-button {
  color: white;
  background: linear-gradient(135deg, #ff343e, #ff5145 58%, #ffc04f);
  box-shadow: 0 18px 44px rgba(255, 60, 68, 0.28);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.android-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 24px 54px rgba(255, 60, 68, 0.34);
}

.ios-button {
  color: rgba(255, 248, 232, 0.52);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: not-allowed;
}

.ios-button small {
  color: rgba(255, 248, 232, 0.42);
}

.button-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.ios-button .button-mark {
  color: rgba(20, 20, 26, 0.68);
  background: rgba(255, 255, 255, 0.38);
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.copy-button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--gold);
  background: var(--black);
  font-weight: 900;
  cursor: pointer;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 800;
}

.phone-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 440px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    #111117;
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.32), 0 28px 64px rgba(0, 0, 0, 0.38);
}

.phone-topbar {
  width: 78px;
  height: 6px;
  margin-bottom: 46px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.20);
}

.phone-logo {
  width: 118px;
  height: 118px;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
}

.phone-kicker {
  margin: 26px 0 8px;
}

.phone-card strong {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.phone-card span,
.phone-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.phone-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0 12px;
  background: rgba(255, 255, 255, 0.10);
}

.phone-card code {
  max-width: 100%;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: var(--gold);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

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

.meta-strip div,
.checksum {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.meta-strip div {
  padding: 15px;
}

.meta-strip span {
  display: block;
  color: var(--muted);
}

.meta-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.checksum {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 14px 16px;
}

.checksum summary {
  color: var(--muted);
  cursor: pointer;
}

.checksum code {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.guide-card {
  min-height: 176px;
  padding: 22px;
  border-radius: 26px;
}

.guide-number {
  color: rgba(255, 215, 92, 0.62);
}

.guide-card h2 {
  margin: 16px 0 10px;
  color: var(--gold);
  font-size: 21px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.muted {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1040px);
    padding-top: 14px;
    padding-bottom: 34px;
  }

  .hero-card {
    min-height: 0;
    padding: 20px;
    border-radius: 28px;
  }

  .brand-row {
    gap: 13px;
  }

  .app-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.72;
  }

  .channel-row,
  .meta-strip {
    grid-template-columns: 1fr;
  }

  .store-button {
    min-height: 68px;
    padding: 10px 14px;
  }

  .button-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 25px;
  }

  .utility-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-button,
  .text-link {
    justify-content: center;
  }

  .guide-card {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
  }
}
