:root {
  --bg: #0f172a;
  --card: rgba(15, 23, 42, 0.86);
  --card2: rgba(30, 41, 59, 0.82);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #38bdf8;
  --accent2: #22c55e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.24), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 48%, #111827);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px) 0 36px;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card), var(--card2));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 28px;
}

.hero-card {
  padding: clamp(20px, 3.6vw, 32px);
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #22c55e);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.brand-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 56px) 4px 4px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  color: #d7f8ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  background: rgba(56, 189, 248, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.desc {
  width: min(680px, 100%);
  margin: 18px auto 0;
  color: #cbd5e1;
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.8;
}

.quick-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 22px;
}

.quick-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

.cta-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 28px;
  background: rgba(7, 16, 30, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cta-copy {
  margin-bottom: 14px;
  color: #f8fafc;
  font-size: clamp(16px, 2.3vw, 20px);
  font-weight: 800;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 16px 24px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #031525;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(56, 189, 248, 0.3);
}

.android-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.ios-btn {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  color: #0f172a;
  box-shadow: 0 18px 46px rgba(148, 163, 184, 0.22);
}

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

.install-tip {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: left;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  margin-top: 26px;
}

footer a {
  color: #bfdbfe;
  text-decoration: none;
}

.mobile-download-bar {
  display: none;
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 112px;
  }

  .hero-card {
    border-radius: 22px;
  }

  .logo-dot {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 16px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-desc {
    font-size: 13px;
  }

  .hero-content {
    text-align: left;
  }

  .desc {
    margin-left: 0;
  }

  .quick-badges {
    justify-content: flex-start;
  }

  .quick-badges {
    gap: 8px;
  }

  .quick-badges span {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .cta-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .cta-copy {
    font-size: 18px;
    text-align: left;
  }

  .download-btn {
    min-height: 68px;
    border-radius: 18px;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .mobile-download-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding:
      12px
      max(14px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(18px);
  }

  .mobile-download-meta {
    min-width: 0;
    flex: 1;
  }

  .mobile-download-meta strong,
  .mobile-download-meta span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-download-meta strong {
    color: #f8fafc;
    font-size: 15px;
  }

  .mobile-download-meta span {
    color: #cbd5e1;
    font-size: 12px;
  }

  .mobile-download-actions {
    display: flex;
    gap: 10px;
  }

  .mobile-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #031525;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.24);
  }

  .ios-mini-btn {
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.18);
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .quick-badges span {
    width: 100%;
    justify-content: center;
  }

  footer {
    gap: 8px;
    font-size: 14px;
  }

  .install-tip {
    font-size: 14px;
  }

  .mobile-download-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-download-actions {
    width: 100%;
  }

  .mobile-download-btn {
    flex: 1;
  }
}
