:root {
  --bg: #050912;
  --bg-elev: #0a1122;
  --card: rgba(15, 24, 44, 0.78);
  --card-strong: rgba(19, 31, 56, 0.92);
  --border: rgba(148, 179, 230, 0.14);
  --border-gold: rgba(229, 192, 107, 0.36);
  --text: #eef3fc;
  --text-soft: #a4b2cb;
  --text-muted: #7685a1;
  --gold: #e5c06b;
  --gold-bright: #f5da98;
  --gold-bg: rgba(229, 192, 107, 0.13);
  --blue: #7aa2f7;
  --blue-bg: rgba(122, 162, 247, 0.14);
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.13);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle celestial glow backdrop */
.backdrop-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(62% 45% at 76% 12%, rgba(229, 192, 107, 0.11), transparent 68%),
    radial-gradient(54% 48% at 18% 24%, rgba(122, 162, 247, 0.12), transparent 70%),
    radial-gradient(60% 40% at 50% 96%, rgba(122, 162, 247, 0.08), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; }
.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a { transition: color 0.18s; }
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, #f3d68b 0%, #d5a94c 100%);
  color: #09101f;
  box-shadow: 0 8px 28px rgba(229, 192, 107, 0.22);
}
.btn-gold:hover {
  box-shadow: 0 12px 34px rgba(229, 192, 107, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 179, 230, 0.34);
}

.btn-soft {
  background: var(--blue-bg);
  border-color: rgba(122, 162, 247, 0.3);
  color: #b7ceff;
}
.btn-soft:hover {
  background: rgba(122, 162, 247, 0.24);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
}

/* ── WeChat Banner ── */
.wechat-banner {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 13.5px;
  align-items: center;
  gap: 10px;
}
.wechat-banner.visible { display: flex; }
.wechat-banner svg { flex: none; }

/* ── Hero ── */
.hero {
  padding: 76px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(229, 192, 107, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 10%, #cfdcf5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fae2a3 0%, #d8ad51 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-cta .btn {
  padding: 13px 24px;
  font-size: 15px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Hero Visual Stage (Desktop + Phone Bridge) ── */
.stage-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(17, 28, 52, 0.94) 0%, rgba(8, 14, 28, 0.96) 100%);
  border: 1px solid rgba(229, 192, 107, 0.24);
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.stage-dots { display: flex; gap: 7px; }
.stage-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(148, 179, 230, 0.26);
}
.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-bg);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 600;
}
.stage-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

.stage-devices {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

.mock-pc, .mock-phone {
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.86);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-phone {
  border-color: rgba(229, 192, 107, 0.34);
  background: linear-gradient(180deg, rgba(15, 24, 46, 0.92), rgba(7, 12, 24, 0.95));
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.mock-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: #b7ceff;
}
.mock-tag-gold {
  background: var(--gold-bg);
  color: var(--gold-bright);
}

.mock-task {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 179, 230, 0.1);
}
.mock-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.mock-task-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.mock-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.mock-bubble-user {
  background: rgba(122, 162, 247, 0.16);
  color: #dbeafe;
  align-self: flex-end;
}
.mock-bubble-ai {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.mock-approve {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.mock-approve span {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.mock-approve .yes {
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}
.mock-approve .no {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* ── Sections ── */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.section-head p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-soft);
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(229, 192, 107, 0.32);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── Download Hub ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dl-card.recommended {
  background: var(--card-strong);
  border-color: var(--border-gold);
  box-shadow: 0 18px 50px rgba(229, 192, 107, 0.08);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(122, 162, 247, 0.12);
  border: 1px solid rgba(122, 162, 247, 0.22);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dl-card.recommended .dl-icon {
  background: var(--gold-bg);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}
.dl-brand h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.dl-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.rec-badge {
  display: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
}
.dl-card.recommended .rec-badge { display: inline-flex; }

.dl-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

.dl-steps {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
}
.dl-steps strong { color: var(--text); }

.dl-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.checksum-details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.checksum-details summary {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
}
.checksum-details summary:hover { color: var(--text-soft); }
.checksum-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(4, 8, 16, 0.72);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  word-break: break-all;
}

/* ── Pairing & QR Showcase ── */
.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 32px;
  align-items: center;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 29, 53, 0.92), rgba(9, 15, 29, 0.95));
  border: 1px solid var(--border-gold);
}
.qr-frame {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
}
.qr-frame img {
  width: 176px;
  height: 176px;
}
.qr-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.qr-panel p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-soft);
}
.qr-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
  background: rgba(4, 8, 16, 0.72);
  border: 1px solid var(--border);
}
.qr-url-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: #b7ceff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* ── Security Strip ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sec-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(11, 18, 34, 0.74);
  border: 1px solid var(--border);
}
.sec-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--gold-bright);
}
.sec-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ── Footer ── */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .pair-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-grid, .security-grid {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { min-height: 64px; gap: 10px; }
  .brand-sub { display: none; }
  .nav-actions .btn-outline { display: none; }
  .hero { padding: 42px 0 54px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15.5px; }
  .hero-cta .btn { width: 100%; }
  .stage-card { padding: 18px; }
  .stage-devices { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .dl-card, .feature-card { padding: 22px; }
  .dl-actions .btn { width: 100%; }
}
