:root {
  --notice-height: 44px;
  --bg: #f2f7ff;
  --surface: #ffffff;
  --surface-soft: #edf3ff;
  --text: #111a34;
  --text-secondary: #586688;
  --primary: #2e6bff;
  --primary-strong: #004de7;
  --accent: #17b2ff;
  --border: rgba(19, 46, 114, 0.14);
  --shadow: 0 26px 70px rgba(25, 60, 148, 0.18);
}

[data-theme="dark"] {
  --bg: #060b1a;
  --surface: #0f1731;
  --surface-soft: #131f42;
  --text: #eaf1ff;
  --text-secondary: #a9b6d9;
  --primary: #5f8dff;
  --primary-strong: #89adff;
  --accent: #58d2ff;
  --border: rgba(138, 164, 249, 0.25);
  --shadow: 0 28px 80px rgba(1, 6, 20, 0.65);
}

* {
  box-sizing: border-box;
}

/* Remove mobile browser tap flash/highlight on interactive elements. */
a,
button,
.btn,
.lang-toggle,
.theme-toggle,
.lang-option,
.back-to-top {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, #80a8ff40, transparent 30%),
    radial-gradient(circle at 88% 8%, #54d2ff29, transparent 35%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 96%, rgba(130, 156, 228, 0.07) 100%),
    linear-gradient(90deg, transparent 97%, rgba(130, 156, 228, 0.06) 100%);
  background-size: 100% 28px;
  z-index: -1;
}

body {
  padding-top: var(--notice-height);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-image-layer {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(6, 12, 31, 0.12), rgba(6, 12, 31, 0.38)),
    url("./_external/images.unsplash.com/photo-1518770660439-4636190af475.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: imagePulse 18s ease-in-out infinite;
}

.bg-city-layer {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(4, 10, 28, 0.06), rgba(4, 10, 28, 0.52)),
    url("./_external/images.unsplash.com/photo-1523961131990-5ea7c61b2107.avif");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.14;
}

.bg-gradient-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(39, 118, 255, 0.42), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(27, 201, 255, 0.3), transparent 32%),
    radial-gradient(circle at 50% 84%, rgba(68, 110, 255, 0.24), transparent 30%);
  animation: auroraMove 16s ease-in-out infinite alternate;
}

.tech-beams {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.tech-beams span {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(95, 210, 255, 0.55), transparent);
  filter: blur(0.2px);
  animation: beamMove 9s linear infinite;
}

.tech-beams span:nth-child(1) {
  left: 16%;
  animation-duration: 10s;
}

.tech-beams span:nth-child(2) {
  left: 49%;
  animation-duration: 8.2s;
  animation-delay: 1.4s;
}

.tech-beams span:nth-child(3) {
  left: 80%;
  animation-duration: 11.5s;
  animation-delay: 0.8s;
}

.orbital-rings {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.orbital-rings span {
  position: absolute;
  border: 1px solid rgba(131, 176, 255, 0.2);
  border-radius: 50%;
  animation: ringSpin 22s linear infinite;
}

.orbital-rings span:nth-child(1) {
  width: 460px;
  height: 460px;
  right: -130px;
  top: 90px;
}

.orbital-rings span:nth-child(2) {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: -40px;
  animation-direction: reverse;
  animation-duration: 18s;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.top-notice {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: linear-gradient(90deg, #ff6a3d, #ff3d67);
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, #fff);
  opacity: 0.24;
  animation: particleFloat linear infinite;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: var(--notice-height);
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(37, 106, 255, 0.45);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--text-secondary);
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.theme-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-selector {
  position: relative;
}

.lang-toggle {
  min-width: 88px;
  height: 42px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  -webkit-appearance: none;
}

.lang-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.lang-toggle::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.lang-selector.open .lang-toggle::after {
  transform: translateY(-20%) rotate(-135deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(18, 48, 128, 0.22);
  display: none;
  z-index: 35;
}

.lang-selector.open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  padding: 9px 10px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lang-option:hover,
.lang-option.active {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--text);
}

.hero {
  padding: 78px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.tag {
  display: inline-block;
  margin: 0 0 15px;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08;
}

.hero-desc {
  margin: 18px 0 20px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-metrics span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  min-width: 164px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  border-color: #2f6fff;
  background: #2f6fff;
  box-shadow: 0 8px 18px rgba(47, 111, 255, 0.28);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 96%, #f6f8ff);
  box-shadow: 0 6px 14px rgba(23, 43, 96, 0.06);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
}

.btn:focus,
.lang-toggle:focus,
.theme-toggle:focus,
.lang-option:focus,
.back-to-top:focus {
  outline: none;
}

.btn:focus:not(:focus-visible),
.lang-toggle:focus:not(:focus-visible),
.theme-toggle:focus:not(:focus-visible),
.lang-option:focus:not(:focus-visible),
.back-to-top:focus:not(:focus-visible) {
  box-shadow: none;
}

.hint {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatCard 6.5s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.hero-main-image {
  width: min(430px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 46px rgba(18, 55, 148, 0.34));
}

.glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.glow-1 {
  top: -30px;
  left: 18px;
  background: radial-gradient(circle, #62b4ff85 10%, transparent 66%);
}

.glow-2 {
  right: 4px;
  bottom: -22px;
  background: radial-gradient(circle, #4f7dff84 6%, transparent 68%);
}

.wallet-card {
  width: min(390px, 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--surface) 96%, #fff), var(--surface-soft));
  box-shadow: var(--shadow);
}

.wallet-title {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.wallet-amount {
  margin: 0 0 22px;
  font-size: 38px;
  font-weight: 800;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  color: var(--text-secondary);
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip-left {
  left: -10px;
  top: 42px;
}

.chip-right {
  right: -14px;
  top: 132px;
}

.chip-bottom {
  left: 24%;
  bottom: -16px;
}

section {
  padding: 48px 0;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 36px);
}

.trust {
  padding-top: 22px;
}

.trust-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-wrap span {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
  padding: 11px 8px;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 73, 167, 0.12);
}

.feature-item h3 {
  margin: 0 0 8px;
}

.feature-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.social-section {
  padding-top: 8px;
}

.social-subtitle {
  margin: -8px 0 20px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.social-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(30, 54, 112, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 73, 167, 0.14);
}

.social-image {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.social-content {
  padding: 16px 16px 18px;
}

.social-content h3 {
  margin: 0 0 8px;
}

.social-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.security-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(145deg, var(--surface), var(--surface-soft));
}

.security-wrap p {
  margin: 0;
  color: var(--text-secondary);
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.security-list li {
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  font-size: 14px;
  color: var(--text-secondary);
}

.download-panel {
  padding-top: 8px;
}

.download-wrap {
  border: 1px solid var(--border);
  border-radius: 22px;
  text-align: center;
  background: var(--surface);
  padding: 36px 16px;
}

.download-wrap p {
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.download-wrap .hero-actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(24, 45, 98, 0.16);
  border-radius: 999px;
  background: #1d2c55;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 43, 98, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 56;
  appearance: none;
  -webkit-appearance: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[data-theme="dark"] .back-to-top {
  background: #f3f7ff;
  color: #1a2a52;
  border-color: rgba(182, 203, 255, 0.42);
  box-shadow: 0 10px 24px rgba(5, 10, 26, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-55px) translateX(28px);
  }
  100% {
    transform: translateY(-120px) translateX(-14px);
  }
}

@keyframes imagePulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.27;
    transform: scale(1.03);
  }
}

@keyframes auroraMove {
  0% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, -1%, 0) scale(1.06);
  }
}

@keyframes beamMove {
  0% {
    transform: translateY(0) scaleY(0.85);
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  75% {
    opacity: 0.38;
  }
  100% {
    transform: translateY(32%) scaleY(1.08);
    opacity: 0;
  }
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-card {
    margin-top: 8px;
  }

  .feature-grid,
  .social-grid,
  .trust-wrap {
    grid-template-columns: 1fr;
  }

  .security-wrap {
    grid-template-columns: 1fr;
  }

  .float-chip {
    display: none;
  }

  .back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 700;
  }

  .tech-beams span:nth-child(2),
  .orbital-rings span:nth-child(1) {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-notice {
    font-size: 12px;
    line-height: 1.4;
    min-height: 0;
    padding: 8px 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hero {
    padding-top: 42px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .wallet-amount {
    font-size: 31px;
  }

  .download-wrap {
    padding: 28px 14px;
  }

  .lang-toggle {
    min-width: 80px;
    padding: 0 24px 0 10px;
  }

  .lang-icon {
    width: 24px;
    height: 24px;
  }

  .lang-menu {
    min-width: 128px;
    right: -2px;
  }

  .bg-city-layer {
    opacity: 0.1;
  }

  .tech-beams,
  .orbital-rings {
    opacity: 0.55;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }
}
