/* ==========================================================================
   Локалка — landing
   No raster images: everything is SVG, gradients, blur and light.
   ========================================================================== */

:root {
  --bg: #05060b;
  --bg-2: #0a0c16;
  --text: #f5f5fa;
  --muted: #9a9db6;
  --faint: #5d6079;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .045);
  --glass-hi: rgba(255, 255, 255, .08);

  --indigo: #8589ff;
  --violet: #b07cff;
  --cyan: #5ee7ff;
  --pink: #ff7ab8;
  --amber: #ffb547;
  --green: #34c77b;
  --folder: #e9ac42;
  --file: #6877cd;

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: .86em;
  padding: .1em .45em;
  border-radius: 7px;
  background: rgba(133, 137, 255, .14);
  color: #c9cbff;
  white-space: nowrap;
}
::selection { background: rgba(133, 137, 255, .45); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }

/* ================= Ambient light ================= */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.orb-a { width: 62vmax; height: 62vmax; left: -18vmax; top: -26vmax; background: radial-gradient(circle, #4c46d9 0%, transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }
.orb-b { width: 52vmax; height: 52vmax; right: -20vmax; top: 18vh; background: radial-gradient(circle, #1a8fb8 0%, transparent 65%); opacity: .38; animation: drift-b 32s ease-in-out infinite alternate; }
.orb-c { width: 46vmax; height: 46vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, #8a3fd1 0%, transparent 65%); opacity: .32; animation: drift-c 28s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(12vw, 8vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-10vw, 14vh) scale(.92); } }
@keyframes drift-c { to { transform: translate(-8vw, -10vh) scale(1.08); } }

/* SVG turbulence as film grain: vector, no image file */
.grain {
  position: absolute; inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); }
}

/* Soft light that follows the pointer */
.cursor-light {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 137, 255, .16), transparent 60%);
  pointer-events: none;
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  transition: opacity .4s;
}
@media (hover: none) { .cursor-light { display: none; } }

/* ================= Glass ================= */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .015)),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 20px 60px -30px rgba(0, 0, 0, .8);
  isolation: isolate;
}
/* Specular highlight that tracks the pointer inside a card */
.glass::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), rgba(170, 173, 255, .55), transparent 45%);
  -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 .35s;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--x, 50%) var(--y, -20%), rgba(133, 137, 255, .10), transparent 40%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: -1;
}
.glass:hover::before, .glass:hover::after { opacity: 1; }

/* ================= Buttons ================= */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-large { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-small { --h: 36px; padding: 0 16px; font-size: 14px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #9a9dff 0%, #6f72f0 45%, #5a4fe0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 10px 30px -8px rgba(111, 114, 240, .75),
    0 0 0 1px rgba(255, 255, 255, .08);
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 16px 44px -8px rgba(111, 114, 240, .95),
    0 0 0 1px rgba(255, 255, 255, .12);
}
.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-glass:hover { background: rgba(255, 255, 255, .12); }

/* Glint that sweeps across a button */
.shine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: glint 4.5s var(--ease) infinite;
}
@keyframes glint { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }

/* ================= Nav ================= */
.nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 12px;
  transition: top .4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  width: min(1100px, 100%);
  height: 56px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, width .5s var(--ease);
}
.nav.scrolled .nav-inner {
  width: min(900px, 100%);
  background: rgba(14, 15, 26, .62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 40px -18px rgba(0, 0, 0, .9);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px rgba(111, 114, 240, .6)); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

/* ================= Hero ================= */
.hero { position: relative; padding: 150px 0 40px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 26px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: #cfd1ff;
  background: rgba(133, 137, 255, .1);
  border: 1px solid rgba(133, 137, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 112px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, #fff 0%, #c7c9ff 20%, var(--indigo) 45%, var(--cyan) 70%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 9s ease-in-out infinite alternate;
}
@keyframes flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lead {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 30px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ================= Stage + mockup ================= */
.stage { position: relative; margin-top: 70px; perspective: 1800px; }
.stage-glow {
  position: absolute; left: 50%; top: 40%;
  width: 90%; height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(111, 114, 240, .55), rgba(94, 231, 255, .15) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }

.device-window {
  --tilt: 18deg;
  --lift: 0px;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 22px;
  background: #151727;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 60px 120px -40px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .4),
    0 0 80px -20px rgba(111, 114, 240, .45);
  overflow: hidden;
  transform: rotateX(var(--tilt)) translateY(var(--lift)) scale(var(--scale, .96));
  transform-origin: 50% 0%;
  transition: transform .1s linear;
  text-align: left;
  font-size: 13px;
}
/* Glass reflection sliding across the screen */
.device-window::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 45%, transparent 55%);
  background-size: 250% 100%;
  animation: reflect 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes reflect { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -40% 0; } }

.win-bar {
  display: flex; align-items: center; gap: 18px;
  height: 46px; padding-left: 16px;
  background: #0f1120;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.win-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.win-logo { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #9ea2ff, #5c5fd2); box-shadow: 0 0 12px rgba(133, 137, 255, .7); }
.win-tabs { display: flex; gap: 4px; }
.win-tab {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 12.5px;
}
.win-tab.active { background: #2a2c42; color: var(--text); }
.win-tab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.win-caption { display: flex; margin-left: auto; height: 100%; }
.win-caption i { position: relative; width: 44px; height: 100%; }
.win-caption i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cap-min::before { width: 10px; height: 1px; background: #cfd0e0; }
.cap-max::before { width: 9px; height: 9px; border: 1px solid #cfd0e0; }
.win-caption .cap-close::before, .win-caption .cap-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: #cfd0e0; }
.win-caption .cap-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.win-caption .cap-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.win-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; min-height: 470px; }
.win-side, .win-devices { background: #1c1e31; padding: 20px 12px; }
.win-side { border-right: 1px solid rgba(255, 255, 255, .05); }
.win-devices { border-left: 1px solid rgba(255, 255, 255, .05); display: flex; flex-direction: column; }
.win-caption-text { margin: 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.win-owner { margin: 6px 8px 14px; font-size: 12.5px; }
.win-folders { list-style: none; margin: 0; padding: 0; }
.win-folders li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.win-folders li.sel { background: #2c2f4b; box-shadow: inset 0 0 0 1px rgba(133, 137, 255, .6); }
.fi { width: 15px; height: 12px; border: 1.6px solid var(--folder); border-radius: 2px 3px 3px 3px; position: relative; }
.fi::before { content: ""; position: absolute; left: -1.6px; top: -4px; width: 7px; height: 3px; border: 1.6px solid var(--folder); border-bottom: 0; border-radius: 2px 2px 0 0; }

.win-main { padding: 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.win-head { display: flex; justify-content: space-between; align-items: flex-start; }
.win-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.win-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.win-icon-btn { width: 30px; height: 30px; border-radius: 8px; background: #2a2c42; }
.win-search {
  display: flex; align-items: center; gap: 10px;
  height: 34px; margin: 16px 0; padding: 0 12px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08);
  background: #25273c; color: var(--faint); font-size: 12.5px;
}
.win-search i { width: 11px; height: 11px; border: 1.6px solid var(--faint); border-radius: 50%; position: relative; }
.win-search i::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.6px; background: var(--faint); transform: rotate(45deg); }
.win-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile > div { min-width: 0; }
.tile {
  display: flex; align-items: center; gap: 11px;
  padding: 13px; border-radius: 11px; background: #2a2c42;
  transition: transform .4s var(--spring);
}
.tile b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.tile small { color: var(--muted); font-size: 11px; }
.t-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; position: relative; }
.t-ico.folder { background: var(--folder); }
.t-ico.file { background: var(--file); }
.t-ico::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 15px; border: 1.6px solid #fff; border-radius: 2px; }
.t-ico.folder::before { width: 15px; height: 11px; }
.active-tile { background: #33365a; box-shadow: inset 0 0 0 1px rgba(133, 137, 255, .75), 0 8px 24px -10px rgba(133, 137, 255, .6); animation: selectPulse 5s var(--ease) infinite; }
@keyframes selectPulse { 0%, 100% { transform: scale(1); } 8% { transform: scale(.96); } 16% { transform: scale(1.02); } 24% { transform: scale(1); } }
.win-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 12px; }
.win-dl {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 8px;
  background: var(--indigo); color: #fff; font-weight: 600;
  box-shadow: 0 6px 20px -6px rgba(133, 137, 255, .9);
}
.win-dl i { width: 9px; height: 9px; border-right: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(45deg) translate(-2px, -2px); }

.dev { display: flex; gap: 10px; align-items: center; padding: 9px; border-radius: 10px; margin-top: 6px; border: 1px solid transparent; }
.dev:first-of-type { margin-top: 14px; }
.dev.sel { background: #2c2f4b; border-color: rgba(133, 137, 255, .6); }
.dev b { display: block; font-size: 12.5px; }
.dev small { color: var(--muted); font-size: 11px; }
.dev small.ok { color: #72d6ba; }
.d-ico { flex: none; width: 28px; height: 28px; border-radius: 7px; background: #2a2c42; position: relative; }
.d-ico::before { content: ""; position: absolute; left: 7px; top: 8px; width: 14px; height: 9px; border: 1.5px solid var(--indigo); border-radius: 2px; }
.d-ico::after { content: ""; position: absolute; left: 5px; top: 19px; width: 18px; height: 1.5px; background: var(--indigo); }
.win-scan {
  display: flex; align-items: center; gap: 9px;
  margin-top: auto; height: 34px; padding: 0 12px;
  border-radius: 8px; background: var(--indigo); color: #fff; font-weight: 600; font-size: 12.5px;
  position: relative; overflow: hidden;
}
.win-scan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-100%); animation: scanBar 3s ease-in-out infinite; }
@keyframes scanBar { 60%, 100% { transform: translateX(100%); } }
.win-scan i { width: 10px; height: 10px; border: 1.6px solid #fff; border-radius: 50%; }

/* Transfer toast: slides in, fills, turns green, leaves — on a loop */
.toast {
  position: absolute; right: 22px; bottom: 68px;
  display: flex; gap: 12px; align-items: center;
  width: 290px; padding: 14px;
  border-radius: 18px;
  background: rgba(30, 32, 54, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 50px -16px rgba(0, 0, 0, .9);
  animation: toastLoop 7s var(--ease) infinite;
}
.toast-ico {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #9a9dff, #5a4fe0);
  box-shadow: 0 6px 16px -4px rgba(111, 114, 240, .8);
  animation: toastIco 7s var(--ease) infinite;
}
.toast-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast-body { flex: 1; min-width: 0; }
.toast-body b { display: block; font-size: 13px; }
.toast-body small { color: var(--muted); font-size: 11px; }
.toast-bar { height: 5px; margin: 8px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.toast-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--cyan)); box-shadow: 0 0 12px var(--cyan); animation: toastFill 7s var(--ease) infinite; }
@keyframes toastLoop {
  0% { opacity: 0; transform: translateY(24px) scale(.94); }
  8%, 86% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(12px) scale(.97); }
}
@keyframes toastFill { 0%, 10% { width: 0; } 62%, 100% { width: 100%; } }
@keyframes toastIco { 0%, 62% { background: linear-gradient(135deg, #9a9dff, #5a4fe0); } 66%, 100% { background: linear-gradient(135deg, #4fe0a0, #22a867); box-shadow: 0 6px 16px -4px rgba(52, 199, 123, .8); } }

/* ================= Stats ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 90px; }
.stat { padding: 28px 24px; }
.stat b {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(40px, 5vw, 58px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, #fff, #b8bbff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat em { font-style: normal; font-size: .4em; letter-spacing: -.01em; font-weight: 700; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ================= Sections ================= */
.section { padding: 140px 0 0; }
.section-tight { padding-top: 120px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; margin: 0 0 14px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}
.section-lead { margin: 22px 0 0; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 640px; }
.section-head.center .section-lead { margin-inline: auto; }

/* ================= Flow steps ================= */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow-line { position: absolute; left: 0; right: 0; top: 118px; width: 100%; height: 40px; z-index: -1; }
.flow-line path { fill: none; stroke: url(#fl); stroke-width: 2; stroke-dasharray: 6 10; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.step { padding: 30px 28px 32px; }
.step-num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #9a9dff, #5a4fe0);
  box-shadow: 0 0 0 5px rgba(133, 137, 255, .12), 0 8px 20px -6px rgba(111, 114, 240, .9);
}
.step-art { height: 140px; display: grid; place-items: center; margin: 12px 0 8px; }
.step-art svg { width: 190px; height: 140px; overflow: visible; }
.step h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.025em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.folder-front { transform-origin: 60px 80px; animation: folderOpen 4s var(--ease) infinite; }
@keyframes folderOpen { 0%, 100% { transform: none; } 40%, 60% { transform: skewX(-6deg) scaleY(.92); } }
.share-arrow { animation: arrowUp 4s var(--ease) infinite; }
@keyframes arrowUp { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-7px); } }

.ring { fill: none; stroke: var(--indigo); stroke-width: 1.5; transform-origin: 60px 45px; animation: ring 3s var(--ease) infinite; }
.r2 { animation-delay: 1s; } .r3 { animation-delay: 2s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.blip { fill: var(--cyan); opacity: 0; animation: blip 3s var(--ease) infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.b1 { animation-delay: .6s; } .b2 { animation-delay: 1.3s; } .b3 { animation-delay: 2s; }
@keyframes blip { 0% { opacity: 0; transform: scale(.4); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.blip { transform-box: fill-box; transform-origin: center; }

.code-text { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: #fff; letter-spacing: .08em; }
.check-bg { transform-box: fill-box; transform-origin: center; animation: pop 4s var(--spring) infinite; filter: drop-shadow(0 0 10px rgba(52, 199, 123, .8)); }
.check { stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw 4s var(--ease) infinite; }
@keyframes pop { 0%, 30% { transform: scale(0); } 42%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes draw { 0%, 40% { stroke-dashoffset: 22; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 22; } }

/* ================= Split / beam ================= */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.checklist { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; font-size: 17px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(52, 199, 123, .15);
  box-shadow: inset 0 0 0 1px rgba(52, 199, 123, .4);
}
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.beam { padding: 20px; border-radius: var(--radius-lg); }
.beam-svg { display: block; width: 100%; height: auto; }
.wire { fill: none; stroke: url(#bw); stroke-width: 2.5; stroke-dasharray: 5 9; animation: dash 1s linear infinite; }
.wire-glow { fill: none; stroke: url(#bw); stroke-width: 8; opacity: .45; }
.packet { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .8)); }
.lock { animation: float 4s ease-in-out infinite; }
.lock circle { filter: drop-shadow(0 0 14px rgba(133, 137, 255, .7)); }
@keyframes float { 50% { transform: translate(262px, 64px); } }
.landed { transform-box: fill-box; transform-origin: center; animation: landed 2.6s var(--spring) infinite; }
@keyframes landed { 0%, 80% { transform: scale(.6); opacity: .3; } 90% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.beam-label { fill: var(--text); font: 600 15px var(--font); }
.beam-note { fill: var(--muted); font: 500 13px var(--font); }

/* ================= Bento ================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 30px; overflow: hidden; transition: transform .5s var(--spring); }
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 18px 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.tall { grid-row: span 2; display: flex; flex-direction: column; }
.wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
.card-copy h3 { margin-top: 14px; }
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: #cfd1ff; background: rgba(133, 137, 255, .15); border: 1px solid rgba(133, 137, 255, .3);
}
.chip-cyan { color: #b8f4ff; background: rgba(94, 231, 255, .12); border-color: rgba(94, 231, 255, .3); }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  position: relative;
}
.card-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 55%); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.ic-violet { background: linear-gradient(135deg, #b89bff, #7a52e8); box-shadow: 0 10px 26px -8px rgba(138, 82, 232, .8); }
.ic-pink { background: linear-gradient(135deg, #ff9bc9, #e8508f); box-shadow: 0 10px 26px -8px rgba(232, 80, 143, .8); }
.ic-cyan { background: linear-gradient(135deg, #7cefff, #1ea4d0); box-shadow: 0 10px 26px -8px rgba(30, 164, 208, .8); }
.ic-amber { background: linear-gradient(135deg, #ffd27a, #e88a2a); box-shadow: 0 10px 26px -8px rgba(232, 138, 42, .8); }
.ic-green { background: linear-gradient(135deg, #7ff0b4, #22a867); box-shadow: 0 10px 26px -8px rgba(34, 168, 103, .8); }

/* Radar */
.radar { flex: 1; display: grid; place-items: center; margin-top: 24px; min-height: 280px; }
.radar svg { width: min(100%, 330px); height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: rgba(133, 137, 255, .25); stroke-width: 1; }
.radar-axis { stroke: rgba(133, 137, 255, .12); stroke-width: 1; }
.radar-sweep { transform-origin: 150px 150px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radar-core { fill: none; stroke: #fff; stroke-width: 2; transform-origin: 150px 150px; animation: core 2s var(--ease) infinite; }
@keyframes core { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
.radar-dot circle { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.radar-dot text { fill: var(--text); font: 600 12px var(--font); }
.radar-dot { opacity: 0; animation: found 4s linear infinite; }
.d1 { animation-delay: .5s; } .d2 { animation-delay: 2.1s; } .d3 { animation-delay: 1.4s; }
@keyframes found { 0% { opacity: 0; } 4%, 70% { opacity: 1; } 100% { opacity: .15; } }

/* Name demo */
.name-demo { display: grid; gap: 8px; margin-top: 20px; }
.name-demo span {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.name-demo span::before { content: ""; width: 14px; height: 17px; border-radius: 3px; background: var(--file); flex: none; }
.nd-2 { animation: slideIn 5s var(--spring) infinite; }
@keyframes slideIn { 0%, 30% { opacity: 0; transform: translateY(-10px) scale(.96); } 42%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Theme switch */
.theme-switch {
  width: 64px; height: 34px; margin-top: 20px;
  border-radius: 999px; position: relative;
  background: #2a2c42; box-shadow: inset 0 0 0 1px var(--line-strong);
  animation: switchBg 4s ease-in-out infinite;
}
.theme-switch span {
  position: absolute; top: 3px; left: 3px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #dfe0ea);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
  animation: knob 4s var(--spring) infinite;
}
@keyframes switchBg { 0%, 40% { background: #2a2c42; } 50%, 90% { background: var(--amber); } 100% { background: #2a2c42; } }
@keyframes knob { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(30px); } 100% { transform: none; } }

/* Typing demo */
.type-demo {
  display: flex; align-items: center; gap: 2px;
  height: 40px; margin-top: 20px; padding: 0 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 14px;
}
.type-demo i, .ip-input i { width: 2px; height: 18px; background: var(--indigo); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* IP field */
.ip-field {
  display: grid; gap: 10px;
  padding: 22px; border-radius: 20px;
  background: rgba(10, 11, 20, .5); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ip-label { font-size: 14px; font-weight: 600; }
.ip-input {
  display: flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 14px; border-radius: 11px;
  background: #1c1e31; border: 1px solid var(--indigo);
  box-shadow: 0 0 0 4px rgba(133, 137, 255, .15);
  font-family: var(--mono); font-size: 15px;
}
.ip-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: typeIp 6s steps(17) infinite; }
@keyframes typeIp { 0%, 5% { width: 0; } 45%, 90% { width: 17ch; } 100% { width: 0; } }
.ip-btn {
  justify-self: start; display: inline-flex; align-items: center;
  height: 36px; padding: 0 16px; border-radius: 10px;
  background: var(--indigo); font-weight: 600; font-size: 14px;
  animation: ipBtn 6s ease-in-out infinite;
}
@keyframes ipBtn { 0%, 45% { opacity: .45; } 50%, 90% { opacity: 1; box-shadow: 0 8px 20px -6px rgba(133, 137, 255, .9); } 100% { opacity: .45; } }

/* ================= Security ================= */
.security { position: relative; }
.shield-wrap { position: relative; width: 170px; margin: 0 auto 34px; }
.shield { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(111, 114, 240, .6)); animation: float-y 6s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-10px); } }
.shield-shine { animation: shieldShine 4s ease-in-out infinite; }
@keyframes shieldShine { 0%, 50% { transform: skewX(-20deg) translateX(0); } 90%, 100% { transform: skewX(-20deg) translateX(420px); } }
.shield-check { stroke-dasharray: 120; stroke-dashoffset: 120; }
.shield-wrap.in .shield-check { animation: drawCheck 1.2s .4s var(--ease) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.shield-halo {
  position: absolute; left: 50%; top: 50%;
  width: 340px; height: 340px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(133, 137, 255, .5), rgba(94, 231, 255, .4), transparent 40%);
  filter: blur(40px);
  animation: spin 10s linear infinite;
  opacity: .7;
}
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec { padding: 26px; }
.sec h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.sec h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex: none; }
.sec p { margin: 0; color: var(--muted); font-size: 15px; }

/* ================= Compare ================= */
.compare { padding: 10px 30px; max-width: 900px; margin: 0 auto; border-radius: var(--radius-lg); }
.row { display: grid; grid-template-columns: 2fr repeat(3, 1fr); align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > span:first-child { font-size: 16px; }
.row.head span { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; }
.row.head span.us { color: #fff; }
.row.head .us::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px;
  background: linear-gradient(135deg, #9ea2ff, #5c5fd2); vertical-align: 0;
}
.row i { justify-self: center; width: 26px; height: 26px; border-radius: 50%; position: relative; }
.row i.yes { background: rgba(52, 199, 123, .16); box-shadow: inset 0 0 0 1px rgba(52, 199, 123, .45); }
.row i.yes::after { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.row i.no { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.row i.no::before, .row i.no::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; border-radius: 1px; background: var(--faint); transform: rotate(45deg); }
.row i.no::after { transform: rotate(-45deg); }
.row i.part { background: rgba(255, 181, 71, .12); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .4); }
.row i.part::after { content: ""; position: absolute; left: 8px; top: 12px; width: 10px; height: 2px; border-radius: 1px; background: var(--amber); }
/* Highlight column behind "Локалка" */
.compare {
  background-image: linear-gradient(90deg, transparent 40%, rgba(133, 137, 255, .1) 40%, rgba(133, 137, 255, .1) 60%, transparent 60%);
  background-origin: content-box;
  background-repeat: no-repeat;
}

/* ================= FAQ ================= */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px;
  font-size: 18px; font-weight: 600; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  transition: transform .45s var(--spring), background .3s;
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--spring); }
.faq details[open] summary i { background: var(--indigo); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 26px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), padding .45s var(--ease); }
.faq-body > p { overflow: hidden; margin: 0; color: var(--muted); font-size: 16px; }
.faq details[open] .faq-body { grid-template-rows: 1fr; padding-bottom: 24px; }
.faq details[open].pre .faq-body, .faq details[open].closing .faq-body { grid-template-rows: 0fr; padding-bottom: 0; }

/* ================= CTA ================= */
.cta-section { padding-bottom: 120px; }
.cta {
  position: relative; overflow: hidden;
  padding: 80px 30px;
  border-radius: 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-glow {
  position: absolute; left: 50%; top: 0; width: 120%; height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(133, 137, 255, .55), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(94, 231, 255, .25), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(176, 124, 255, .3), transparent 50%);
  z-index: -1;
  animation: breathe2 8s ease-in-out infinite;
}
@keyframes breathe2 { 50% { opacity: .7; } }
.cta-mark { width: 84px; height: 84px; filter: drop-shadow(0 18px 36px rgba(111, 114, 240, .8)); animation: float-y 5s ease-in-out infinite; }
.cta h2 { margin-top: 28px; }
.cta > p { color: var(--muted); font-size: 19px; margin: 16px 0 34px; }
.cta .cta-note { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

/* ================= Footer ================= */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================= Reveal on scroll ================= */
.js .reveal {
  opacity: 0;
  transform: translateY(34px) scale(.98);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal[data-delay="1"] { --d: 1; } .reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; } .reveal[data-delay="4"] { --d: 4; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* Cards that animate their own transform on hover still need the reveal lift. */
.card.reveal.in:hover { transform: translateY(-4px); }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .win-body { grid-template-columns: 160px minmax(0, 1fr); }
  .win-devices { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tall { grid-row: auto; }
  .span-3 { grid-column: span 2; }
  .search-card { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow, .sec-grid { grid-template-columns: 1fr; }
  .flow-line { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .wide { grid-template-columns: 1fr; }
  .section { padding-top: 100px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stage { margin-top: 48px; }
  .device-window { border-radius: 16px; }
  .win-side { display: none; }
  .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .win-main { padding: 16px; }
  .win-tabs .win-tab:not(.active) { display: none; }
  .win-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 10px; gap: 9px; }
  .tile b { max-width: none; }
  .t-ico { width: 30px; height: 30px; }
  .win-foot { padding-top: 14px; }
  .win-grid .tile:nth-child(n+5) { display: none; }
  .toast { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
  .stat { padding: 22px 18px; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .search-card { grid-column: auto; }
  .card { padding: 24px; }
  .compare { padding: 6px 16px; }
  .row { grid-template-columns: 1.6fr repeat(3, 1fr); min-height: 56px; }
  .row > span:first-child { font-size: 14px; }
  .row.head span { font-size: 12px; }
  .row.head .us::before { display: none; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq-body { padding: 0 20px; }
  .cta { padding: 60px 20px; border-radius: 30px; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .device-window { transform: none !important; }
  .toast { opacity: 1; }
  .shield-check { stroke-dashoffset: 0; }
  .cursor-light { display: none; }
}
