:root {
  --blue: #1078ef;
  --blue-dark: #0d5fcc;
  --blue-deep: #0b4ea8;
  --blue-soft: #e8f3ff;
  --blue-tint: #f3f8ff;
  --gold: #c9a227;
  --ink: #0b1b33;
  --ink-2: #3d4c63;
  --muted: #6b7a90;
  --line: #d7e3f2;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(16, 120, 239, 0.12);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(16, 120, 239, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(61, 154, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf4ff 0%, #f7fbff 38%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(247, 251, 255, 0.82);
  border-bottom: 1px solid rgba(215, 227, 242, 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(16, 120, 239, 0.28);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang button.active {
  background: var(--blue);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 36px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 120, 239, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(16, 120, 239, 0.18);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--blue);
}

.lead {
  margin: 0 0 28px;
  max-width: 540px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3d9aff, var(--blue) 48%, var(--blue-dark));
  box-shadow: 0 14px 28px rgba(16, 120, 239, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 32px rgba(16, 120, 239, 0.36);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-ghost.is-disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--muted);
  font-size: 14px;
}

.download-panel {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(215, 227, 242, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.qr-box canvas,
.qr-box img {
  width: 140px;
  height: 140px;
}

.qr-copy {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.qr-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.phone {
  width: min(320px, 100%);
  aspect-ratio: 9 / 19.2;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1a2333, #0b1b33);
  box-shadow:
    0 40px 80px rgba(11, 27, 51, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 10px;
  border-radius: 999px;
  background: #0b1b33;
  transform: translateX(-50%);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: #fff;
}

.features {
  padding: 28px 0 64px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 120, 239, 0.05);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.howto {
  padding: 0 0 72px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, var(--blue-tint));
  border: 1px solid var(--line);
}

.step b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(11, 27, 51, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .grid,
  .steps,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .phone {
    width: min(260px, 78vw);
  }
}
