@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}

/* Cosmic palette from the MostViable profile cards */
:root {
  --space: #090f19; --space-mid: #1e3446; --space-end: #111b27;
  --tile: #111c29; --line: #42677a; --deep: #254251; --teal: #3f6d7d;
  --text: #eef7f8; --text-2: #d4e5eb; --muted: #8cabb9;
  --accent: #6d9eb4; --accent-2: #9fc9dc; --caret: #83c5d4; --ice: #d2edf1;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* No visible scrollbar, scrolling itself still works */
html { scroll-behavior: smooth; background: var(--space); scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0; min-height: 100vh;
  background: var(--space); color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
::selection { background: rgba(109,158,180,.4); }
/* Text can't be selected or copied, except the nick and contact handles (.copyable) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.copyable, .copyable * { -webkit-user-select: text; user-select: text; }

a { color: var(--accent-2); text-underline-offset: 3px; text-decoration-color: rgba(159,201,220,.4); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* Layers space.js puts over the sky: twinkling stars (it sets their opacity; each is its own
   compositor layer, so that needs no repaint), the glow around the black hole and the hole itself */
.space-stars, .space-glow, .space-hole { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; }
.space-stars { width: 100%; height: 100%; overflow: hidden; }
.space-stars i { position: absolute; border-radius: 50%; opacity: .45; will-change: opacity; }
.top, main, .foot { position: relative; z-index: 1; }
main { flex: 1; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

@keyframes blink { 50% { opacity: 0; } }
.caret { color: var(--caret); -webkit-text-fill-color: var(--caret); font-weight: 700; animation: blink 1s steps(1) infinite; }

/* Header: a transparent bar at the top of the page that turns into a floating glass pill
   once the page is scrolled, same motion as deepseek.com/harness: the width follows a
   critically damped spring (~0.8s), the glass fades in over 0.4s, extras blur in from the left */
:root { --spring: cubic-bezier(.3, .9, .3, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.04, 0.13, 0.241, 0.355, 0.463, 0.559, 0.642, 0.713, 0.771, 0.819, 0.857, 0.888, 0.913, 0.932, 0.948, 0.96, 0.969, 0.976, 0.982, 0.986, 0.989, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 1); }
}
.top { position: sticky; top: 0; z-index: 10; padding: 8px 0; pointer-events: none; }
.top-bar {
  pointer-events: auto; position: relative; display: flex; align-items: center;
  width: calc(100% - 48px); max-width: 1072px; height: 48px; margin: 0 auto; padding: 0;
  border-radius: 999px;
  transition: max-width .8s var(--spring), padding .8s var(--spring);
}
.top-bar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(17,28,41,.72); border: 1px solid rgba(66,103,122,.75);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 32px -14px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transition: opacity .4s ease-in-out, visibility .4s;
}
.top-bar.is-scrolled { max-width: 960px; padding: 0 7px 0 20px; }
.top-bar.is-scrolled::before { opacity: 1; visibility: visible; transition: opacity .4s ease-in-out, visibility 0s; }
.top-left, .top-right { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.top-right { justify-content: flex-end; }
.brand {
  font: 700 21px/1 var(--mono); letter-spacing: 4px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { flex: none; display: flex; gap: 28px; }
.nav a { font: 500 13.5px var(--mono); color: var(--muted); text-decoration: none; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); } }

/* Chip and button that only show up in the pill: they open with a wipe on the same spring
   and blur in from the left. The wipe is a clip-path whose end state lies outside the
   element, so at rest nothing is cut off whatever the font metrics are */
.reveal { display: inline-flex; }
.reveal-in {
  display: inline-flex; align-items: center;
  opacity: 0; filter: blur(3px); transform: translateX(-6px); visibility: hidden;
  clip-path: inset(-12px 100% -12px -12px round 999px);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease, clip-path .4s var(--ease-out), visibility 0s .2s;
}
/* The button sits at the right edge, so it wipes in from the right and slides in leftwards */
.top-right .reveal-in { transform: translateX(6px); clip-path: inset(-12px -12px -12px 100% round 999px); }
.is-scrolled .reveal-in {
  opacity: 1; filter: blur(0); transform: none; visibility: visible;
  clip-path: inset(-12px -12px -12px -12px round 999px);
  transition: opacity .35s var(--ease-out), filter .35s var(--ease-out), transform .35s var(--ease-out), clip-path .8s var(--spring), visibility 0s;
}
.bar-chip {
  margin-left: 12px; display: inline-flex; padding: 1px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(210,237,241,.55) 0%, rgba(131,197,212,.18) 38%, rgba(131,197,212,.06) 68%, rgba(210,237,241,.28) 100%);
}
.bar-chip span {
  padding: 5px 11px 4px; border-radius: 999px; white-space: nowrap;
  font: 500 11px/1 var(--mono); color: rgba(225,240,245,.9); background: rgba(37,66,81,.6);
}
.reveal-in .btn { margin-left: 16px; padding: 9px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 1px rgba(210,237,241,.25), 0 4px 14px -6px rgba(109,158,180,.8); }
@media (max-width: 1023px) { .reveal-chip { display: none; } }
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  font: 600 14.5px/1.2 var(--mono); color: var(--text); text-decoration: none; text-align: center;
  background: rgba(17,28,41,.82); border: 1px solid var(--line);
  transition: transform 160ms var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-primary {
  color: var(--space); border-color: transparent;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(210,237,241,.25), 0 10px 32px -10px rgba(109,158,180,.8);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: #162536; border-color: var(--accent-2); }
  .btn-primary:hover { box-shadow: 0 0 0 1px rgba(210,237,241,.45), 0 12px 40px -8px rgba(131,197,212,.9); }
}

/* Hero */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero-text { max-width: 620px; text-shadow: 0 2px 18px rgba(9,15,25,.9); }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 13px 6px 8px; border-radius: 999px;
  font: 500 12.5px var(--mono); color: var(--text-2); text-shadow: none;
  background: rgba(17,28,41,.75); border: 1px solid rgba(66,103,122,.7);
}
.flag { width: 20px; height: 14px; border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #ae1c28; }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: #21468b; }
/* Live server status next to "сервер в Нидерландах" (status.js reads /status.json) */
.status { display: inline-flex; align-items: center; gap: 7px; padding-left: 10px; border-left: 1px solid rgba(66,103,122,.7); }
.status[hidden] { display: none; }
.status i { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--caret); }
.status i::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--caret);
  animation: status-ping 2s infinite;
}
/* The site's ease-out (--ease-out) in steps, ~30 a second at most: a smooth endless animation would
   make Chrome redraw the screen on every vsync. The last half is nearly invisible, so one step */
@keyframes status-ping {
  0%   { transform: scale(.5);    opacity: .8;   animation-timing-function: steps(6); }
  10%  { transform: scale(.938);  opacity: .482; animation-timing-function: steps(9); }
  25%  { transform: scale(1.353); opacity: .18;  animation-timing-function: steps(8); }
  50%  { transform: scale(1.563); opacity: .027; animation-timing-function: steps(1); }
  100% { transform: scale(1.6);   opacity: 0; }
}
.status.is-down i, .status.is-down i::after { background-color: #f0b35a; border-color: #f0b35a; }
.status.is-down i::after { background: none; }
h1 {
  margin: 0; font: 700 clamp(34px, 5.2vw, 60px)/1.08 var(--mono); letter-spacing: -1.2px;
  color: var(--text); text-wrap: balance;
}
.grad {
  background: linear-gradient(90deg, var(--ice), var(--caret) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
}
.lead { margin: 22px 0 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; text-shadow: none; }

/* Typed status line, same timing as the profile header */
.typed { position: relative; height: 24px; margin-top: 28px; font: 500 14px/24px var(--mono); color: var(--accent-2); }
.typed::before { content: '$ '; color: var(--muted); }
.tl {
  position: absolute; left: 2ch; top: 0; white-space: nowrap; animation: type 16s linear infinite both;
  /* one step per character (ui.js sets --n): typing, not a wipe. A stepped animation also only makes
     Chrome redraw when the step changes, a smooth endless one redraws on every vsync */
  animation-timing-function: steps(var(--n, 24));
}
.t2 { animation-delay: 4s; }
.t3 { animation-delay: 8s; }
.t4 { animation-delay: 12s; }
@keyframes type {
  0%   { clip-path: inset(0 100% 0 0); }
  9%   { clip-path: inset(0 0 0 0); }
  19%  { clip-path: inset(0 0 0 0); }
  24%  { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

/* Sections */
.section { padding-top: 64px; padding-bottom: 64px; scroll-margin-top: 64px; }
.sec-head { margin-bottom: 28px; max-width: 640px; }
.kicker { margin: 0 0 10px; font: 500 13px var(--mono); color: var(--caret); }
h2 {
  margin: 0; font: 700 clamp(26px, 3.4vw, 38px)/1.15 var(--mono); letter-spacing: -.6px; text-wrap: balance;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p:not(.kicker) { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards: gradient, glow, star dots and bottom stripe like the profile cards.
   The glow position (--gx/--gy) follows the cursor, see glow.js */
.card {
  position: relative; overflow: hidden; border-radius: 16px; padding: 24px;
  border: 1px solid rgba(66,103,122,.75);
  background:
    radial-gradient(360px 220px at var(--gx, 14%) var(--gy, 0%), rgba(109,158,180,.2), transparent 72%),
    linear-gradient(135deg, rgba(9,15,25,.9), rgba(30,52,70,.8) 55%, rgba(17,27,39,.9));
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.9);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 6px 8px, rgba(238,247,248,.22) .85px, transparent 1.3px),
    radial-gradient(circle at 24px 22px, rgba(159,201,220,.24) .6px, transparent 1.1px),
    radial-gradient(circle at 30px 4px, rgba(238,247,248,.18) .45px, transparent .9px);
  background-size: 32px 32px;
}
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); opacity: .6; pointer-events: none; }
.card > * { position: relative; }
.card h3 {
  margin: 0; font: 700 18px/1.3 var(--mono); letter-spacing: -.2px;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-top h3 { font-size: 21px; }
.tag {
  flex: none; padding: 3px 10px; border-radius: 999px;
  font: 500 11.5px var(--mono); color: var(--caret);
  background: rgba(131,197,212,.08); border: 1px solid rgba(131,197,212,.35);
}
.route { display: grid; gap: 8px; margin: 18px 0 0; }
.route div {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 14px; border-radius: 10px;
  background: rgba(9,15,25,.55); border: 1px solid rgba(66,103,122,.45);
}
.route dt { flex: none; min-width: 84px; font: 500 12px var(--mono); color: var(--caret); }
.route dt.dim { color: var(--muted); }
.route dd { margin: 0; font: 500 13.5px var(--mono); color: var(--text); }

.ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--tile); border: 1.5px solid var(--line);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; }
.num {
  display: block; margin-bottom: 12px; font: 700 36px/1 var(--mono);
  background: linear-gradient(180deg, var(--accent-2), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.apps { margin-top: 16px; display: grid; gap: 14px; padding: 20px 24px; }
.app-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.app-name { min-width: 56px; font: 700 16px var(--mono); color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  font: 500 13px var(--mono); color: var(--text-2);
  background: rgba(9,15,25,.55); border: 1px solid rgba(66,103,122,.8);
  transition: transform 160ms var(--ease-out), border-color .2s ease, color .2s ease;
}
.pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pill:hover { border-color: var(--accent-2); color: var(--text); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0; }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 56px 18px 22px; font: 600 15px/1.45 var(--mono); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; margin-top: -12px;
  width: 24px; height: 24px; display: grid; place-items: center;
  font: 400 22px/1 var(--mono); color: var(--caret);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.is-closing summary::after { transform: none; }   /* closing is animated from ui.js: the + turns back at once */
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--text-2); }

/* Final call to action */
.cta { text-align: center; padding: 52px 24px; }
.cta { background:
    radial-gradient(520px 260px at var(--gx, 50%) var(--gy, 0%), rgba(109,158,180,.28), transparent 72%),
    linear-gradient(135deg, rgba(9,15,25,.9), rgba(30,52,70,.82) 55%, rgba(17,27,39,.9)); }
.cta h2 { font-size: clamp(22px, 3vw, 32px); }
.cta p { margin: 12px auto 26px; color: var(--muted); }
/* Bot QR for desktop visitors: the subscription lives on the phone, so they scan instead of clicking.
   Dark modules on the light ice tile, the contrast phone cameras read best */
.qr { display: none; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .qr { display: flex; } }
.qr-tile {
  display: block; width: 132px; height: 132px; padding: 12px; border-radius: 16px; background: #eef7f8;
  box-shadow: 0 0 0 1px rgba(210,237,241,.25), 0 12px 32px -12px rgba(109,158,180,.7);
}
.qr-tile svg { display: block; width: 100%; height: 100%; fill: #090f19; }
.qr-cap { font: 500 12.5px var(--mono); color: var(--muted); }

/* Footer */
.foot {
  margin-top: 24px; border-top: 1px solid rgba(66,103,122,.4); background: rgba(9,15,25,.7);
  font: 500 12.5px/1.6 var(--mono); color: var(--muted);
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
/* The author's nick links to the personal card: same colour as the footer text,
   an underline in the heading gradient draws in from the left on hover */
.name-link {
  color: inherit; text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(90deg, var(--text), var(--accent-2)) no-repeat 0 100% / 0 1px;
  transition: background-size .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .name-link:hover { background-size: 100% 1px; } }
.name-link:focus-visible { background-size: 100% 1px; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top-bar { width: calc(100% - 32px); }
  .top-bar.is-scrolled { padding: 0 6px 0 16px; }
  /* The black hole sits in the top of the screen on phones, text starts below it */
  .hero { min-height: 0; align-items: flex-start; padding-top: 29svh; padding-bottom: 40px; }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .card { padding: 20px; }
  .apps { padding: 18px 20px; }
  .foot-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status i::after { animation: none; opacity: 0; }
  .top-bar { transition: none; }
  .reveal-in, .is-scrolled .reveal-in { clip-path: none; }
  .caret { animation: none; }
  .tl { animation: none; clip-path: none; }
  .t2, .t3, .t4 { display: none; }
  .faq summary::after { transition: none; }
}
