/* uflt voice — сайт в стиле актуального лаунчера 0.3.0: сцена «трава» (видео) +
   матовое тёмное стекло, светлый текст, шалфейно-зелёный акцент, шрифт Onest,
   логотип-цветок (сакура). Плавные пружинные анимации как в лаунчере.
   Основной шрифт — Minecraft Rus (с кириллицей), фолбэк Onest. */

@font-face {
  font-family: "Minecraft Rus";
  src: url("minecraft.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --text: #f4f4f6; --text-2: #b8bbc4; --text-3: #81858f;
  --glass: rgba(16, 18, 24, 0.46);
  --glass-2: rgba(20, 22, 29, 0.86);
  --card: rgba(255, 255, 255, 0.05);
  --card-sel: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --edge: rgba(255, 255, 255, 0.1);
  --edge-hi: rgba(255, 255, 255, 0.16);
  --field: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.4);
  --acc: #bcd8b3;       /* шалфейно-зелёный — акцент сцены «трава» */
  --acc-ink: #132112;
  --acc-soft: color-mix(in srgb, var(--acc) 15%, transparent);
  --acc-line: color-mix(in srgb, var(--acc) 40%, transparent);
  --ok: #6fe3a6;
  --blur: 26px;
  --maxw: 1180px;
  --font: "Minecraft Rus", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #0d0e12;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.booting { opacity: 0; }
body { transition: opacity 700ms var(--ease); }

/* ---------- Фон: сцена «трава» (видео + картинка) + вуаль ---------- */
.scene {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background: #0d0e12 url("scenes/grass-t.jpg") center center / cover no-repeat;
  filter: brightness(1.34) saturate(1.22) contrast(1.03);
}
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(104deg, rgba(8, 10, 12, 0.74) 0%, rgba(8, 10, 12, 0.44) 32%, rgba(8, 10, 12, 0.12) 56%, transparent 78%),
    linear-gradient(to bottom, rgba(8, 10, 12, 0.32) 0%, transparent 20%, transparent 70%, rgba(8, 10, 12, 0.58) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--acc); }

/* стеклянная поверхность */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge), 0 20px 60px var(--shadow);
}

/* ---------- Навигация ---------- */
header.nav { position: sticky; top: 0; z-index: 50; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 58px; margin-top: 12px;
  padding: 0 8px 0 18px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(var(--blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge), 0 16px 40px var(--shadow);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 23px; height: 23px; color: var(--text); transition: transform 900ms var(--spring), color 0.4s var(--ease), filter 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(144deg) scale(1.14); color: var(--acc); filter: drop-shadow(0 0 10px var(--acc-soft)); }
.brand span { font-weight: 300; color: var(--text-2); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a.link { color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: color 0.15s; }
.nav-links a.link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 14.5px;
  border: 0; border-radius: 12px; padding: 10px 17px; cursor: pointer; white-space: nowrap; color: var(--text);
  transition: transform 0.2s var(--spring), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ico { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 24px -8px rgba(188, 216, 179, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(188, 216, 179, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 45%, transparent 60%); transform: translateX(-120%); }
.btn-primary:hover::after { animation: sheen 0.8s ease; }
@keyframes sheen { to { transform: translateX(120%); } }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--hover); transform: translateY(-2px); }
.btn-lg { padding: 14px 23px; font-size: 15.5px; border-radius: 14px; }
.btn-sub { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; gap: 1px; }
.btn-sub small { font-size: 10.5px; font-weight: 500; opacity: 0.7; }

/* ---------- Чип ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); color: var(--text-2); }
.chip .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.9s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Герой ---------- */
.hero { padding: 58px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 20px 0 0; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
.hero p.lead { margin-top: 20px; max-width: 46ch; font-size: 18px; color: var(--text-2); }
.hero .cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.hero .mini { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero .mini div { display: flex; flex-direction: column; }
.hero .mini b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero .mini span { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- Стеклянная сцена (дальность голоса) ---------- */
.stage { position: relative; width: 100%; aspect-ratio: 1 / 0.92; border-radius: 24px; display: grid; place-items: center; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(var(--blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge), 0 24px 70px var(--shadow); }
.rings { position: relative; width: 84%; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line); }
.ring.r1 { width: 34%; height: 34%; } .ring.r2 { width: 64%; height: 64%; } .ring.r3 { width: 94%; height: 94%; }
.ring.r1 { border-color: var(--acc-line); }
.rlabel { position: absolute; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--text-3); background: rgba(10, 11, 15, 0.6); padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(6px); }
.orb { position: relative; width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; z-index: 3;
  background: radial-gradient(120% 90% at 30% 15%, #e9f4e3 0%, var(--acc) 48%, #9fc496 100%); color: var(--acc-ink);
  box-shadow: 0 0 46px rgba(188, 216, 179, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 66px rgba(188, 216, 179, 0.6), 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5); } }
.orb::after { content: ""; position: absolute; inset: -5px; border-radius: 30px; border: 1px solid var(--acc-line); animation: halo 3s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.orb svg { width: 40px; height: 40px; }
.blip { position: absolute; transform: translate(-50%, -50%); text-align: center; animation: bob 5s ease-in-out infinite; }
.blip:nth-child(even) { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }
.blip .d { display: block; width: 13px; height: 13px; border-radius: 50%; margin: 0 auto; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(10, 11, 15, 0.4); }
.blip.on .d { background: var(--acc); box-shadow: 0 0 14px rgba(188, 216, 179, 0.7), 0 0 0 3px rgba(10, 11, 15, 0.4); animation: blink 1.6s ease-in-out infinite; }
.blip .t { display: block; font-size: 10.5px; color: var(--text-2); margin-top: 5px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.blip.far .d { opacity: 0.55; } .blip.far .t { color: var(--text-3); }

/* ---------- Заголовки секций ---------- */
section.block { padding: 56px 0; }
.sec-head { max-width: 62ch; margin: 0 0 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
.sec-head h2 { font-weight: 700; font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -0.03em; margin-top: 11px; line-height: 1.1; }
.sec-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; }

/* ---------- Бенто (стекло) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 16px; }
.tile {
  background: var(--card); border-radius: 18px; padding: 22px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.28s var(--out), background 0.28s, box-shadow 0.28s;
}
.tile:hover { background: var(--card-sel); box-shadow: inset 0 0 0 1px var(--edge-hi), 0 22px 50px var(--shadow); }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); transition: transform 0.3s var(--spring); }
.tile:hover .ic { transform: scale(1.08) rotate(-5deg); }
.tile .ic svg { width: 21px; height: 21px; stroke: var(--acc); }
.tile h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.tile p { margin-top: 7px; color: var(--text-2); font-size: 14px; }
.tile.hero-tile { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.tile.hero-tile h3 { font-size: 23px; }
.wave { display: flex; align-items: flex-end; gap: 4px; height: 66px; margin-top: auto; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(to top, color-mix(in srgb, var(--acc) 55%, transparent), var(--acc)); opacity: 0.9; animation: wv 1.5s ease-in-out infinite; }
/* затухание громкости по дистанции — заполняет плитку «Объёмный звук» */
.falloff { margin-top: auto; }
.fbars { display: flex; align-items: flex-end; gap: 4px; height: 128px; }
.fbars i { flex: 1; height: var(--h, 50%); transform-origin: bottom; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, color-mix(in srgb, var(--acc) 30%, transparent), var(--acc));
  box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 30%, transparent);
  animation: fbreathe 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes fbreathe { 50% { transform: scaleY(0.82); } }
.flbl { display: flex; justify-content: space-between; margin-top: 11px; font-size: 11.5px; color: var(--text-3); }
.flbl b { color: var(--acc); font-weight: 600; }
@keyframes wv { 0%, 100% { height: 20%; } 50% { height: 94%; } }
.vers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vers span { font-size: 11.5px; color: var(--text-2); padding: 3px 9px; border-radius: 7px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px); transition: transform 0.28s var(--out), background 0.28s; }
.step:hover { background: var(--card-sel); }
.step .n { font-size: 13px; font-weight: 700; color: var(--acc); }
.step h3 { font-size: 17px; font-weight: 650; margin-top: 10px; }
.step p { margin-top: 7px; color: var(--text-2); font-size: 14px; }

/* ---------- Статистика ---------- */
.statbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-radius: 18px; padding: 26px 30px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px); }
.statbar .s { display: flex; flex-direction: column; }
.statbar .s b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.statbar .s span { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-box { position: relative; overflow: hidden; border-radius: 26px; padding: 52px 32px; text-align: center;
  background: var(--glass); backdrop-filter: blur(var(--blur)) saturate(1.4); box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge), 0 24px 70px var(--shadow); }
.cta-box h2 { font-weight: 700; font-size: clamp(25px, 3.8vw, 38px); letter-spacing: -0.03em; }
.cta-box p { margin: 13px auto 25px; color: var(--text-2); max-width: 48ch; }

/* ---------- Плавающая навигация ---------- */
.dock {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 3px; padding: 5px;
  border-radius: 15px; background: var(--glass-2);
  backdrop-filter: blur(var(--blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--edge), 0 20px 50px var(--shadow);
  animation: dockin 0.6s var(--spring) both; animation-delay: 0.3s;
}
@keyframes dockin { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dock a { padding: 8px 15px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.dock a:hover { color: var(--text); }
.dock a.active { color: var(--acc-ink); background: var(--acc); box-shadow: 0 2px 12px rgba(188, 216, 179, 0.4); }

/* ---------- Подвал ---------- */
footer.ft { margin-top: 36px; padding: 40px 0 108px; }
.ft-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.ft .brand { font-size: 15px; }
.ft-links { display: flex; gap: 22px; }
.ft-links a { color: var(--text-2); font-size: 13.5px; transition: color 0.15s; }
.ft-links a:hover { color: var(--text); }
.ft .copy { color: var(--text-3); font-size: 12.5px; width: 100%; margin-top: 4px; }

/* ---------- Пиксельный шрифт: ровный трекинг ---------- */
.hero h1, .sec-head h2, .cta-box h2, .brand, .chip, .dock a, .nav-links a.link, .btn, .vers span, .ver-chip, .dl h3 { letter-spacing: 0; }

/* ---------- Поддерживаемые версии ---------- */
.ver-panel { border-radius: 20px; padding: 26px 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.ver-group + .ver-group { margin-top: 18px; }
.ver-group h4 { font-size: 14px; font-weight: 650; color: var(--acc); margin-bottom: 11px; }
.ver-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ver-chip { font-size: 12.5px; color: var(--text); padding: 5px 10px; border-radius: 8px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); transition: background .18s, transform .18s var(--spring); }
.ver-chip:hover { background: var(--acc-soft); transform: translateY(-2px); }

/* ---------- Карточки скачивания ---------- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl { position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transition: transform .28s var(--out), background .28s; }
.dl:hover { background: var(--card-sel); }
.dl .dl-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); color: var(--acc); margin-bottom: 14px; }
.dl .dl-ic svg { width: 26px; height: 26px; }
.dl h3 { font-size: 18px; font-weight: 650; }
.dl p { margin-top: 7px; color: var(--text-2); font-size: 14px; flex: 1; }
.dl .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; padding: 4px 9px; border-radius: 7px; background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.dl .tag.soon { background: var(--field); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.dl .btn { margin-top: 16px; justify-content: center; width: 100%; }
.dl.soon .btn { background: var(--field); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.dl.soon .btn:hover { transform: none; }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 0.7s var(--out), transform 0.7s var(--out), filter 0.7s var(--out); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ============ Богатые анимации (запуск, ховеры, интерактив) ============ */

/* курсор-свечение, следует за мышью */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 440px; height: 440px; z-index: 0; pointer-events: none;
  margin: -220px 0 0 -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 216, 179, 0.22), transparent 66%);
  opacity: 0; transition: opacity 0.6s var(--ease); mix-blend-mode: screen; will-change: transform;
}
.cursor-glow.on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* летающие частицы-пыльца над травой */
.motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 255, 214, 0.95), rgba(188, 216, 179, 0.25) 60%, transparent);
  box-shadow: 0 0 8px rgba(188, 216, 179, 0.6); opacity: 0; animation: rise-mote linear infinite;
}
@keyframes rise-mote {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.7; }
  100% { transform: translateY(-105vh) translateX(var(--drift, 24px)) scale(0.7); opacity: 0; }
}

/* запуск сайта — элементы въезжают */
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.84); filter: blur(6px); } }
.nav-inner { animation: slideDown 0.7s var(--out) both; }
.hero-left > * { animation: fadeUp 0.8s var(--out) both; }
.hero-left > .chip { animation-delay: 0.05s; }
.hero-left > h1 { animation-delay: 0.14s; }
.hero-left > .lead { animation-delay: 0.24s; }
.hero-left > .cta { animation-delay: 0.34s; }
.hero-left > .mini { animation-delay: 0.44s; }
.stage { animation: popIn 0.9s var(--spring) both 0.3s; }

/* наклон карточек к курсору (значения задаёт JS) */
.tilt { transform: perspective(760px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--tl, 0)); transition: transform 0.25s var(--out), background 0.28s, box-shadow 0.28s; transform-style: preserve-3d; }
.tilt:hover { --tl: -5px; box-shadow: 0 26px 60px -26px var(--glow), inset 0 0 0 1px var(--edge-hi); }
.tile .ic, .dl .dl-ic, .step .n { transform: translateZ(26px); }

/* подчёркивание в навигации */
.nav-links a.link { position: relative; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; border-radius: 2px; background: var(--acc); transition: right 0.3s var(--out); }
.nav-links a.link:hover::after { right: 0; }

/* кнопки — пульс-свечение акцента */
.btn-primary:hover { box-shadow: 0 16px 40px -8px var(--glow), 0 0 0 4px var(--acc-soft), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.chip { transition: transform 0.2s var(--spring), box-shadow 0.2s; }
.chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--acc-line), 0 0 18px var(--acc-soft); }
.dl .tag { transition: transform 0.3s var(--spring); }
.dl:hover .tag { transform: scale(1.06) rotate(-2deg); }
/* орб реагирует на наведение на сцену */
.stage:hover .orb { transform: scale(1.06); }
.orb { transition: transform 0.4s var(--spring); }
.stage:hover .ring.r1 { border-color: var(--acc); }
.fblip { transition: transform 0.3s var(--spring); cursor: default; }
.stage:hover .fblip { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Адаптив ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .stage { order: -1; max-width: 420px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .tile.hero-tile { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(150px, auto); }
  .fbars { height: 84px; }
  .tile.hero-tile { grid-column: auto; grid-row: auto; }
  .statbar { justify-content: flex-start; gap: 24px; }
  .nav-actions .btn-text-hide { display: none; }
  .rings { width: 72%; }
  .blip .t { font-size: 9px; }
  .orb { width: 92px; height: 92px; }
  .orb svg { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Уважаем режим «меньше движения», но не убиваем интерфейс: глушим только
     постоянно летающие частицы, остальное (ховеры, переходы, появление) остаётся. */
  .motes { display: none; }
  .reveal { transition-duration: 0.4s; filter: none; }
}
