:root {
  --bg: #0b0d16;
  --ink: #f3f1ee;
  --muted: #a9a7b3;
  --orange: #ff7a1a;
  --red: #e2352b;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(14, 16, 28, 0.72);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--orange); }

/* The page carries both texts; html[data-lang] (set by lang.js) shows one. */
html[data-lang="en"] [lang="ru"],
html[data-lang="ru"] [lang="en"] { display: none !important; }

/* ---------- Link page ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 20px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("/assets/bg.webp") center 30% / cover no-repeat;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(11, 13, 22, 0.35), rgba(11, 13, 22, 0.92) 70%),
    linear-gradient(180deg, rgba(11, 13, 22, 0.2), var(--bg) 92%);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.icon {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
  border-radius: 38px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(255, 106, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.6);
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 .exo { color: var(--orange); }

.tagline {
  margin: 12px auto 30px;
  max-width: 340px;
  color: #d6d3dc;
}

.links { display: grid; gap: 14px; }

.store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store:hover,
.store:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.7);
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.25);
  outline: none;
}

.store svg { flex: none; width: 30px; height: 30px; }

.store small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

.store strong { display: block; font-size: 18px; line-height: 1.2; }

.store.soon { opacity: 0.6; pointer-events: none; }

.store .badge {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.foot {
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.foot a { color: var(--muted); }
.foot .mail { display: block; margin-top: 6px; }
.foot .copy { display: block; margin-top: 6px; opacity: 0.8; }
.foot a:hover { color: var(--ink); }

/* ---------- Text pages (privacy, 404) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 22px 64px;
}

.doc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--ink);
  text-decoration: none;
}

.doc-head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }

.doc-head span { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.doc h1 { font-size: 30px; letter-spacing: 0.02em; text-transform: none; }

.doc h2 { margin: 34px 0 8px; font-size: 20px; color: #fff; }

.doc p, .doc li { color: #dcd9e1; }

.doc ul { padding-left: 22px; }

.doc .meta { color: var(--muted); font-size: 14px; }

.doc .summary {
  margin: 22px 0 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 122, 26, 0.08);
}

.doc .summary p { margin: 0; color: var(--ink); }
