/* HYPER CLIENT — сайт. Палитра повторяет тёмную тему приложения
   (lib/pages/theme/color.dart): глубокий синий, cyan для действий,
   золото — бренд и состояние «Подключено». */

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --card: rgba(11, 17, 31, 0.74);
  --card-solid: #0d1424;
  --line: rgba(130, 160, 210, 0.14);
  --line-strong: #25324a;
  --fg: #e8eef7;
  --muted: #93a3bc;
  --muted-strong: #b9c6d8;
  --cyan: #4cc9f0;
  --cyan-2: #7ad8f5;
  --cyan-solid: #0a75b0;
  --gold: #ffc93c;
  --gold-2: #ffd75e;
  --violet: #9d7bff;
  --mint: #57e0c0;
  --red: #ff5f6d;
  --orange: #ff9f43;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 20px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); }
p a { text-decoration: underline; text-decoration-color: rgba(76, 201, 240, 0.35); text-underline-offset: 3px; }
b, strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(76, 201, 240, 0.3); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - var(--gutter) * 2); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1200; padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Фон ---------- */

.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.nebula {
  position: absolute; border-radius: 50%;
  transition: opacity 1.6s ease;
  will-change: transform;
}
.nebula-a {
  width: 80vmax; height: 80vmax; left: -30vmax; top: -35vmax;
  background: radial-gradient(closest-side, rgba(76, 201, 240, 0.16), rgba(76, 201, 240, 0.04) 55%, transparent);
  animation: drift-a 46s ease-in-out infinite alternate;
}
.nebula-b {
  width: 70vmax; height: 70vmax; right: -32vmax; top: 10vh;
  background: radial-gradient(closest-side, rgba(157, 123, 255, 0.13), rgba(157, 123, 255, 0.03) 60%, transparent);
  animation: drift-b 58s ease-in-out infinite alternate;
}
.nebula-c {
  width: 60vmax; height: 60vmax; left: 20vw; bottom: -40vmax;
  background: radial-gradient(closest-side, rgba(255, 201, 60, 0.10), rgba(255, 201, 60, 0.02) 60%, transparent);
  opacity: 0.55;
  animation: drift-c 52s ease-in-out infinite alternate;
}
html.warm .nebula-c { opacity: 1; }
html.warm .nebula-a { opacity: 0.6; }

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(3, 5, 10, 0.65) 100%);
}

@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-10vmax, 8vmax) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-6vmax, -10vmax) scale(1.06); } }

/* ---------- Навигация ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  color: var(--gold); white-space: nowrap;
}
.brand:hover { color: var(--gold-2); }
.brand-mark { width: 32px; height: 32px; }

.bm-ring { fill: none; stroke: var(--cyan); stroke-width: 4.5; }
.bm-sat { fill: var(--cyan); filter: drop-shadow(0 0 4px rgba(76, 201, 240, 0.9)); }
.bm-star { color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 201, 60, 0.55)); }
.bm-orbit { transform-origin: 50px 50px; animation: spin 14s linear infinite; }
.brand:hover .bm-orbit { animation-duration: 2.4s; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted-strong); font-size: 14.5px; font-weight: 500; white-space: nowrap;
  padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: var(--muted-strong); font-size: 20px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.nav-toggle { display: none; }

/* ---------- Кнопки ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  border-radius: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, background 0.2s, border-color 0.2s, color 0.2s;
  overflow: hidden; isolation: isolate;
}
.btn .i { font-size: 1.15em; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 14px 22px; font-size: 16px; min-height: 58px; }

.btn-gold {
  color: #1a1200;
  background: linear-gradient(180deg, #ffdd73, #ffc93c 55%, #f5b81f);
  box-shadow: 0 10px 34px -10px rgba(255, 201, 60, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-gold:hover { color: #1a1200; transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255, 201, 60, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(76, 201, 240, 0.55); background: rgba(76, 201, 240, 0.06); transform: translateY(-2px); }

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.btn-stack small { font-size: 12px; font-weight: 500; opacity: 0.72; }

/* ---------- Hero ---------- */

.hero { min-height: 100svh; display: flex; align-items: center; padding: 112px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }

.news {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted-strong);
  border: 1px solid var(--line-strong); background: rgba(13, 20, 36, 0.6);
  transition: border-color 0.2s, color 0.2s;
}
.news:hover { color: var(--fg); border-color: rgba(255, 201, 60, 0.5); }
.news .i { font-size: 14px; transition: transform 0.2s; }
.news:hover .i { transform: translateX(3px); }
.news-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.6); animation: ping 2.2s ease-out infinite;
}

.hero-title { margin: 26px 0 0; font-weight: 400; }
.wordmark {
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 0.95; letter-spacing: -0.02em;
}
.wordmark > span {
  display: block; width: fit-content;
  background: linear-gradient(100deg, #f4f8ff 0%, #f4f8ff 30%, #ffe6a3 45%, #ffc93c 52%, #f4f8ff 66%, #f4f8ff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}
.wordmark > span:nth-child(2) { animation-delay: -0.6s; position: relative; padding-right: 0.62em; }
.wm-star {
  position: absolute; right: 0; top: -0.06em; width: 0.5em; height: 0.5em;
  color: var(--gold); filter: drop-shadow(0 0 14px rgba(255, 201, 60, 0.75));
  animation: twinkle 4s ease-in-out infinite;
}
.tagline {
  display: block; margin-top: 22px; max-width: 22em;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em;
  color: var(--fg); text-wrap: balance;
}
.lead { margin: 16px 0 0; max-width: 34em; color: var(--muted); font-size: 1.06rem; }
.hl-mint { color: var(--mint); }
.hl-violet { color: var(--violet); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { color: var(--mint); font-size: 15px; }

@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.82) rotate(45deg); opacity: 0.85; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(255, 201, 60, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Живой макет клиента ---------- */

.hero-demo { position: relative; perspective: 1400px; }
.demo-hint {
  position: absolute; z-index: 3; left: 0; right: 0; top: -40px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--gold-2);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
  pointer-events: none;
}
.demo-hint .i { font-size: 15px; animation: nudge 1.6s ease-in-out infinite; }
.demo-hint.hide { opacity: 0; transform: translateY(8px); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.app-window {
  --accent: var(--cyan);
  --accent-soft: rgba(76, 201, 240, 0.35);
  --star: rgba(200, 220, 255, 0.75);
  position: relative; margin-left: auto; max-width: 600px;
  border-radius: 14px; overflow: hidden;
  background: var(--bg);
  border: 1px solid #22304a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px rgba(76, 201, 240, 0.35);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 1s ease;
  font-size: 12px; line-height: 1.35;
  user-select: none;
}
.app-window[data-state="connected"] {
  --accent: var(--gold);
  --accent-soft: rgba(255, 201, 60, 0.4);
  --star: rgba(255, 201, 60, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 110px -16px rgba(255, 201, 60, 0.42);
}

.aw-title {
  height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: #070c16; border-bottom: 1px solid #141e31;
}
.aw-brand { font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--gold); letter-spacing: 0.02em; }
.aw-ver { color: var(--muted); font-size: 11px; }
.aw-ctrls { margin-left: auto; display: flex; gap: 20px; color: var(--muted); font-size: 13px; }
.aw-ctrls .i { stroke-width: 1.5; }

.aw-body { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
.aw-side {
  background: #0a1020; border-right: 1px solid #172238;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0;
}
.aw-logo { width: 30px; height: 30px; margin-bottom: 14px; }
.aw-nav {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  color: var(--muted); font-size: 17px; border: 1px solid transparent;
}
.aw-nav.is-active { color: var(--cyan); border-color: rgba(76, 201, 240, 0.45); background: #0f1d33; }

.aw-home {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 16px 14px;
}
.aw-stars { position: absolute; inset: 0 0 52% 0; pointer-events: none; }
.aw-stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--star); transition: background 0.9s ease, opacity 0.9s ease;
}
.aw-home > *:not(.aw-stars):not(.aw-toast) { position: relative; }

.aw-seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #0a1120;
}
.aw-seg button {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--muted-strong);
  transition: background 0.25s, color 0.25s;
}
.aw-seg button[aria-checked="true"] { background: var(--cyan-solid); color: #fff; }
.aw-seg button:not([aria-checked="true"]):hover { color: var(--fg); }

.aw-stats {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.aw-speed { display: inline-flex; align-items: center; gap: 4px; }
.aw-speed:last-child { justify-self: end; }
.aw-speed .up { color: var(--gold); }
.aw-speed .down { color: var(--cyan); }
.aw-clock { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.aw-clock > span { display: inline-flex; align-items: center; gap: 4px; }
.aw-clock small { color: var(--muted); font-size: 10px; font-weight: 500; }

.aw-orb-wrap { position: relative; width: 148px; height: 148px; margin-top: 2px; }
.aw-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aw-orbit .ring { fill: none; stroke: var(--accent); stroke-opacity: 0.32; stroke-width: 1.4; transition: stroke 0.6s ease; }
.aw-orbit .sat { transform-origin: 100px 100px; animation: spin 16s linear infinite; }
.aw-orbit .sat circle { fill: var(--accent); transition: fill 0.6s ease; filter: drop-shadow(0 0 5px var(--accent)); }
.app-window[data-state="connecting"] .aw-orbit .sat { animation-duration: 1.6s; }
.app-window[data-state="connected"] .aw-orbit .ring { stroke-opacity: 0.55; }

.aw-orb {
  position: absolute; inset: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card-solid);
  border: 2px solid var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 26px 1px rgba(76, 201, 240, 0.14);
  transition: border-color 0.4s ease, box-shadow 0.6s ease, color 0.4s ease, transform 0.2s var(--ease);
}
.aw-orb:hover { transform: scale(1.04); box-shadow: 0 0 34px 4px rgba(76, 201, 240, 0.25); }
.aw-orb:active { transform: scale(0.97); }
.aw-orb .orb-power { width: 38px; height: 38px; transition: opacity 0.2s; }
.orb-spin {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--accent); border-right-color: transparent;
  opacity: 0; animation: spin 0.8s linear infinite;
}
.app-window[data-state="connecting"] .orb-power { opacity: 0; }
.app-window[data-state="connecting"] .orb-spin { opacity: 1; }
.app-window[data-state="connected"] .aw-orb {
  border-color: var(--gold);
  box-shadow: 0 0 48px 6px rgba(255, 201, 60, 0.42);
}
.app-window[data-state="idle"] .aw-orb { animation: orb-breathe 2.8s ease-in-out infinite; }
@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 22px 0 rgba(76, 201, 240, 0.12); }
  50% { box-shadow: 0 0 34px 6px rgba(76, 201, 240, 0.3); }
}

.aw-status { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--muted-strong); transition: color 0.4s; }
.app-window[data-state="connecting"] .aw-status { color: var(--cyan); }
.app-window[data-state="connected"] .aw-status { color: var(--gold); }
.app-window[data-state="blocked"] .aw-status { color: var(--red); }

.aw-node { margin: 8px 0 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.aw-node img { border-radius: 3px; }
.aw-node b { font-size: 13px; transition: color 0.4s; }
.app-window[data-state="connected"] .aw-node b { color: var(--gold); }
.aw-node small { color: var(--muted); font-size: 11px; }

.aw-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.aw-link { font-size: 12px; font-weight: 600; color: var(--cyan); display: inline-flex; gap: 6px; align-items: center; }
.aw-link:hover { color: var(--cyan-2); }
.aw-link b { color: var(--gold); font-weight: 600; }
.aw-link b.fail { color: var(--red); }
.aw-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #0b1222; font-size: 11px; font-weight: 600;
  transition: border-color 0.2s;
}
.aw-pill:hover { border-color: rgba(76, 201, 240, 0.5); }
.aw-pill .i:first-child { color: var(--cyan); }

.aw-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 32px; gap: 7px; margin-top: 10px; }
.aw-btn {
  height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; border: 1px solid var(--line-strong); background: #0b1222;
  font-weight: 600; font-size: 11.5px;
}
.aw-btn.primary { border-color: rgba(76, 201, 240, 0.35); background: #0b1f33; color: var(--cyan-2); }

.aw-auto {
  width: 100%; margin-top: 8px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: #0a1120;
}
.aw-auto .i { color: var(--cyan); font-size: 15px; }
.aw-auto span { display: flex; flex-direction: column; }
.aw-auto small { color: var(--muted); font-size: 10.5px; }

.aw-group { width: 100%; margin-top: 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: #0a1120; padding: 4px; }
.aw-group-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.aw-group-head .chev { color: var(--muted); font-size: 13px; }
.aw-group-head .star { color: var(--orange); font-size: 14px; }
.aw-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(76, 201, 240, 0.5); color: var(--cyan); font-size: 10px; font-weight: 600;
}
.aw-nodes { display: flex; flex-direction: column; gap: 3px; }
.aw-node-row {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 6px 9px; border-radius: 8px; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.3s;
}
.aw-node-row:hover { background: #111a2c; }
.aw-node-row img { border-radius: 4px; width: 22px; height: 22px; }
.aw-node-row[aria-selected="true"] { border-color: rgba(76, 201, 240, 0.45); background: #101b2e; }
.app-window[data-state="connected"] .aw-node-row[aria-selected="true"] { border-color: rgba(255, 201, 60, 0.6); background: #17150c; }
.nr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nr-main b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 4px; color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; }
.tags i { font-style: normal; }
.t-cyan { color: var(--cyan); }
.t-gold { color: var(--gold); }
.t-mint { color: var(--mint); }
.t-violet { color: var(--violet); }
.nr-ping { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); font-size: 11px; font-weight: 600; }
.nr-ping i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.aw-toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 5;
  transform: translate(-50%, 14px); opacity: 0;
  max-width: calc(100% - 32px); width: max-content;
  padding: 8px 12px; border-radius: 10px;
  background: #16203a; border: 1px solid #2c3a52; color: var(--fg);
  font-size: 11.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  pointer-events: none;
}
.aw-toast.show { opacity: 1; transform: translate(-50%, 0); }
.aw-toast b { color: var(--gold); }

/* ---------- Бегущая строка ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(8, 13, 25, 0.55);
  overflow: hidden; padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee-list li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--muted-strong); letter-spacing: 0.01em;
}
.marquee-list li::after {
  content: ""; width: 10px; height: 10px; margin: 0 34px;
  background: var(--gold); opacity: 0.7;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.marquee-list li.gold { color: var(--gold); }
.marquee-list li.mint { color: var(--mint); }
.marquee-list li.violet { color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */

.section { padding: clamp(84px, 11vw, 140px) 0 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.kicker .i { font-size: 11px; }
.section-head h2, .download h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem); line-height: 1.14; letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-head p:not(.kicker) { margin: 18px auto 0; color: var(--muted); font-size: 1.06rem; max-width: 46em; text-wrap: pretty; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Карточки ---------- */

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(76, 201, 240, 0.07), transparent 45%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(122, 216, 245, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { margin: 0; font-size: 1.24rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 10px 0 0; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px !important;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-strong) !important;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.gold { color: var(--gold) !important; }
.status.mint { color: var(--mint) !important; }
.status.violet { color: var(--violet) !important; }
.status.cyan { color: var(--cyan) !important; }
.status:has(.live-dot)::before { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: ping-cyan 2s ease-out infinite; }
@keyframes ping-cyan { 0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(76, 201, 240, 0); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-family: var(--mono);
  border: 1px solid var(--line-strong); color: var(--muted-strong); background: rgba(255, 255, 255, 0.02);
}
.chips li.gold { color: var(--gold); border-color: rgba(255, 201, 60, 0.35); }

/* ---------- Зачем: дуэль импорта ---------- */

.import-duel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.import-card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  padding: 22px; display: flex; flex-direction: column;
}
.import-card.hc { border-color: rgba(255, 201, 60, 0.28); box-shadow: 0 0 60px -30px rgba(255, 201, 60, 0.5); }
.import-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.ic-title { font-weight: 650; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.hc .ic-title { color: var(--gold); }
.hc .ic-title .i { font-size: 13px; }
.ic-sub { color: var(--muted); font-size: 13px; }

.import-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 236px; }
.import-lines li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.04);
  max-height: 60px;
  transition: opacity 0.45s ease, transform 0.45s var(--ease), max-height 0.5s ease 0.15s, padding 0.5s ease 0.15s, margin 0.5s ease 0.15s, border-color 0.4s;
}
.import-lines code { color: var(--muted-strong); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-lines .res { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.import-lines .res .i { font-size: 13px; }
.import-lines li[data-tone="mint"] .res { color: var(--mint); }
.import-lines li[data-tone="violet"] .res { color: var(--violet); }
.js .import-card .import-lines li { opacity: 0; transform: translateX(-10px); }
.js .import-card .import-lines li.shown { opacity: 1; transform: none; }
.js .import-card .import-lines li.gone {
  opacity: 0; transform: translateY(8px) scale(0.98); max-height: 0; padding-block: 0; margin-top: -6px; border-color: transparent;
}
.import-card footer { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.sum { font-weight: 650; font-size: 1.02rem; }
.sum.bad { color: var(--muted-strong); }
.sum.good { color: var(--gold); }
.import-card .hint { color: var(--muted); font-size: 13.5px; }
.js .import-card footer { opacity: 0; transition: opacity 0.6s ease; }
.js .import-card footer.shown { opacity: 1; }

/* ---------- Протоколы ---------- */

.proto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proto { padding: 0; display: flex; flex-direction: column; }
.proto-body { padding: 22px 24px 26px; }
.proto-visual {
  position: relative; height: 196px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(76, 201, 240, 0.08), transparent 60%),
    linear-gradient(rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px;
}

/* Xray: орбиты */
.orbit-visual { display: grid; place-items: center; }
.ov-core {
  position: absolute; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 12px; color: #04121b;
  background: radial-gradient(circle at 35% 30%, #b7ecfb, var(--cyan));
  box-shadow: 0 0 40px rgba(76, 201, 240, 0.55);
}
.ov-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(122, 216, 245, 0.28); animation: spin 36s linear infinite; }
.ov-ring.r1 { width: 132px; height: 132px; --r: 66px; }
.ov-ring.r2 { width: 236px; height: 236px; --r: 118px; animation-duration: 56s; animation-direction: reverse; }
.ov-ring span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.ov-ring span:nth-child(1) { --a: 0deg; }
.ov-ring span:nth-child(2) { --a: 120deg; }
.ov-ring span:nth-child(3) { --a: 240deg; }
.ov-ring.r2 span:nth-child(1) { --a: 60deg; }
.ov-ring.r2 span:nth-child(2) { --a: 180deg; }
.ov-ring.r2 span:nth-child(3) { --a: 300deg; }
/* Подпись крутится навстречу кольцу и остаётся горизонтальной. */
.ov-ring i {
  display: block; font-style: normal;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
  background: #0d1729; border: 1px solid rgba(122, 216, 245, 0.35); color: var(--cyan-2);
  animation: spin 36s linear infinite reverse;
}
.ov-ring.r2 i { animation: spin 56s linear infinite; color: var(--muted-strong); border-color: var(--line-strong); }

/* minewire: пиксельные блоки в трубе */
.mw-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(87, 224, 192, 0.09), transparent 60%),
    linear-gradient(rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px;
}
.mw-pipe {
  position: relative; width: 84%; height: 56px; border-radius: 14px;
  border: 1px dashed rgba(87, 224, 192, 0.45); background: rgba(87, 224, 192, 0.04); overflow: hidden;
}
.mw-label { position: absolute; top: 6px; left: 12px; z-index: 1; font-family: var(--mono); font-size: 10.5px; color: var(--mint); opacity: 0.85; }
.mw-blocks { position: absolute; inset: 0; }
.mw-blocks i {
  position: absolute; top: 24px; left: -24px; width: 18px; height: 18px;
  image-rendering: pixelated;
  background:
    linear-gradient(var(--c1) 0 0) 0 0 / 100% 33% no-repeat,
    linear-gradient(var(--c2) 0 0) 0 100% / 100% 67% no-repeat;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 3px 3px 0 rgba(255, 255, 255, 0.12);
  animation: mw-travel var(--t, 4.4s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes mw-travel {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(calc(var(--w, 300px) * 0.25)) translateY(-3px); }
  50% { transform: translateX(calc(var(--w, 300px) * 0.5)) translateY(0); }
  75% { transform: translateX(calc(var(--w, 300px) * 0.75)) translateY(-3px); }
  100% { transform: translateX(var(--w, 300px)) translateY(0); }
}
.mw-caption { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted-strong); }
.mw-caption span { color: var(--muted); }

/* AmneziaWG: лента пакетов */
.awg-visual { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(157, 123, 255, 0.1), transparent 60%),
    linear-gradient(rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(130, 160, 210, 0.05) 1px, transparent 1px) 0 0 / 22px 22px;
}
.awg-lane {
  position: relative; height: 46px; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(157, 123, 255, 0.3); background: rgba(157, 123, 255, 0.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.awg-strip { position: absolute; top: 9px; left: 0; display: flex; gap: 5px; width: max-content; animation: awg-flow 14s linear infinite; }
.awg-strip i { height: 26px; border-radius: 4px; flex: none; }
.awg-strip .k-junk { background: repeating-linear-gradient(135deg, #4a5670 0 4px, #364056 4px 8px); }
.awg-strip .k-imit { background: var(--violet); opacity: 0.85; }
.awg-strip .k-hs { background: linear-gradient(90deg, var(--gold) 0 62%, repeating-linear-gradient(90deg, rgba(255, 201, 60, 0.45) 0 3px, transparent 3px 6px) 62% 100%); }
.awg-strip .k-data { background: linear-gradient(90deg, var(--h, #f472b6) 0 7px, var(--cyan) 7px); opacity: 0.9; }
@keyframes awg-flow { to { transform: translateX(-50%); } }
.awg-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted-strong); }
.awg-legend li { display: flex; align-items: center; gap: 8px; }
.awg-legend i { width: 18px; height: 10px; border-radius: 3px; flex: none; }
.awg-legend .k-junk { background: repeating-linear-gradient(135deg, #4a5670 0 3px, #364056 3px 6px); }
.awg-legend .k-imit { background: var(--violet); }
.awg-legend .k-hs { background: var(--gold); }
.awg-legend .k-data { background: linear-gradient(90deg, #f472b6 0 5px, var(--cyan) 5px); }

.link-format {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; overflow-x: auto;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); color: var(--muted-strong); font-size: 12.5px;
}
.lf-s { color: var(--mint); }
.lf-q { color: var(--muted); }

/* Архитектура */
.arch {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: stretch;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 13, 25, 0.6);
}
.arch-node { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 6px 4px; }
.arch-node .i { grid-row: span 2; font-size: 22px; color: var(--cyan); width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(76, 201, 240, 0.08); border: 1px solid rgba(76, 201, 240, 0.22); }
.arch-node.gold .i { color: var(--gold); background: rgba(255, 201, 60, 0.08); border-color: rgba(255, 201, 60, 0.25); }
.arch-node b { font-size: 15px; }
.arch-node small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.arch-link { position: relative; align-self: center; height: 2px; background: linear-gradient(90deg, rgba(76, 201, 240, 0.15), rgba(255, 201, 60, 0.3)); border-radius: 2px; }
.arch-link span {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan); animation: arch-dot 2.4s ease-in-out infinite;
}
.arch-link:nth-of-type(4) span { animation-delay: 1.2s; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes arch-dot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

/* ---------- Возможности ---------- */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.f-kill, .f-swap, .f-privacy, .f-more { grid-column: span 3; }
.f-mode, .f-health, .f-subs { grid-column: span 2; }

.feat-visual {
  position: relative; height: 150px; margin: -8px -8px 22px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.018); border: 1px solid rgba(255, 255, 255, 0.045);
}

/* Kill switch */
.ks-visual { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 0 18px; }
.ks-apps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ks-apps span { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: #111b2e; border: 1px solid var(--line-strong); color: var(--muted-strong); }
.ks-wall {
  height: 112px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 201, 60, 0.16), rgba(255, 201, 60, 0.04));
  border: 1px solid rgba(255, 201, 60, 0.45); box-shadow: 0 0 34px -6px rgba(255, 201, 60, 0.5);
}
.ks-net { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; opacity: 0.7; }
.ks-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--red); border: 1px solid rgba(255, 95, 109, 0.4); font-size: 16px; }
.ks-beam { position: absolute; left: 100px; right: 50%; top: 50%; height: 2px; margin-right: 32px; }
.ks-beam::before, .ks-beam::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: ks-hit 2.2s ease-in infinite;
}
.ks-beam::after { animation-delay: 1.1s; }
@keyframes ks-hit {
  0% { left: 0; opacity: 0; transform: scale(1); }
  10% { opacity: 1; }
  78% { left: calc(100% - 8px); opacity: 1; transform: scale(1); }
  100% { left: calc(100% - 8px); opacity: 0; transform: scale(2.2); }
}

/* Смена узла */
.swap-visual { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 18px; }
.sw-list { position: relative; display: flex; flex-direction: column; gap: 6px; width: 190px; }
.sw-list span {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; background: #0f1828; border: 1px solid var(--line-strong);
}
.sw-list img { border-radius: 3px; }
.sw-cursor {
  position: absolute; left: -4px; right: -4px; top: -4px; height: calc(33.333% + 4px); border-radius: 12px; z-index: 2;
  border: 1.5px solid var(--gold); box-shadow: 0 0 22px -4px rgba(255, 201, 60, 0.7);
  animation: sw-move 7.5s var(--ease) infinite;
}
@keyframes sw-move {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(calc(100% + 2px)); }
  66%, 92% { transform: translateY(calc(200% + 4px)); }
  100% { transform: translateY(0); }
}
.sw-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; color: var(--mint); border: 1px solid rgba(87, 224, 192, 0.35); background: rgba(87, 224, 192, 0.06);
  animation: sw-badge 2.5s ease infinite;
}
@keyframes sw-badge { 0%, 20% { opacity: 0.25; } 35%, 85% { opacity: 1; } 100% { opacity: 0.25; } }

/* TUN / прокси */
.mode-visual { display: grid; place-items: center; }
.mv-seg { position: relative; display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: #0a1120; }
.mv-seg span { position: relative; z-index: 1; width: 104px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--muted-strong); }
.mv-seg::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 104px; bottom: 4px; border-radius: 999px;
  background: var(--cyan-solid); box-shadow: 0 0 20px -2px rgba(76, 201, 240, 0.6);
  animation: mv-slide 5s var(--ease) infinite;
}
@keyframes mv-slide { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(104px); } 100% { transform: translateX(0); } }

/* Контроль связи */
.pulse-visual { display: grid; place-items: center; padding: 0 16px; }
.pulse-visual svg { width: 100%; height: 70px; overflow: visible; }
.pulse-line {
  fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(87, 224, 192, 0.7));
  stroke-dasharray: 520; stroke-dashoffset: 520; animation: pulse-draw 3.2s ease-in-out infinite;
}
@keyframes pulse-draw { 0% { stroke-dashoffset: 520; } 55% { stroke-dashoffset: 0; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Подписки */
.subs-visual { display: grid; place-items: center; padding: 0 18px; }
.sv-card { width: 100%; max-width: 280px; padding: 14px; border-radius: 12px; background: #0f1828; border: 1px solid var(--line-strong); }
.sv-top { display: flex; justify-content: space-between; font-size: 13px; }
.sv-top span { color: var(--muted); font-size: 12px; }
.sv-bar { height: 6px; margin: 12px 0 8px; border-radius: 999px; background: #1a2539; overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--mint)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
.reveal.in .sv-bar i, html:not(.js) .sv-bar i { transform: scaleX(1); }
.sv-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }

.feat code { font-size: 0.85em; color: var(--muted-strong); background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 5px; }

/* Приватность */
.f-privacy { display: flex; align-items: center; gap: 26px; }
.zero {
  font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 11vw, 9.5rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 201, 60, 0.85);
  filter: drop-shadow(0 0 30px rgba(255, 201, 60, 0.35)); flex: none;
}
.f-privacy h3 { font-size: 1.4rem; }

/* Ещё */
.more-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.more-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.more-list .i { color: var(--cyan); font-size: 18px; margin-top: 3px; }
.more-list b { color: var(--fg); }

/* ---------- Маршрутизация ---------- */

.router { padding: 28px; }
.router-controls { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.rc-label { margin: 0 0 10px !important; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted) !important; }
.rc-desc { font-size: 14px; min-height: 3em; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: #0a1120; }
.seg button { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted-strong); transition: background 0.25s, color 0.25s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: var(--cyan-solid); color: #fff; }

.profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.prof {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #0b1222; font-size: 13.5px; font-weight: 500;
  transition: border-color 0.25s, background 0.25s, opacity 0.25s;
}
.prof:hover { border-color: #3a4b68; }
.prof .sw { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #222e44; transition: background 0.25s; flex: none; }
.prof .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8696b0; transition: transform 0.25s var(--ease), background 0.25s; }
.prof[aria-pressed="true"] { border-color: rgba(255, 201, 60, 0.45); background: #15140d; }
.prof[aria-pressed="true"] .sw { background: var(--gold); }
.prof[aria-pressed="true"] .sw::after { transform: translateX(12px); background: #1a1200; }
.prof.direct[aria-pressed="true"] { border-color: rgba(76, 201, 240, 0.45); background: #0c1a2a; }
.prof.direct[aria-pressed="true"] .sw { background: var(--cyan); }
.prof em { font-style: normal; font-size: 11px; color: var(--muted); }
.prof.inert { opacity: 0.45; }

.flow { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(60px, 1fr) minmax(0, 220px); gap: 0; margin-top: 26px; }
.flow-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.src {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 12px; background: #0b1222; border: 1px solid var(--line-strong);
  transition: border-color 0.4s;
}
.src .src-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #111b2e; color: var(--muted-strong); font-size: 15px; }
.src b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src .to { display: none; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.src.vpn { border-color: rgba(255, 201, 60, 0.35); }
.src.vpn .src-ic { color: var(--gold); }
.src.direct .src-ic { color: var(--cyan); }
.src.vpn .to { color: var(--gold); background: rgba(255, 201, 60, 0.1); }
.src.direct .to { color: var(--cyan); background: rgba(76, 201, 240, 0.1); }

.flow-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-paths path { fill: none; stroke-width: 1.5; transition: stroke 0.5s; }
.flow-paths path.vpn { stroke: rgba(255, 201, 60, 0.32); }
.flow-paths path.direct { stroke: rgba(76, 201, 240, 0.24); }
.flow-paths circle.vpn { fill: var(--gold); }
.flow-paths circle.direct { fill: var(--cyan); }

.flow-dests { grid-column: 3; display: flex; flex-direction: column; justify-content: space-around; gap: 20px; position: relative; z-index: 1; }
.dest {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 16px; border-radius: 16px; background: #0b1222; border: 1px solid var(--line-strong);
}
.dest img { border-radius: 4px; }
.dest .i { font-size: 20px; color: var(--cyan); }
.dest b { display: block; font-size: 15px; }
.dest small { display: block; color: var(--muted); font-size: 12px; }
.dest em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.dest.vpn { border-color: rgba(255, 201, 60, 0.5); box-shadow: 0 0 40px -14px rgba(255, 201, 60, 0.55); }
.dest.vpn em { color: var(--gold); }
.dest.direct { border-color: rgba(76, 201, 240, 0.4); box-shadow: 0 0 40px -14px rgba(76, 201, 240, 0.45); }
.dest.direct em { color: var(--cyan); }
.dest em.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

.router-note { font-size: 13.5px; margin-top: 22px !important; max-width: 62em; }

/* ---------- Дорожная карта ---------- */

.roadmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.timeline::after {
  content: ""; position: absolute; left: 11px; top: 8px; width: 2px; border-radius: 2px;
  height: calc((100% - 16px) * var(--progress, 0));
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(76, 201, 240, 0.6);
}
.tl-item { position: relative; padding: 0 0 30px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 6px; width: 16px; height: 16px; margin-left: 0; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 10px rgba(76, 201, 240, 0.45);
}
.tl-date { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.tl-item h3 { margin: 4px 0 0; font-size: 1.12rem; font-weight: 650; }
.tl-item p:not(.tl-date) { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.tl-item.is-now .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.6), 0 0 18px rgba(255, 201, 60, 0.8); animation: ping 2.2s ease-out infinite; }
.tl-item.is-now .tl-date { color: var(--gold); }

.ahead { display: flex; flex-direction: column; gap: 16px; }
.ahead-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ahead-col li { color: var(--muted); font-size: 14.5px; padding-left: 18px; position: relative; }
.ahead-col li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--line-strong); }
.ahead-col li b { color: var(--fg); }

/* ---------- Скачать ---------- */

.download { padding: clamp(26px, 4vw, 48px); border-color: rgba(255, 201, 60, 0.22); }
.dl-glow {
  position: absolute; z-index: -1; left: 50%; top: -260px; width: 760px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 201, 60, 0.18), transparent);
  pointer-events: none;
}
.dl-head { display: flex; align-items: center; gap: 22px; }
.dl-logo { width: 84px; height: 84px; flex: none; }
.dl-head .kicker { margin-bottom: 8px; }
.dl-sub { margin: 8px 0 0 !important; font-size: 15px; }

.dl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.dl-option {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.025); color: var(--fg);
  transition: transform 0.2s var(--ease), border-color 0.25s, box-shadow 0.3s, background 0.25s;
}
.dl-option:hover { color: var(--fg); transform: translateY(-2px); border-color: rgba(76, 201, 240, 0.5); }
.dl-option.primary { border-color: rgba(255, 201, 60, 0.55); background: linear-gradient(180deg, rgba(255, 201, 60, 0.12), rgba(255, 201, 60, 0.03)); box-shadow: 0 14px 40px -20px rgba(255, 201, 60, 0.7); }
.dl-option.primary:hover { border-color: var(--gold); box-shadow: 0 18px 50px -18px rgba(255, 201, 60, 0.9); }
.dlo-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(76, 201, 240, 0.1); color: var(--cyan); flex: none; }
.primary .dlo-icon { background: var(--gold); color: #1a1200; }
.dlo-text { display: flex; flex-direction: column; min-width: 0; }
.dlo-text b { font-size: 16.5px; }
.dlo-text small { color: var(--muted); font-size: 13.5px; }
.badge { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--gold); border: 1px solid rgba(255, 201, 60, 0.4); white-space: nowrap; }

.dl-why { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0 !important; font-size: 14px; }
.dl-why .i { color: var(--gold); font-size: 17px; margin-top: 2px; }

.dl-hashes { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hash-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 6px 0; }
.hash-name { font-size: 13px; color: var(--muted); }
.hash-row code { font-size: 12.5px; color: var(--muted-strong); overflow-wrap: anywhere; line-height: 1.45; }
.hash-row.cmd code { color: var(--mint); }
.copy { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.copy:hover { color: var(--fg); border-color: var(--line-strong); }
.copy.done { color: var(--mint); border-color: rgba(87, 224, 192, 0.5); }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pf { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line-strong); }
.pf em { font-style: normal; font-size: 11.5px; opacity: 0.8; }
.pf.on { color: var(--fg); border-style: solid; border-color: rgba(255, 201, 60, 0.45); }
.pf.on em { color: var(--gold); opacity: 1; }

.older { margin-top: 22px; border-top: 1px solid var(--line); }
.older summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 4px; cursor: pointer; list-style: none; font-weight: 600; color: var(--muted-strong); }
.older summary::-webkit-details-marker { display: none; }
.older summary .i { transition: transform 0.3s var(--ease); }
.older[open] summary .i { transform: rotate(180deg); }
.older-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.older-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); font-size: 14px; }
.older-list li a:first-child { color: var(--fg); font-weight: 600; }
.older-list .od-date { color: var(--muted); font-size: 13px; }
.older-list .od-links { display: flex; gap: 12px; font-size: 13px; }
.dl-update { font-size: 13.5px; margin-top: 18px !important; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.06rem; transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan-2); }
.faq summary .i { color: var(--gold); font-size: 20px; transition: transform 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: -4px 4px 22px; color: var(--muted); max-width: 46em; }
.faq details p code { color: var(--muted-strong); background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 5px; }

/* ---------- Подвал ---------- */

.footer { margin-top: clamp(90px, 12vw, 150px); padding: 56px 0 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 10, 20, 0.2), rgba(6, 10, 20, 0.85)); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 24em; margin: 14px 0 0; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--muted-strong); font-size: 14.5px; width: fit-content; }
.footer nav a:hover { color: var(--fg); }
.f-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.credits { margin: 40px 0 0; color: var(--muted); font-size: 13px; max-width: 70em; }
.credits a { color: var(--muted-strong); text-decoration: underline; text-decoration-color: rgba(147, 163, 188, 0.35); text-underline-offset: 3px; }
.footer-word {
  margin-top: 36px; white-space: nowrap; text-align: center; user-select: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 8.6vw, 7.4rem); line-height: 0.78; letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(232, 238, 247, 0.16), rgba(232, 238, 247, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(6%);
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1024px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { text-align: left; }
  .app-window { margin-inline: auto; --ry: 0deg; --rx: 0deg; }
  .proto-grid { grid-template-columns: 1fr; }
  .proto { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .proto-visual { height: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-kill, .f-swap, .f-privacy, .f-more, .f-mode, .f-health, .f-subs { grid-column: span 1; }
  .f-privacy, .f-more { grid-column: span 2; }
  .roadmap { grid-template-columns: 1fr; }
  .router-controls { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-link { width: 2px; height: 28px; margin-left: 25px; background: linear-gradient(180deg, rgba(76, 201, 240, 0.15), rgba(255, 201, 60, 0.3)); }
  .arch-link span { animation-name: arch-dot-v; left: -2px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@keyframes arch-dot-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

@media (max-width: 1000px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 18px;
    background: #070c17; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .import-duel { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-paths { display: none; }
  .flow-dests { grid-column: 1; grid-row: 1; flex-direction: row; margin-bottom: 14px; }
  .dest { flex: 1; padding: 12px; gap: 10px; }
  .dest small { display: none; }
  .src .to { display: inline-block; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 9px 11px; }
  .cta .btn { width: 100%; justify-content: center; }
  .proto { display: flex; }
  .proto-visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 196px; }
  .bento { grid-template-columns: 1fr; }
  .f-privacy, .f-more { grid-column: span 1; }
  .f-privacy { flex-direction: column; align-items: flex-start; gap: 14px; }
  .card { padding: 22px; }
  .router { padding: 20px; }
  .dl-options { grid-template-columns: 1fr; }
  .dl-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dl-logo { width: 64px; height: 64px; }
  .hash-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .hash-name { grid-column: 1 / -1; margin-bottom: -6px; }
  .older-list li { grid-template-columns: 1fr auto; }
  .older-list .od-links { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aw-body { grid-template-columns: minmax(0, 1fr); }
  .aw-side { display: none; }
  .app-window { font-size: 11.5px; }
  .ks-visual { padding: 0 12px; grid-template-columns: 1fr 52px 1fr; }
  .ks-beam { left: 86px; margin-right: 26px; }
}

@media (max-width: 380px) {
  .aw-row { flex-direction: column; align-items: stretch; }
  .aw-pill { justify-content: center; }
  .mv-seg span { width: 88px; }
  .mv-seg::before { width: 88px; }
  @keyframes mv-slide { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(88px); } 100% { transform: translateX(0); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
}
