:root {
  color-scheme: dark;
  --ink: #f7f9fc;
  --muted: #9ba8bc;
  --panel: rgba(20, 31, 49, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #45e3a6;
  --accent-deep: #1fc98d;
  --page: #08101d;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 117, 255, 0.16), transparent 31rem),
    linear-gradient(155deg, #0c1728 0%, #08101d 48%, #070d17 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  opacity: .48;
}

.ambient-one {
  top: -10rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(69, 227, 166, .36), transparent 68%);
}

.ambient-two {
  bottom: 6rem;
  left: -13rem;
  background: radial-gradient(circle, rgba(65, 124, 255, .25), transparent 68%);
}

.download-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: calc(1.25rem + env(safe-area-inset-top)) 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
}

.brand-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(3.25rem, 12vw, 5.5rem);
}

.app-mark,
.empty-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1rem;
  color: #06120e;
  background: linear-gradient(145deg, #79f2c3, #2bd295);
  box-shadow: 0 10px 28px rgba(39, 206, 145, .22);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-row strong,
.brand-row span { display: block; }
.brand-row strong { font-size: .98rem; letter-spacing: .03em; }
.brand-row span { margin-top: .16rem; color: var(--muted); font-size: .72rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow span {
  width: 1.5rem;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.hero h1,
.empty-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 30rem;
  margin: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.release-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.release-card::before {
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 4.5rem;
  height: 2px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.version-label,
.release-notes > span,
.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
}

.release-head h2 {
  margin: .25rem 0 0;
  font-size: 1.8rem;
  letter-spacing: -.03em;
}

.latest-badge {
  padding: .42rem .7rem;
  border: 1px solid rgba(69, 227, 166, .28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(69, 227, 166, .08);
  font-size: .72rem;
  font-weight: 800;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: .75rem;
  margin: 1.25rem 0;
}

.meta-grid div {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .025);
}

.meta-grid strong {
  display: block;
  overflow: hidden;
  margin-top: .38rem;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-notes {
  padding: .2rem .1rem 1.1rem;
}

.release-notes p {
  margin: .45rem 0 0;
  color: #dce3ee;
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre-line;
}

.download-button,
.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.65rem;
  border-radius: 1.05rem;
  color: #05110d;
  background: linear-gradient(135deg, #70edbd, var(--accent-deep));
  box-shadow: 0 16px 34px rgba(31, 201, 141, .22);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.download-button:active,
.refresh-button:active { transform: scale(.98); filter: brightness(.94); }
.download-button svg { width: 1.35rem; height: 1.35rem; }

.install-tip {
  margin: .9rem .35rem 0;
  color: #7f8da2;
  font-size: .72rem;
  line-height: 1.6;
  text-align: center;
}

.assurance {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.assurance > div {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.assurance-icon {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}

.assurance p,
.assurance strong,
.assurance small { display: block; margin: 0; }
.assurance strong { font-size: .84rem; }
.assurance small { margin-top: .3rem; color: var(--muted); font-size: .72rem; }

.checksum {
  margin-top: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(5, 10, 18, .38);
  font-size: .76rem;
}

.checksum summary { cursor: pointer; color: #c5cfdd; font-weight: 700; }
.checksum code { display: block; overflow-wrap: anywhere; margin-top: .75rem; line-height: 1.65; }

.empty-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--panel);
  text-align: center;
}

.empty-icon { margin: 0 auto 1.5rem; }
.empty-card .eyebrow { justify-content: center; }
.empty-card h1 { font-size: 2.25rem; }
.empty-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.refresh-button { max-width: 16rem; margin: 1.5rem auto 0; }

footer {
  padding: 2.5rem 0 .5rem;
  color: #657287;
  text-align: center;
}

footer span { font-size: .66rem; font-weight: 900; letter-spacing: .25em; }
footer p { margin: .45rem 0 0; font-size: .68rem; }

@media (min-width: 42rem) {
  .download-shell { padding-right: 2rem; padding-left: 2rem; }
  .release-card { padding: 1.75rem; }
  .assurance { grid-template-columns: 1fr 1fr; }
  .assurance > div { border: 1px solid var(--line); border-radius: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .release-card { animation: rise .55s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
