/* The site: home, product pages, downloads, the web client.
   "Dark colour fields with light": a dark ground, a wide display face, round buttons; every program has its own
   colour field (Nex Remote - blue, Nex Uninstaller - green, Nex Translator - crimson), and soft light of the same two colours drifts
   behind the page. The same look is used by the agent's window (agent-pc/src/ui) and the Android app (ui/Theme.kt). */

/* the fonts live on this server: the site does not depend on anybody else's */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(fonts/golos-text-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0e0f12;
  --panel: #191b21;
  --panel-2: #15171c;
  --ink: #f2f2ed;
  --muted: #9c9da0;
  --dim: #6a6c72;
  --line: #25272e;
  --line-2: #3b3e47;
  /* the three programs */
  --rc: #3559ea;
  --cu: #23946a;
  --tm: #c2378f;
  --rc-field: linear-gradient(135deg, #2c4fe6, #3f8df0);
  --cu-field: linear-gradient(135deg, #1b8560, #2fb59a);
  --tm-field: linear-gradient(135deg, #a82d86, #e3559b);
  /* the colour of the page: blue; the Nex Uninstaller page turns it green, the Nex Translator page - crimson */
  --tone: var(--rc);
  --field: var(--rc-field);
  --accent: #7f9aff;
  --accent-ink: #0e0f12;
  --ok: #4fd6a3;
  --warn: #ffb84a;
  --bad: #ff6b57;
  --r: 26px;
  --gutter: clamp(16px, 4vw, 72px);
  --display: "Unbounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: "Golos Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body[data-page="uninstaller"] { --tone: var(--cu); --field: var(--cu-field); --accent: #4fd6a3; }
body[data-page="translator"] { --tone: var(--tm); --field: var(--tm-field); --accent: #ff8cc6; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
/* the page uses the whole screen: only a gutter is left at the sides */
.wrap, .cells { width: min(1760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font: 500 13.5px/1.4 var(--sans); color: var(--muted); } /* a small label */
.mono b { color: var(--ink); font-weight: 600; }
::selection { background: var(--rc); color: #fff; }

/* ---------- background: a field of dots, a lamp under the cursor, three slow lights ----------
   The big light in front is the colour of the page's program, the two behind are the other programs. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dots, .lamp { position: absolute; inset: 0; background-image: radial-gradient(circle, currentColor 1px, transparent 1.5px); background-size: 26px 26px; }
.dots { color: #1c1e24; }
.lamp { color: #6d7180; opacity: 0; transition: opacity 0.5s; -webkit-mask-image: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 30%), #000, transparent 70%); mask-image: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 30%), #000, transparent 70%); }
.pointer .lamp { opacity: 1; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.42; animation: drift 16s ease-in-out infinite alternate; }
.glow.a { right: -8%; top: -6%; width: 46vw; height: 46vh; background: var(--tone); }
.glow.b { right: 24%; top: 26%; width: 30vw; height: 34vh; background: var(--light-b, var(--cu)); animation-delay: -7s; }
.glow.c { right: -4%; top: 38%; width: 28vw; height: 32vh; background: var(--light-c, var(--tm)); animation-delay: -11s; }
body[data-page="uninstaller"] { --light-b: var(--rc); }
body[data-page="translator"] { --light-b: var(--rc); --light-c: var(--cu); }
@keyframes drift { to { transform: translate(-7%, 40px) scale(1.14); } }
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, #ff8cc6, #8aa2ff, #5fe0b0); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 18, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-in { height: 70px; display: flex; align-items: center; gap: clamp(10px, 2vw, 34px); }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; font: 600 15px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; transition: transform 0.6s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.12); }
.nav-links { display: flex; gap: clamp(10px, 2vw, 34px); }
.under { position: relative; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.under::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.4s var(--ease); }
.under:hover::after, .under.on::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links a { color: var(--muted); font-size: 15.5px; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }

/* ---------- buttons: round; white on the dark ground and on the colour fields ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; font: 600 16px/1.2 var(--sans); color: var(--bg); background: var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 20px 44px -18px rgba(255, 255, 255, 0.5); }
.btn:active { transform: scale(0.98); }
.btn .i { transition: transform 0.3s var(--ease); }
.btn:hover .i { transform: translateY(2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.tone { border-color: transparent; background: var(--field); color: #fff; }
.btn.tone:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 24%, transparent), 0 20px 44px -16px var(--tone); }
.btn.small { padding: 10px 18px; font-size: 14.5px; }
.btn.small .i { width: 17px; height: 17px; }
.btn.big { padding: 20px 34px; font-size: 18px; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: 0.35; }
.more { display: inline-flex; align-items: center; gap: 9px; color: inherit; opacity: 0.85; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.more .i { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.more:hover { opacity: 1; }
.more:hover .i { transform: translateX(6px); }

/* ---------- headlines come up line by line ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.line > span { display: block; }
.js .lines .line > span { transform: translateY(115%); transition: transform 1s var(--ease) calc(var(--n, 0) * 0.09s); }
.js .lines.in .line > span { transform: none; }
.hl { background: linear-gradient(90deg, #ff8cc6, #8aa2ff, #5fe0b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(18px, 1.35vw, 23px); line-height: 1.45; max-width: 34ch; }

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(28px, 4vw, 90px); align-items: center; padding-block: clamp(36px, 5vw, 90px) clamp(44px, 6vw, 110px); }
.hero h1 { font-size: clamp(30px, 3.9vw, 78px); }
.hero .mono { margin-bottom: clamp(18px, 2vw, 30px); }
.hero .lead { margin-top: clamp(22px, 2.4vw, 38px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(26px, 3vw, 46px); }
.cta-note { margin-top: 18px; }
.app-icon { width: 64px; height: 64px; border-radius: 17px; margin-bottom: clamp(20px, 2vw, 30px); }

/* the picture stands on a field of glass and leans a little after the cursor */
.stage { position: relative; perspective: 1600px; padding: clamp(18px, 2.6vw, 44px) clamp(18px, 2.6vw, 44px) clamp(34px, 4.4vw, 70px) 12%; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tilt { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.stage .phone { position: absolute; left: -13%; bottom: -12%; width: 23%; transform: translateZ(60px) translateY(calc(var(--p, 0) * -30px)); }
.window { position: relative; border-radius: 16px; background: #111318; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 60px 120px -50px #000; }
.window img { width: 100%; }
.phone { border-radius: 13% / 6%; padding: clamp(5px, 0.55vw, 10px); background: #1d1f25; box-shadow: 0 50px 100px -40px #000, 0 0 0 1px var(--line-2) inset; }
.phone img { width: 100%; border-radius: 11% / 5%; }
.zoomable { cursor: zoom-in; }

/* ---------- cells: rounded panels in a grid; the one under the cursor is lit from it ---------- */
.cells { display: grid; gap: clamp(12px, 1.3vw, 22px); }
.cell { --pad: clamp(22px, 2.4vw, 42px); position: relative; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s, opacity 0.9s var(--ease) var(--d, 0s); }
.cell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); }
.cell:hover { border-color: var(--line-2); }
.cell:hover::before { opacity: 1; }
.cell > * { position: relative; }
.cells + .cells { margin-top: clamp(12px, 1.3vw, 22px); }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- home: the three programs, each on its own colour field ---------- */
.prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod { display: flex; flex-direction: column; min-height: clamp(520px, 44vw, 820px); border: 0; color: #fff; text-decoration: none; }
.prod:nth-child(1) { background: var(--rc-field); }
.prod:nth-child(2) { background: var(--cu-field); }
.prod:nth-child(3) { background: var(--tm-field); }
.prod::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 65%); }
.prod::after, .final::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -40%; width: 26%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); transform: skewX(-20deg); animation: sweep 8s ease-in-out infinite; }
.prod:nth-child(2)::after { animation-delay: -2.7s; }
.prod:nth-child(3)::after { animation-delay: -5.4s; }
@keyframes sweep { from { translate: 0 0; } 60%, 100% { translate: 620% 0; } }
.prod:hover { transform: translateY(-6px); }
.prod:nth-child(1):hover { box-shadow: 0 40px 80px -40px var(--rc); }
.prod:nth-child(2):hover { box-shadow: 0 40px 80px -40px var(--cu); }
.prod:nth-child(3):hover { box-shadow: 0 40px 80px -40px var(--tm); }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.prod .mono { color: rgba(255, 255, 255, 0.82); }
.prod h2 { margin-top: 12px; font-size: clamp(24px, 2.1vw, 40px); }
.prod p { margin-top: 14px; color: rgba(255, 255, 255, 0.86); font-size: clamp(17px, 1.25vw, 21px); max-width: 30ch; }
.corner { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: #fff; transition: background 0.35s, color 0.35s, transform 0.5s var(--ease); }
.prod:hover .corner { background: #fff; color: #15171c; transform: rotate(-45deg); }
.prod-shot { position: relative; flex: 1; margin-top: clamp(26px, 3vw, 50px); min-height: 260px; }
.prod-shot .window { position: absolute; left: 0; top: 0; width: 118%; border-color: rgba(255, 255, 255, 0.22); transition: transform 0.9s var(--ease); }
.prod:hover .prod-shot .window { transform: translate(-3%, -18px); }
.prod-shot .phone { position: absolute; right: 4%; top: 6%; width: 24%; transition: transform 0.9s var(--ease); }
.prod:hover .prod-shot .phone { transform: translateY(-26px) rotate(-3deg); }
.prod-get { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 90px var(--pad) var(--pad); background: linear-gradient(transparent, rgba(9, 12, 24, 0.88) 58%); }
.prod .btn, .final .btn { border-color: #fff; background: #fff; color: #15171c; }
.prod .btn.ghost, .final .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.prod .btn:hover, .final .btn:hover { box-shadow: 0 20px 44px -18px #000; }

/* a running line of outlined words: the whole list fits on a wide screen, and it keeps moving, so every
   word passes by on a narrow one. site.js repeats the words to fill the line and sets the speed; the words
   end with a dot, so the repeats join without a seam. */
.band { overflow: hidden; margin-top: clamp(30px, 4vw, 60px); padding: clamp(12px, 1.5vw, 24px) 0; border-block: 1px solid var(--line); }
.band div { display: flex; gap: 0.45em; padding-right: 0.45em; width: max-content; white-space: nowrap; font: 600 clamp(28px, 3.8vw, 72px) / 1.15 var(--display); letter-spacing: -0.03em; color: var(--bg); -webkit-text-stroke: 1.5px var(--line-2); paint-order: stroke fill; will-change: transform; }
.band.run div { animation: band var(--band-time, 40s) linear infinite; }
.band:hover div { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-50%); } }
/* the dots: the colour of the page's program; on the home page - of the program named before the dot */
.band div b { font-weight: 600; -webkit-text-stroke: 0; color: var(--tone); }
.band.all div b:nth-of-type(3n + 1) { color: var(--rc); }
.band.all div b:nth-of-type(3n + 2) { color: var(--tm); }
.band.all div b:nth-of-type(3n) { color: var(--cu); }

/* ---------- product pages ---------- */
.stats .cell { padding: clamp(18px, 2vw, 30px) 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.stats .cell::before { display: none; }
.stat b { display: block; font: 600 clamp(34px, 4.2vw, 78px) / 1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .mono { display: block; margin-top: 12px; font-size: 15px; }
.block { padding-block: clamp(44px, 6vw, 100px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 2.4vw, 36px); }
.block-head h2 { font-size: clamp(24px, 2.7vw, 46px); }
.feat { min-height: clamp(240px, 19vw, 330px); display: flex; flex-direction: column; }
.feat:hover { transform: translateY(-5px); }
.feat h3 { margin-top: 26px; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.2; letter-spacing: -0.02em; }
.feat p { margin-top: 10px; color: var(--muted); max-width: 30ch; }
.viz { position: relative; height: 96px; display: grid; place-items: center start; }

/* small moving pictures for the abilities */
.v-rings { place-items: center start; padding-left: 40px; }
.v-rings i { position: absolute; left: 34px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent); animation: ring 3s var(--ease) infinite; }
.v-rings i:nth-child(2) { animation-delay: 1s; } .v-rings i:nth-child(3) { animation-delay: 2s; }
.v-rings b { position: absolute; left: 39px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.v-touch svg { width: min(260px, 100%); height: 96px; }
.v-touch path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 420; animation: trail 4s linear infinite; }
.v-touch .rail { stroke: var(--line-2); stroke-dasharray: none; animation: none; stroke-width: 1; }
@keyframes trail { from { stroke-dashoffset: 490; } to { stroke-dashoffset: 0; } }
.v-keys { display: flex; gap: 8px; align-items: center; }
.v-keys kbd { padding: 9px 14px; border-radius: 10px; font: 600 13.5px var(--sans); color: var(--ink); background: #23262e; border: 1px solid var(--line-2); border-bottom-width: 3px; animation: key 3.6s ease-in-out infinite; }
.v-keys kbd:nth-child(2) { animation-delay: 0.25s; } .v-keys kbd:nth-child(3) { animation-delay: 0.5s; }
@keyframes key { 0%, 12%, 100% { transform: none; background: #23262e; color: var(--ink); } 6% { transform: translateY(2px); background: var(--accent); color: var(--accent-ink); } }
.v-bars { display: flex; gap: 5px; align-items: center; }
.v-bars i { width: 6px; height: 64px; border-radius: 3px; background: var(--ink); transform-origin: 50% 50%; animation: bar 1.1s ease-in-out infinite alternate; }
.v-bars i:nth-child(2n) { animation-duration: 0.8s; background: var(--accent); }
.v-bars i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -0.4s; }
.v-bars i:nth-child(5n) { animation-duration: 0.95s; animation-delay: -0.7s; }
@keyframes bar { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
.v-pass { display: flex; align-items: center; }
.v-pass .dev { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 14px; color: var(--ink); }
.v-pass .wire { position: relative; width: 110px; height: 1px; background: var(--line-2); }
.v-pass .wire::after { content: ""; position: absolute; top: -4px; left: 0; width: 22px; height: 9px; border-radius: 5px; background: var(--accent); animation: pass 2.4s ease-in-out infinite alternate; }
@keyframes pass { to { left: calc(100% - 22px); } }
.v-icon .i { width: 56px; height: 56px; stroke-width: 1.2; color: var(--accent); }
.v-icon .i.spin { animation: spin 9s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.v-scan { display: grid; gap: 9px; width: min(250px, 100%); align-content: center; overflow: hidden; }
.v-scan i { display: block; height: 9px; border-radius: 5px; background: #2a2d36; }
.v-scan i:nth-child(2) { width: 76%; } .v-scan i:nth-child(3) { width: 90%; } .v-scan i:nth-child(4) { width: 58%; }
.v-scan::after { content: ""; position: absolute; left: 0; top: 0; width: min(250px, 100%); height: 2px; background: var(--accent); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 55%, transparent); animation: scan 2.8s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(8px); } to { transform: translateY(86px); } }
.v-chips { display: flex; flex-wrap: wrap; gap: 7px; align-content: center; max-width: 300px; }
.v-chips span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px var(--sans); color: var(--muted); animation: vanish 5s ease-in-out infinite; }
.v-chips span:nth-child(2) { animation-delay: 0.5s; } .v-chips span:nth-child(3) { animation-delay: 1s; } .v-chips span:nth-child(4) { animation-delay: 1.5s; } .v-chips span:nth-child(5) { animation-delay: 2s; }
@keyframes vanish { 0%, 30%, 100% { opacity: 1; transform: none; } 45%, 80% { opacity: 0; transform: translateY(-8px); } }
.v-toggles { display: flex; gap: 12px; align-items: center; }
.v-toggles i { position: relative; width: 48px; height: 26px; border-radius: 99px; background: #2a2d36; animation: sw-bg 4s ease-in-out infinite; }
.v-toggles i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); animation: sw 4s ease-in-out infinite; }
.v-toggles i:nth-child(2), .v-toggles i:nth-child(2)::after { animation-delay: 1.3s; }
.v-toggles i:nth-child(3), .v-toggles i:nth-child(3)::after { animation-delay: 2.6s; }
@keyframes sw { 0%, 40%, 100% { transform: translateX(22px); background: var(--accent-ink); } 50%, 90% { transform: none; background: var(--ink); } }
@keyframes sw-bg { 0%, 40%, 100% { background: var(--accent); } 50%, 90% { background: #2a2d36; } }

/* screenshots: they open like a curtain */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.shots .window, .shots .phone { transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s; }
.shots .window:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 60px 120px -50px #000, 0 30px 90px -50px var(--tone); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 44px); }
.phones .phone { width: min(24%, 330px); will-change: transform; }
.phones .phone:nth-child(1) { transform: translateY(calc((1 - var(--p, 0)) * 90px)); }
.phones .phone:nth-child(2) { transform: translateY(calc((1 - var(--p, 0)) * 30px)); }
.phones .phone:nth-child(3) { transform: translateY(calc((1 - var(--p, 0)) * 150px)); }
.phones .tall { width: min(30%, 420px); align-self: center; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; font-size: clamp(19px, 1.5vw, 26px); letter-spacing: -0.01em; }

/* what is new in the published version */
.news { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 4vw, 90px); align-items: start; }
.news h2 { font-size: clamp(24px, 2.7vw, 46px); }
.news .mono { display: block; margin-top: 16px; font-size: 15px; }
.news ul { margin: 0; padding: 0; list-style: none; }
.news li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; }
.news li:first-child { padding-top: 4px; }
.news li:last-child { border-bottom: 0; }
.news li::before { content: ""; position: absolute; left: 2px; top: 1.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.news li:first-child::before { top: calc(1.5em - 12px); }

/* the last block: download. A field of the program's colour; a slow light crosses it. */
.final { position: relative; width: min(1760px, 100% - 2 * var(--gutter)); margin: clamp(30px, 4vw, 60px) auto clamp(30px, 4vw, 60px); border-radius: var(--r); background: var(--field); color: #fff; overflow: hidden; }
.final-in { position: relative; width: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 50px; padding: clamp(40px, 6vw, 110px) clamp(22px, 4vw, 70px); }
.final h2 { font-size: clamp(30px, 4.6vw, 86px); }
.final .cta { margin-top: 0; }

/* ---------- downloads ---------- */
.page-head { padding-block: clamp(36px, 4.4vw, 80px) clamp(24px, 3vw, 44px); }
.page-head h1 { font-size: clamp(34px, 5vw, 92px); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(22px, 2.4vw, 36px); }
.tabs button { padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: color 0.2s, background 0.3s, border-color 0.3s; }
.tabs button:hover { color: var(--ink); border-color: var(--ink); }
.tabs button.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.dl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 90px); align-items: center; }
.dl[data-product="uninstaller"] { --tone: var(--cu); --field: var(--cu-field); --accent: #4fd6a3; }
.dl[data-product="translator"] { --tone: var(--tm); --field: var(--tm-field); --accent: #ff8cc6; }
.dl.gone { display: none; }
.dl-name { display: flex; align-items: center; gap: 18px; }
.dl-name img { width: 58px; height: 58px; border-radius: 15px; }
.dl h2 { margin-top: 4px; font-size: clamp(21px, 2.2vw, 38px); }
.dl-text > p { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.25vw, 21px); max-width: 34ch; }
.dl-get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.dl-shot { perspective: 1500px; }
.dl-shot .window { transform: rotateY(-9deg) rotateX(4deg); transition: transform 0.9s var(--ease); }
.dl:hover .dl-shot .window { transform: none; }
.dl-shot .phones .phone { width: 30%; transform: none; transition: transform 0.9s var(--ease); }
.dl:hover .dl-shot .phones .phone:nth-child(1) { transform: translateY(-14px) rotate(-3deg); }
.dl:hover .dl-shot .phones .phone:nth-child(2) { transform: translateY(-14px) rotate(3deg); }
.narrow { width: min(380px, 70%); margin-inline: auto; }
.note { padding-block: 26px clamp(50px, 6vw, 100px); color: var(--dim); font-size: 15px; max-width: 80ch; }

/* ---------- the web client: the form ---------- */
.login .mono { display: block; }
.login h1 { margin-bottom: clamp(22px, 2.6vw, 44px); }
.field { display: block; margin-top: 20px; max-width: 520px; }
.field input { display: block; width: 100%; margin-top: 8px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 18px; outline: 0; background: rgba(255, 255, 255, 0.03); color: var(--ink); caret-color: var(--accent); font: 600 clamp(22px, 1.9vw, 30px)/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; transition: border-color 0.3s, box-shadow 0.3s; }
.field input::placeholder { color: #3a3d47; }
.field input:hover { border-color: var(--dim); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 99999s; }
.check { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.check:hover { color: var(--ink); }
.check input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--line-2); border-radius: 7px; background: none; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check input:checked { border-color: var(--rc); background: var(--rc); }
.check input:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.login .cta { margin-top: 28px; }
.msg { min-height: 24px; margin-top: 16px; color: var(--bad); font-size: 15.5px; }
.login-hint { justify-self: center; width: 100%; text-align: center; }
.login-hint .window { transform: rotate(2deg); transition: transform 0.8s var(--ease); }
.login-hint:hover .window { transform: none; }
.login-hint .mono { margin-top: 26px; }

/* ---------- the web client: the session covers the page ---------- */
.session { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #000; }
.session video { flex: 1; min-height: 0; width: 100%; object-fit: contain; outline: none; cursor: none; }
.session video.pointer { cursor: default; }
.overlay { position: absolute; inset: 0 0 57px; display: grid; place-content: center; justify-items: center; gap: 12px; pointer-events: none; background: rgba(14, 15, 18, 0.74); font: 600 clamp(18px, 1.8vw, 26px) var(--display); letter-spacing: -0.02em; text-align: center; }
.overlay .mono { min-height: 18px; font-family: var(--sans); }
.spinner { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 11px; background: var(--rc-field); animation: turn 1.6s var(--ease) infinite; }
@keyframes turn { 0% { transform: none; } 50% { transform: rotate(90deg) scale(0.62); } 100% { transform: rotate(180deg); } }
.bar { flex: none; display: flex; align-items: center; gap: 8px; height: 57px; padding: 0 12px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--bg); scrollbar-width: none; }
.bar button, .bar select { flex: none; height: 36px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); font: 500 13.5px var(--sans); white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bar select { padding-right: 8px; }
.bar select option { background: var(--panel); color: var(--ink); }
.bar button:hover, .bar select:hover { border-color: var(--ink); }
.bar button:active { background: var(--rc); border-color: var(--rc); color: #fff; }
.bar button.icon { width: 36px; padding: 0; display: grid; place-items: center; }
.bar .i { width: 18px; height: 18px; }
#sound .off, #sound.muted .on { display: none; }
#sound.muted .off { display: block; }
#sound.muted { color: var(--muted); }
.bar button.danger { margin-left: auto; border-color: var(--bad); color: var(--bad); }
.bar button.danger:hover { background: var(--bad); color: var(--accent-ink); }
.dot { flex: none; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.stats-line { flex: none; min-width: 150px; margin-right: 6px; color: var(--muted); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(30px, 4vw, 60px); border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(16px, 2.4vw, 40px); padding-block: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 2.4vw, 40px); }
.footer nav a { color: var(--muted); font-size: 15.5px; }
.footer nav a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vmin; background: rgba(8, 9, 11, 0.92); backdrop-filter: blur(10px); cursor: zoom-out; animation: fade 0.25s; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 14px; border: 1px solid var(--line-2); animation: pop 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }

/* ---------- appearing on scroll: plays again every time the block comes back into view ---------- */
.js .reveal { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cell.reveal.in:hover { transition-delay: 0s; }
.js .wipe > * { clip-path: inset(-20% -20% 120% -20%); transition: clip-path 1.2s var(--ease) var(--d, 0s), transform 0.9s var(--ease); }
.js .wipe.in > * { clip-path: inset(-20% -20% -20% -20%); }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .hero-grid, .dl, .c2, .prods, .news { grid-template-columns: minmax(0, 1fr); }
  .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .login-hint { display: none; }
  .stage { margin-left: 6%; }
  .prod { min-height: 560px; }
  .phones .phone { width: 30%; }
  .phones .tall { display: none; }
}
@media (max-width: 620px) {
  .c3 { grid-template-columns: minmax(0, 1fr); }
  .logo span { display: none; } /* the mark alone: the links need the room */
  .nav-in, .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
  .nav .btn.small { padding: 10px; gap: 0; font-size: 0; } /* the arrow alone */
  .cta .btn { flex: 1 1 100%; }
  .feat { min-height: 0; }
  .final .cta { width: 100%; }
  .glow { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .wipe > *, .js .lines .line > span { opacity: 1; transform: none; clip-path: none; }
}
