:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 215, 0, 0.12);
  --gold: #eab308;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --muted-dim: #6b7280;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 52px;
  --cta-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-tech {
  font-family: "Orbitron", "Inter", sans-serif;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 15%, rgba(234, 179, 8, 0.1), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(234, 179, 8, 0.06), transparent 26%),
    radial-gradient(circle at 50% 95%, rgba(255, 255, 255, 0.04), transparent 40%);
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.text-gold {
  background: linear-gradient(135deg, #fde047 0%, #eab308 48%, #a16207 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hidden {
  display: none !important;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fde68a;
  text-decoration: none;
  border: 1px solid rgba(234, 179, 8, 0.28);
  background: rgba(234, 179, 8, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav-group:active {
  transform: scale(0.96);
}

.nav-group:hover {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.45);
}

.nav-group-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-group-text {
  line-height: 1;
  letter-spacing: 0.02em;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fde047, #ca8a04);
  color: #000;
  font-weight: 900;
  font-size: 13px;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 16px) 16px calc(var(--cta-h) + var(--safe-bottom) + 12px);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 8px 0 20px;
}

.hero-badge {
  display: inline-block;
  align-self: center;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-badge strong {
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-desc {
  margin: 14px auto 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

.stat {
  padding: 11px 6px;
  border-radius: 14px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-dim);
}

.trust-list {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #d1d5db;
}

.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(234, 179, 8, 0.12);
  color: var(--gold);
  font-size: 13px;
}

.ticker {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border-left: 3px solid rgba(234, 179, 8, 0.45);
  font-size: 11px;
  color: #d1d5db;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.ticker-prefix {
  color: var(--gold);
  margin-right: 8px;
  font-weight: 700;
}

.footer-note {
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted-dim);
  line-height: 1.5;
}

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 70%, transparent);
}

.cta-inner {
  max-width: 420px;
  margin: 0 auto;
}

.cta-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted-dim);
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  font: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  background: linear-gradient(135deg, #fde047, #eab308 55%, #ca8a04);
  color: #111;
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.28);
}

.btn-primary.is-ready {
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(234, 179, 8, 0.28);
  }
  50% {
    box-shadow: 0 10px 36px rgba(234, 179, 8, 0.45);
  }
}

.btn-primary-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.btn-primary-sub {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 2px;
}

.btn-text-stack {
  text-align: center;
}

.btn-arrow {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.65;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}

.overlay.is-open {
  display: flex;
}

.wx-mask {
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  gap: 14px;
}

.wx-arrow {
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 34px;
  color: var(--gold);
  animation: bounce 1.2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.92);
}

@media (max-width: 767px) {
  .cta-bar .btn-primary {
    padding: 13px 16px;
  }

  .cta-bar .btn-primary-title {
    font-size: 16px;
  }
}
