/* Страница скачивания NE Messenger: чёрно-белая, минимум текста, живой фон на canvas. */
@font-face {
  font-family: 'Manrope';
  font-weight: 400 800;
  font-display: swap;
  src: url(manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-weight: 400 800;
  font-display: swap;
  src: url(manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font: 16px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 96px;
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(88px, 22vw, 200px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.06em;
}

.lead {
  margin: 18px 0 44px;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  letter-spacing: .02em;
}

.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 64px;
  padding: 10px 28px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border: 1px solid #fff;
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background-color .25s ease, color .25s ease;
}
.dl--ghost {
  background: rgba(0, 0, 0, .35);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dl:hover { transform: translateY(-2px); }
.dl:active { transform: scale(.97); }
.dl--ghost:hover { background: #fff; color: #000; }
.dl:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.dl[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.dl__name { font-weight: 800; font-size: 17px; }
.dl__meta { font-size: 12px; opacity: .6; }

.sums {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  text-align: center;
}
.sums summary { cursor: pointer; list-style: none; padding: 10px; display: inline-block; }
.sums summary::-webkit-details-marker { display: none; }
.sums summary:hover { color: #fff; }
.sums dl {
  margin: 4px 0 0;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  background: rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sums dt { color: rgba(255, 255, 255, .55); }
.sums dt + dd { margin: 2px 0 10px; color: #fff; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .title { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .lead { animation: rise 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
  .downloads { animation: rise 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
}

/* Тёмный ореол за текстом, чтобы точки сферы не мешали читать */
.page::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 120vw);
  height: min(560px, 90vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .72), transparent);
  pointer-events: none;
  z-index: -1;
}
.page { z-index: 0; }
.lead, .dl--ghost .dl__meta { text-shadow: 0 0 10px #000; }
.dl--ghost { background: rgba(0, 0, 0, .6); }

.ios-hint { margin: 22px auto 0; max-width: 320px; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.5; text-shadow: 0 0 10px #000; }
