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

:root {
  color-scheme: dark;
  --bg: #08080f;
  --panel: #111120;
  --panel-2: #17172a;
  --line: #2a2840;
  --text: #f5f3ff;
  --muted: #aaa6c8;
  --soft: #77718f;
  --primary: #b500ff;
  --primary-2: #7c3aed;
  --ok: #22c55e;
  --danger: #fb7185;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.download-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.download-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 15, 0.9);
  backdrop-filter: blur(18px);
}

.download-nav-inner,
.download-main,
.download-footer-inner {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.download-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.download-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: block;
}

.download-brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.download-brand-sub {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.1;
}

.download-nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.download-main {
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.download-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.download-copy {
  min-width: 0;
}

.download-kicker {
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.download-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.download-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 28px;
}

.download-app-icon {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 60px rgba(181, 0, 255, 0.25);
}

.download-card h2 {
  margin: 22px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.download-meta {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.download-status {
  margin-top: 18px;
  min-height: 24px;
  color: var(--soft);
  font-size: 14px;
}

.download-status.ok {
  color: var(--ok);
}

.download-status.error {
  color: var(--danger);
}

.download-methods {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.download-method-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.download-method-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.download-method-meta {
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.download-method-button,
.google-play-button {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.download-method-button {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.download-method-button:not(:disabled):hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

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

.google-play-button {
  display: grid;
  align-content: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  min-height: 0;
}

.google-play-button:hover {
  transform: translateY(-1px);
}

.google-play-badge {
  display: block;
  width: min(100%, 232px);
  height: auto;
}

.google-play-button-fallback {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050509;
}

.google-play-button-fallback:hover {
  background: #111118;
}

.google-play-button span {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.google-play-button strong {
  display: none;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.google-play-button-fallback span,
.google-play-button-fallback strong {
  display: block;
}

.download-button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.download-button:not(:disabled):hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

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

.download-note {
  margin-top: 16px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.download-footer {
  border-top: 1px solid var(--line);
}

.download-footer-inner {
  min-height: 68px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--soft);
  font-size: 13px;
}

.download-footer-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.download-footer-links {
  display: flex;
  gap: 16px;
}

.download-filing-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.download-filing-links a {
  color: var(--soft);
}

.download-police-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-police-filing img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .download-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .download-main {
    align-items: start;
    padding: 42px 0;
  }

  .download-copy h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .download-copy p {
    font-size: 16px;
  }

  .download-card {
    padding: 22px;
  }

  .download-footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-filing-links {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }
}
