/* ============================================================
   aniri. — landing  /  components & sections
   ============================================================ */

/* ---------------- header ---------------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 13px 40px;
}
.brand { font-weight: 700; font-size: 24px; letter-spacing: -0.04em; display: inline-flex; align-items: center; line-height: 1; user-select: none; }
.brand .dot { color: var(--tg); }
.nav-links { display: flex; gap: 30px; align-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav-links a { color: var(--fg-mute); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; gap: 12px; align-items: center; }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg);
  cursor: pointer; transition: background .25s, border-color .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--line-2); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }

.nav-burger { display: none; }

/* ---------------- hero ---------------- */
.hero { padding-top: 170px; padding-bottom: 56px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .05em;
  color: var(--fg-mute); padding: 5px 11px; border: 1px solid var(--line);
  background: var(--surface); opacity: .5;
}
.hero-badge .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.1s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent)} 70%{box-shadow:0 0 0 10px transparent} 100%{box-shadow:0 0 0 0 transparent} }

.hero-logo {
  font-weight: 600;
  font-size: clamp(90px, 18.75vw, 264px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 30px 0 8px;
  display: flex; align-items: flex-end; justify-content: center;
  user-select: none;
}
.hero-logo .dot { color: var(--tg); }
.hero h1 {
  font-weight: 600; font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.02em;
  line-height: 1.1; margin-top: 6px;
}
.hero h1 .mut { color: var(--fg-mute); }
.hero-sub { color: var(--fg-mute); font-size: clamp(16px,1.5vw,20px); margin: 22px auto 0; max-width: 60ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-cta--try { margin-top: 20px; }
/* mobile-only "больше про aniri." scroll link */
.hero-more {
  display: none; flex-direction: column; align-items: center; gap: 6px;
  margin-top: auto; padding-bottom: max(env(safe-area-inset-bottom, 12px), 12px);
  text-decoration: none; color: var(--fg-mute);
  font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .03em;
  transition: color .25s;
}
.hero-more:hover { color: var(--fg); }
.hero-more svg { width: 22px; height: 22px; animation: heroChevron 2s ease-in-out infinite; }
@keyframes heroChevron { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-more svg { animation: none; } }
.hero-stats { display: flex; justify-content: center; gap: 0; margin-top: 64px; border: 1px solid var(--line); background: var(--surface); }
.hero-stats .st { padding: 22px 40px; text-align: left; flex: 1; border-right: 1px solid var(--line); }
.hero-stats .st:last-child { border-right: none; }
.hero-stats .st b { display: block; font-size: clamp(24px,2.6vw,34px); font-weight: 700; letter-spacing: -0.03em; }
.hero-stats .st span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg-dim); letter-spacing: .04em; }

/* hero blocked-resources counter — white block */
.hero-counters {
  margin: 46px auto 56px; max-width: 1100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.hero-counter {
  background: #fff; color: #0a0a0b;
  border: 1px solid var(--line);
  padding: 7px 26px 7px; text-align: center;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.8);
  display: flex; flex-direction: column;
}
.hero-counter .hc-main { flex: 1 1 auto; }
@media (max-width: 760px) {
  .hero-counters { grid-template-columns: 1fr; max-width: 640px; }
}
.hc-num {
  display: flex; align-items: baseline; justify-content: center;
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(24px, 3.4vw, 42px);
  font-variant-numeric: tabular-nums; color: #0a0a0b;
}
.hc-numwrap { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; }
.hc-val {
  display: inline-block; text-align: center; font-variant-numeric: tabular-nums;
  transform-origin: 50% 60%;
  transform: scale(.74); opacity: 0;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .6s ease;
}
.hc-val.in { transform: scale(1); opacity: 1; }
.hc-approx { font-weight: 700; color: #0a0a0b; margin-right: 4px; }
.hc-main { margin-top: 6px; font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; color: #1a1a1d; letter-spacing: -.01em; text-wrap: balance; }
.hc-note { margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #9a9aa0; letter-spacing: .03em; }

/* ---------------- shutdown comparison ---------------- */
.cmp-head { text-align: center; max-width: 760px; margin: 0 auto 60px; transition: opacity .5s; }
.cmp-head .lead { margin-left: auto; margin-right: auto; }
.cmp-head .title { font-weight: 700; line-height: 1.0; letter-spacing: -0.025em; text-wrap: balance; transition: opacity .35s; }
.cmp-head .t-line1 { color: var(--fg); }
.cmp-head .t-grad {
  background: linear-gradient(96deg, #2fd463 0%, #5deb88 55%, #2fd463 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 32px color-mix(in srgb, #2fd463 35%, transparent);
}

.cmp-stage {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: background .8s ease, border-color .8s ease;
  padding: 44px 40px 72px;
}
.cmp-stage.off {
  background:
    radial-gradient(45% 70% at 50% 55%, rgba(255,255,255,.035) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.018) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.018) 39px 40px),
    var(--surface);
}
.cmp-stage.on {
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(120,150,235,.045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(120,150,235,.045) 39px 40px),
    var(--surface);
  border-color: color-mix(in srgb, #3a76f0 22%, var(--line));
}
/* soft BLUE glow under the phone — fades in smoothly via opacity (gradients can't transition) */
.cmp-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.3s ease;
  background: radial-gradient(42% 48% at 31% 60%, rgba(58,118,240,.16) 0%, rgba(58,118,240,.06) 40%, transparent 72%);
}
.cmp-stage.on::before { opacity: 1; }
.cmp-stage::after {
  content: ''; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) 0 0/22px 1px no-repeat, linear-gradient(#000 0 0) 0 0/1px 22px no-repeat,
    linear-gradient(#000 0 0) 100% 0/22px 1px no-repeat, linear-gradient(#000 0 0) 100% 0/1px 22px no-repeat,
    linear-gradient(#000 0 0) 0 100%/22px 1px no-repeat, linear-gradient(#000 0 0) 0 100%/1px 22px no-repeat,
    linear-gradient(#000 0 0) 100% 100%/22px 1px no-repeat, linear-gradient(#000 0 0) 100% 100%/1px 22px no-repeat;
          mask: linear-gradient(#000 0 0) 0 0/22px 1px no-repeat, linear-gradient(#000 0 0) 0 0/1px 22px no-repeat,
    linear-gradient(#000 0 0) 100% 0/22px 1px no-repeat, linear-gradient(#000 0 0) 100% 0/1px 22px no-repeat,
    linear-gradient(#000 0 0) 0 100%/22px 1px no-repeat, linear-gradient(#000 0 0) 0 100%/1px 22px no-repeat,
    linear-gradient(#000 0 0) 100% 100%/22px 1px no-repeat, linear-gradient(#000 0 0) 100% 100%/1px 22px no-repeat;
}
.cmp-stage svg.links {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1;
  filter: blur(3.2px);
}

/* service icon columns flank the phone */
/* services scattered across the right side; whitelist grouped */
.svc-field { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
@property --sFloat { syntax: '<length>'; inherits: false; initial-value: 0px; }
.svc-field .svc {
  position: absolute; translate: -50% -50%; pointer-events: auto; will-change: transform;
  transform: translateY(var(--sFloat, 0px)) translateY(var(--sPar, 0px));
  animation: svcBob var(--dur, 5.5s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
@keyframes svcBob { 0%, 100% { --sFloat: 0px; } 50% { --sFloat: -10px; } }
@media (prefers-reduced-motion: reduce) { .svc-field .svc { animation: none; } }
.svc-field .svc:hover { scale: 1.08; }
/* whitelist group sits at the bottom — no visible frame */
.wl-ring {
  position: absolute; left: 58%; top: 84%; width: 40%; height: 13%;
  z-index: 2; pointer-events: none;
}
.wl-tag {
  position: absolute; top: -9px; left: 18px; padding: 0 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em;
  color: rgba(255,255,255,.78); background: var(--surface); white-space: nowrap;
}

.svc {
  width: 62px; height: 62px; position: relative;
  display: grid; place-items: center;
  background: var(--surface); border-radius: 50%;
  border: 1px solid var(--line);
  filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
  transition:
    filter .6s ease calc(var(--svc-delay, 0s) + .24s),
    opacity .5s ease var(--svc-delay, 0s),
    border-color .55s ease calc(var(--svc-delay, 0s) + .12s),
    background .55s ease calc(var(--svc-delay, 0s) + .12s),
    scale .35s ease;
}
.svc svg { width: 38px; height: 38px; display: block; transition: filter .55s ease var(--svc-delay, 0s), opacity .55s ease var(--svc-delay, 0s); }
/* state badge — ✕ only when blocked (OFF). No ✓ when alive. */
.svc::after {
  content: ''; position: absolute; right: -4px; top: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #44444b; border: 2px solid var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M3 3l6 6M9 3l-6 6' stroke='%239a9aa3' stroke-width='2' stroke-linecap='round'/></svg>");
  background-size: 12px 12px; background-repeat: no-repeat; background-position: center;
  transition: background-color .4s, transform .35s cubic-bezier(.2,1.6,.4,1), opacity .4s;
}
.svc.alive::after { opacity: 0; transform: scale(.4); }
/* dead → dim the logo + chip, but keep the red ✕ badge bright */
.svc.dead { border-color: rgba(255,255,255,.08); background: var(--surface); }
.svc.dead svg { filter: grayscale(1) brightness(.55); opacity: .5; }
/* alive → brand-colored glow */
.svc.alive {
  filter: drop-shadow(0 0 16px var(--glow,#fff)) drop-shadow(0 0 4px var(--glow,#fff));
  border-color: color-mix(in srgb, var(--glow) 45%, var(--line));
  background: color-mix(in srgb, var(--glow,#fff) 8%, var(--surface));
}
.svc:hover { scale: 1.08; }
/* whitelist icons (inside // белый список) — no glow, just a clean neutral chip */
.svc[data-gov="1"].alive {
  filter: none;
  border-color: var(--line);
  background: var(--surface);
}
/* light theme: pure-white marks would vanish on the white chip — recolour them dark */
html[data-theme="light"] .svc[data-id="github"] svg path,
html[data-theme="light"] .svc[data-id="twitter"] svg path,
html[data-theme="light"] .svc[data-id="steam"] svg path {
  fill: #0a0a0b;
}

/* ============ centre phone — aniri. app UI (1:1) ============ */
.cmp-phone {
  position: absolute; left: 33%; top: 78%;
  transform: translate(-50%, -50%);
  width: 300px; height: 604px;
  z-index: 5; pointer-events: none;
  perspective: 1300px; perspective-origin: 50% 30%;
  zoom: 1.85;
}
/* depth-of-field: only the top & bottom of the phone defocus, like a shallow-DOF photo */
.cmp-phone::after {
  content: ''; position: absolute; inset: 4px; pointer-events: none; z-index: 30;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  -webkit-mask: linear-gradient(to bottom, #000 0%, transparent 15%, transparent 85%, #000 100%);
          mask: linear-gradient(to bottom, #000 0%, transparent 15%, transparent 85%, #000 100%);
}
.phone-body, .dial-btn { pointer-events: auto; }

/* mobile-only connect button (surrounded by services) — hidden on desktop */
.cmp-mini {
  display: none;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #242429 0%, #161619 74%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  place-items: center; z-index: 6; pointer-events: auto;
}
.cmp-mini-word { font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.05em; font-size: 56px; display: flex; align-items: center; }
.cmp-hint {
  display: none;
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .01em;
  color: var(--fg-mute); white-space: nowrap; z-index: 7; pointer-events: none;
  animation: hintBob 2.4s ease-in-out infinite;
}
.cmp-stage.on .cmp-hint, .cmp-stage.connecting .cmp-hint { opacity: 0; transition: opacity .4s; }
@keyframes hintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .cmp-hint { animation: none; } }
.cmp-mini-word .d { color: #fff; }
.cmp-mini-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,0); transition: border-color .6s ease, box-shadow .6s ease; }
.cmp-stage.on .cmp-mini-ring { border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.5), inset 0 0 18px rgba(255,255,255,.22); }
.cmp-stage.connecting .cmp-mini-ring { border-color: rgba(255,255,255,.16); border-top-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.3); animation: connSpin .9s linear infinite; }
.cmp-mini-pulse { position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); opacity: 0; }
.cmp-stage.on .cmp-mini-pulse { animation: dialPulse 2.8s ease-out infinite; }
.cmp-mini:active { transform: translate(-50%, -50%) scale(.95); }

/* contact shadow on the floor — static */
.phone-shadow {
  position: absolute; left: 50%; bottom: -30px;
  transform: translateX(-50%) scale(.92);
  width: 240px; height: 50px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent 78%);
  filter: blur(11px); opacity: .5; z-index: 0;
}

/* phone wrapper — fixed resting pose (no scroll animation), leaning 4° left */
.phone-fall { width: 100%; height: 100%; transform: rotateZ(-4deg) rotateX(2deg) rotateY(-8deg); transform-style: preserve-3d; }

.phone-body {
  --r: 50px; --depth: 28px;
  position: relative; width: 100%; height: 100%;
  transform: rotateX(16deg) rotateY(26deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}
/* real 3D body: a back shell + core peek past the front face on the receding
   (left/top) edges, forming a genuine silver side rail that follows the rounded
   corners at any angle — not a flat box-shadow fake */
.p-shell {
  position: absolute; inset: 0; border-radius: var(--r);
  transform: translateZ(calc(var(--depth) / -2));
  background: linear-gradient(118deg, #3a3a3d 0%, #1c1c1f 26%, #0c0c0e 50%, #232326 70%, #37373b 100%);
  box-shadow: 0 60px 80px -34px rgba(0,0,0,.78);
  filter: blur(.6px);
}
.p-core {
  position: absolute; inset: 0; border-radius: var(--r);
  transform: translateZ(0);
  background: linear-gradient(116deg, #3e3e42 0%, #242427 18%, #131315 42%, #0a0a0c 56%, #1c1c1f 78%, #303034 100%);
}
.p-face {
  position: absolute; inset: 0; border-radius: var(--r);
  transform: translateZ(calc(var(--depth) / 2));
  transform-style: preserve-3d;
  padding: 5px;
  background: linear-gradient(126deg, #3c3c40 0%, #2a2a2e 9%, #161618 26%, #0d0d0f 46%, #1d1d20 58%, #313135 80%, #161619 96%, #0b0b0d 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.2),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset -2px 0 5px rgba(255,255,255,.1),
    inset 2px -2px 8px rgba(0,0,0,.55);
  z-index: 6;
}
/* machined titanium buttons on the visible LEFT wall (real side plane) — iPhone-style */
.p-btn {
  position: absolute; left: 0; width: 12px;
  transform-origin: left center;
  transform: rotateY(-90deg) translateX(calc(var(--depth) / -2 - 2px));
  background: linear-gradient(90deg, #0a0a0c 0%, #2c2c30 22%, #54545a 46%, #34343a 64%, #131316 86%, #0a0a0c 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.34),
    inset 0 -2px 1px rgba(0,0,0,.65),
    inset 1px 0 1px rgba(255,255,255,.12),
    0 1px 3px rgba(0,0,0,.55);
  border-radius: 6px; z-index: 3;
}
.p-mute { top: 16%; height: 24px; border-radius: 6px; }
.p-vup  { top: 28%; height: 50px; border-radius: 6px; }
.p-vdn  { top: 41%; height: 50px; border-radius: 6px; }
/* notch */
.p-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46%; height: 26px; background: #000; border-radius: 0 0 18px 18px; z-index: 13; display: flex; align-items: center; justify-content: center; gap: 8px; }
.n-speaker { width: 38px; height: 4px; border-radius: 3px; background: #15151a; box-shadow: inset 0 0 1px rgba(120,140,180,.4); }
.n-cam { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #2a3346 0%, #0a0a10 56%, #050509 100%); box-shadow: inset 0 0 2px rgba(110,150,255,.6); }

.p-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 45px; overflow: hidden;
  background: #000;
  display: flex; flex-direction: column; z-index: 6;
}
.p-screen::after { /* subtle glass reflection + very faint display grain */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(128deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.035) 9%, transparent 22%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 2.5px);
  background-size: auto, 100% 2.5px;
}
.p-screen::before { /* connected screen glow — neutral white, very subtle */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(72% 44% at 50% 40%, rgba(255,255,255,.06) 0%, transparent 72%);
  opacity: 0; transition: opacity 1s ease;
}
.cmp-stage.on .p-screen::before { opacity: 1; }

/* android status bar */
.os-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px 3px; position: relative; z-index: 2; }
.os-time { font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.os-ic { display: flex; align-items: center; gap: 5px; color: #fff; }
.os-ic svg { width: 13px; height: 13px; display: block; }
.os-ic .i-tg { width: 12px; height: 12px; }
.os-ic .i-key { width: 14px; opacity: 0; transform: scale(.6); transform-origin: center; transition: opacity .45s ease, transform .45s cubic-bezier(.2,1.5,.4,1); color: var(--accent); }
.cmp-stage.on .os-ic .i-key { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 60%, transparent)); }

/* app body */
.ap { flex: 1; display: flex; flex-direction: column; padding: 6px 16px 0; position: relative; z-index: 1; min-height: 0; }
.ap-toolbar { display: flex; justify-content: flex-end; gap: 15px; align-items: center; margin-bottom: 6px; }
.ap-ic { background: none; border: none; color: #e7e7ea; display: grid; place-items: center; position: relative; cursor: default; padding: 0; }
.ap-ic svg { width: 20px; height: 20px; display: block; }
.ap-support::after { content: ''; position: absolute; top: -1px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.ap-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -.025em; color: #fff; line-height: 1; }
.ap-title .d { color: #fff; }
.ap-sub { margin-top: 7px; font-size: 11px; color: var(--fg-mute); letter-spacing: .01em; transition: color .5s, text-shadow .5s; }
.ap-sub.on { color: var(--accent); text-shadow: 0 0 13px color-mix(in srgb, var(--accent) 60%, transparent); }

/* dial */
.ap-dial { position: relative; align-self: center; width: 172px; height: 172px; margin: 13px 0 4px; display: grid; place-items: center; }
.dial-aura { position: absolute; width: 184px; height: 184px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55) 0%, transparent 66%); opacity: 0; transition: opacity .9s ease; }
.cmp-stage.on .dial-aura { opacity: .32; }
.dial-ring { position: absolute; width: 154px; height: 154px; border-radius: 50%; border: 2px solid rgba(255,255,255,0); transition: border-color .6s ease, box-shadow .6s ease; }
.cmp-stage.on .dial-ring { border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.5), inset 0 0 20px rgba(255,255,255,.22); }
/* connecting — white spinner ring */
.cmp-stage.connecting .dial-ring { border-color: rgba(255,255,255,.16); border-top-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.3); animation: connSpin .9s linear infinite; }
@keyframes connSpin { to { transform: rotate(360deg); } }
.dial-pulse { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); opacity: 0; }
.cmp-stage.on .dial-pulse.p1 { animation: dialPulse 2.8s ease-out infinite; }
.cmp-stage.on .dial-pulse.p2 { animation: dialPulse 2.8s ease-out infinite .9s; }
.cmp-stage.on .dial-pulse.p3 { animation: dialPulse 2.8s ease-out infinite 1.8s; }
@keyframes dialPulse { 0% { transform: scale(.86); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.dial-btn {
  position: relative; width: 140px; height: 140px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #242429 0%, #161619 74%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.dial-btn:active { transform: scale(.95); }
.dial-text { display: flex; align-items: center; gap: 3px; }
.dial-word { font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.05em; font-size: 46px; transition: font-size .45s ease; }
.cmp-stage.on .dial-word { font-size: 30px; }
.dial-word .d { color: #fff; }
.dial-caret { width: 2.5px; height: 36px; background: #fff; transition: height .45s ease; animation: dcaret 1.05s step-end infinite; }
.cmp-stage.on .dial-caret { height: 24px; }
@keyframes dcaret { 50% { opacity: 0; } }
.dial-timer { position: absolute; bottom: 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-mute); opacity: 0; transition: opacity .5s ease; }
.cmp-stage.on .dial-timer { opacity: 1; }

/* stats bar */
.ap-stats { display: flex; align-items: stretch; margin-top: 10px; overflow: hidden; background: #151517; }
.ap-stats > div { display: flex; align-items: center; justify-content: center; padding: 8px 10px; }
.st-prog { flex: 1.3; flex-direction: column; align-items: flex-start; gap: 5px; }
.st-bar { width: 100%; height: 3px; background: #2c2c30; overflow: hidden; }
.st-bar i { display: block; width: 67%; height: 100%; background: var(--fg-mute); }
.st-num { color: var(--fg-mute); font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.st-mid { flex: 1.05; border-left: 1px solid #000; border-right: 1px solid #000; font-weight: 700; color: #fff; font-size: 11px; }
.st-ref { width: 36px; color: var(--fg-dim); }
.st-ref svg { width: 15px; height: 15px; }

/* rows */
.ap-row { display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 11px 13px; background: #151517; cursor: default; position: relative; }
.row-ic { width: 22px; display: grid; place-items: center; color: #cdcdd2; flex: none; }
.row-ic svg { width: 20px; height: 20px; }
.row-flag { width: 22px; height: 16px; overflow: hidden; display: none; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.row-flag i { display: block; height: 33.34%; }
.row-tx { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.row-tx b { font-weight: 600; font-size: 12.5px; color: #fff; letter-spacing: -.01em; }
.row-tx span { font-size: 9.5px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-ping { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); display: none; flex: none; }
.row-chev { color: var(--fg-dim); display: grid; place-items: center; flex: none; }
.row-chev svg { width: 15px; height: 15px; }
.ap-acc { background: #fff; }
.ap-acc .row-ic, .ap-acc .row-tx b, .ap-acc .row-chev { color: #0a0a0b; }
.cmp-stage.on .ap-server .ic-default { display: none; }
.cmp-stage.on .ap-server .row-flag { display: block; }
.cmp-stage.on .ap-server .row-ping { display: block; }

/* toast removed */

.os-home { width: 100px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.85); margin: 7px auto 9px; flex: none; }

/* ============ SVG link styling ============ */
/* connection lines — only visible when VPN is active */
.cmp-stage svg.links line {
  opacity: 0;
  stroke-width: 1.6;
  stroke-dasharray: 7 5;
  transition: opacity .5s, filter .5s;
}
.cmp-stage.on svg.links line {
  opacity: .2;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.2));
}
/* whitelist trunk — one common connection, always active (works without VPN) */
.cmp-stage svg.links line.wl-line {
  opacity: .28;
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.22));
}
@keyframes linkflow { to { stroke-dashoffset: -12; } }

/* (external status bar removed — status now lives inside the phone app) */

/* ---------------- map + advantages ---------------- */
.map-section { padding-bottom: 100px; }
.map-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: stretch; }
.map-box {
  position: relative; aspect-ratio: 1.15 / 1; width: 100%;
  border: 1px solid var(--line); background: var(--bg-1); overflow: hidden;
}
html[data-theme="light"] .map-box { background: #e7e7e3; }
.map-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%,-50%); cursor: default; }
.pin .dotmark { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.pin .dotmark::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid currentColor; opacity: .4; animation: pinpulse 2.4s ease-out infinite; }
@keyframes pinpulse { 0%{ transform: scale(.6); opacity:.7 } 100%{ transform: scale(1.9); opacity:0 } }
.pin.eu .dotmark { background: var(--accent); color: var(--accent); box-shadow: 0 0 12px -1px var(--accent); }
.pin.infra .dotmark { background: var(--tg); color: var(--tg); box-shadow: 0 0 12px -1px var(--tg); }
.pin.ru .dotmark { background: #fff; color: #fff; box-shadow: 0 0 12px -1px rgba(255,255,255,.8); }
html[data-theme="light"] .pin.ru .dotmark { background:#0a0a0b; color:#0a0a0b; box-shadow:0 0 10px -2px rgba(0,0,0,.5); }
.pin .ptip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line-2); padding: 12px 14px; width: 210px;
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 20; box-shadow: var(--shadow);
}
.pin.tip-down .ptip { bottom: auto; top: calc(100% + 12px); }
.pin.tip-l .ptip { left: 0; right: auto; transform: none; }
.pin.tip-r .ptip { left: auto; right: 0; transform: none; }
.pin:hover { z-index: 30; }
.pin:hover .ptip { opacity: 1; }
.pin .ptip h5 { font-size: 14px; font-weight: 600; display:flex; align-items:center; gap:7px; }
.pin .ptip .tag { font-family:'JetBrains Mono',monospace; font-size:10px; color: var(--accent); border:1px solid var(--accent-dim); padding:1px 6px; }
.pin .ptip p { font-size: 12px; color: var(--fg-mute); margin-top: 6px; font-family:'JetBrains Mono',monospace; line-height:1.5; }
.pin .ptip ul { list-style:none; margin-top:8px; display:flex; flex-direction:column; gap:4px; }
.pin .ptip li { font-family:'JetBrains Mono',monospace; font-size:11px; color: var(--fg); display:flex; justify-content:space-between; }
.pin .ptip li span { color: var(--accent); }
.pin .ptip p .ok { color: var(--accent); font-weight: 600; }
.pin .ptip p.wlglow { color: var(--accent); font-weight: 700; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 75%, transparent); }

.map-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 7px; font-family:'JetBrains Mono',monospace; font-size:11px; }
.map-legend .lg { display: flex; align-items: center; gap: 8px; color: var(--fg-mute); }
.map-legend .lg i { width: 9px; height: 9px; border-radius: 50%; }

.adv-col { display: flex; flex-direction: column; gap: 14px; }
.adv {
  border: 1px solid var(--line); background: var(--surface); padding: 14px 24px 15px;
  position: relative; transition: border-color .3s, transform .3s, background .3s;
}
.adv:hover { border-color: var(--line-2); transform: translateX(6px); }
.adv .tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.adv h4 { font-size: 20px; font-weight: 600; margin: 7px 0 6px; letter-spacing: -0.02em; }
.adv p { color: var(--fg-mute); font-size: 14px; line-height: 1.45; }
.adv p b { color: var(--fg); font-weight: 600; }
/* on desktop the 4 advantage blocks stretch to match the map's height */
@media (min-width: 981px) {
  .adv-col { height: 100%; }
  .adv { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
  /* let the map fill the row height so it lines up with the 4 blocks */
  .map-box { aspect-ratio: auto; height: 100%; }
}

/* ---------------- servers list ---------------- */
.srv-controls { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.srv-controls .btn svg { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.srv-controls .btn.spin svg { transform: rotate(360deg); }
.srv-controls .btn[disabled] { opacity: .6; cursor: default; }
.srv-status { font-size: 13px; color: var(--accent); letter-spacing: .02em; min-height: 18px; display: inline-flex; align-items: center; }
.srv-status .cur { display:inline-block; width:7px; height:15px; background: var(--accent); margin-left:3px; animation: blink 1.05s steps(1) infinite; }
.srv-foot { margin-top: 26px; display: none; }
.srv-foot.show {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #ffffff; color: #0a0a0b;
  padding: 13px 20px; font-family:'JetBrains Mono',monospace; font-size: 13.5px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.6);
  animation: srvback .45s cubic-bezier(.2,.8,.2,1);
}
.srv-foot.show .pf-label { color: #55555b; }
.srv-foot.show b { color: #0a0a0b; font-weight: 700; }
.srv-foot.show .pf-ip { color: #18a64c; font-weight: 600; padding-left: 12px; border-left: 1px solid rgba(10,10,12,.16); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 14px; margin-top: 30px; }
.srv .ping { transition: opacity .35s ease, color .35s ease; }
.srv.refreshing { border-color: var(--line); }
.srv.dim { opacity: .32; }
.srv.dim .ping { opacity: .2; }
.srv.back { animation: srvback .5s cubic-bezier(.2,.8,.2,1); }
@keyframes srvback { from { opacity:.32; transform: translateY(4px); } to { opacity:1; transform:none; } }
.srv {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s, background .25s;
}
.srv:hover { border-color: var(--line-2); transform: translateY(-3px); }
.srv .flag { width: 42px; height: 30px; flex: none; position: relative; overflow: hidden; border: 1px solid var(--line); display:flex; flex-direction:column; }
.srv .flag i { flex: 1; display: block; }
/* swiss flag — red field, white cross */
.srv .flag.swiss { background:#d52b1e; display:block; }
.srv .flag.swiss::before, .srv .flag.swiss::after { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:#fff; }
.srv .flag.swiss::before { width:14px; height:5px; }
.srv .flag.swiss::after  { width:5px; height:14px; }
/* finland flag — white field, blue nordic cross (offset to hoist) */
.srv .flag.finland { background:#fff; display:block; }
.srv .flag.finland::before, .srv .flag.finland::after { content:''; position:absolute; background:#003580; }
.srv .flag.finland::before { left:0; right:0; top:50%; transform:translateY(-50%); height:24%; }
.srv .flag.finland::after  { top:0; bottom:0; left:33%; width:16%; }
.srv .meta { flex: 1; min-width: 0; }
.srv .meta b { font-size: 16px; font-weight: 600; }
.srv .meta b .sec { color: var(--fg-dim); font-weight: 500; }
.srv .meta span { display: block; font-family:'JetBrains Mono',monospace; font-size: 12px; color: var(--fg-dim); }
.srv .ping { font-family:'JetBrains Mono',monospace; font-size: 14px; color: var(--accent); font-weight: 500; }
.srv .ping.off { color: #ff5757; font-size: 12px; }
.srv.wl { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.srv .meta .wlbadge { font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:600; color:var(--accent); display:inline-block; margin-top:4px; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------------- screenshots ---------------- */
.shots { overflow: hidden; }
.shots-row { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 64px; perspective: 1600px; }
.phone {
  --tilt: 0deg;
  width: 244px; flex: none; position: relative;
  background: linear-gradient(150deg, #3a3a42 0%, #1b1b20 38%, #0a0a0c 100%);
  border-radius: 44px; padding: 11px;
  box-shadow:
    0 50px 70px -30px rgba(0,0,0,.85),
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -3px 8px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.06);
  transform: rotateY(var(--tilt));
  transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s;
  will-change: transform;
}
/* metal side buttons */
.phone::before { content:''; position:absolute; right:-2px; top:120px; width:3px; height:54px; border-radius:0 3px 3px 0; background:linear-gradient(#42424a,#1c1c20); }
.phone::after  { content:''; position:absolute; left:-2px; top:96px; width:3px; height:34px; border-radius:3px 0 0 3px; background:linear-gradient(#42424a,#1c1c20); box-shadow:0 48px 0 #2a2a30,0 48px 0 1px rgba(0,0,0,.2); }
.p-screen {
  position: relative; border-radius: 34px; overflow: hidden; background:#000;
  box-shadow: inset 0 0 0 2px #000; padding-top: 22px;
}
.p-screen img { width: 100%; display: block; }
.p-cam { position:absolute; top:20px; left:50%; transform:translateX(-50%); width:9px; height:9px; border-radius:50%; background:#05050a; box-shadow:inset 0 0 0 1px rgba(255,255,255,.14), 0 0 0 2px rgba(0,0,0,.5); z-index:3; }

/* livelier float — each phone bobs on its own rhythm */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in .phone { animation: floaty 6s ease-in-out infinite; }
  .reveal.in .phone.p-hero { animation-duration: 5s; }
  .reveal.in .phone.p-side:first-child { animation-delay: -1.6s; }
  .reveal.in .phone.p-side:last-child  { animation-delay: -3.2s; }
}
.phone.p-hero { --tilt: 0deg; z-index: 2; transform: scale(1.07); box-shadow: 0 60px 80px -28px rgba(0,0,0,.9), 0 0 70px -22px rgba(255,255,255,.3), inset 0 2px 0 rgba(255,255,255,.2); }
.phone.p-side:first-child { --tilt: 16deg; }
.phone.p-side:last-child  { --tilt: -16deg; }
@keyframes floaty {
  0%,100% { translate: 0 0; rotate: 0deg; }
  50%     { translate: 0 -16px; rotate: .6deg; }
}
.shots-row .phone:hover { animation-play-state: paused; transform: rotateY(0deg) scale(1.05) translateY(-6px); z-index: 5; }
.shots-cap { text-align:center; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--fg-dim); margin-top:40px; }
.dl-actions { margin: 48px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn--dl-big { width: 100%; max-width: 420px; justify-content: center; padding: 17px 28px; font-size: 17px; }
.dl-sub-btns { display: flex; gap: 12px; width: 100%; max-width: 420px; }
.dl-sub-btns .btn { flex: 1; justify-content: center; }
/* hide mobile-only phones on desktop */
.phone.mob-only { display: none; }
/* carousel arrows — hidden on desktop */
.shots-carousel { position: relative; }
.shots-arrow { display: none; }
/* carousel pagination dots — mobile only */
.shots-dots { display: none; }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 58px; align-items: stretch; }
.plan {
  position: relative; padding: 40px; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
}
.plan.white { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.plan.white .pl-sub, .plan.white .pl-meta span { color: rgba(0,0,0,.55); }
html[data-theme="light"] .plan.white .pl-sub, html[data-theme="light"] .plan.white .pl-meta span { color: rgba(255,255,255,.6); }
.plan.white .feat { border-color: rgba(0,0,0,.12); }
html[data-theme="light"] .plan.white .feat { border-color: rgba(255,255,255,.16); }
.plan.white .pl-meta b { color: var(--inv-fg); }
.pl-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pl-name { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.pl-name .dot { color: var(--accent); }
.plan.white .pl-name .dot { color: var(--accent); }
.pl-flag { font-family:'JetBrains Mono',monospace; font-size: 11px; padding: 5px 11px; border: 1px solid currentColor; opacity:.8; }
.pl-flag.cur { background: var(--accent); color:#04150b; border-color: var(--accent); opacity:1; font-weight:700; }
.pl-flag.best { background: var(--accent); color:#04150b; border-color: var(--accent); opacity:1; font-weight:700; }
.pl-sub { color: var(--fg-mute); font-size: 14px; margin-top: 10px; }
.pl-meta { display: flex; gap: 26px; margin: 26px 0 4px; }
.pl-meta b { font-size: 19px; font-weight: 700; display:block; }
.pl-meta span { font-family:'JetBrains Mono',monospace; font-size: 11px; color: var(--fg-dim); }
.feats { list-style: none; margin: 26px 0; display: flex; flex-direction: column; }
.feat { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.feat:last-child { border-bottom: 1px solid var(--line); }
.plan.white .feat:last-child { border-bottom-color: rgba(0,0,0,.12); }
html[data-theme="light"] .plan.white .feat:last-child { border-bottom-color: rgba(255,255,255,.16); }
.feat .ck { color: var(--accent); flex: none; margin-top:2px; }
.feat.hl { font-weight: 600; flex-wrap: wrap; }
.feat.hl .tagwl { font-family:'JetBrains Mono',monospace; font-size:10px; background: var(--accent); color:#04150b; padding:2px 7px; margin-left:8px; font-weight:700; white-space:nowrap; }
.pl-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 18px; }
.pl-price .from { font-size: 13px; color: var(--fg-mute); }
.plan.white .pl-price .from { color: rgba(0,0,0,.5); }
html[data-theme="light"] .plan.white .pl-price .from { color: rgba(255,255,255,.6); }
.pl-price .amt { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.pl-price { flex-wrap: wrap; }
.pl-price .per { font-size: 14px; color: var(--fg-mute); }
.pl-price .trial { flex-basis: 100%; font-family:'JetBrains Mono',monospace; font-size: 11px; color: var(--accent); margin-top: 7px; display:flex; align-items:center; gap:7px; }
.pl-price .trial::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow:0 0 8px var(--accent); }
.plan.white .pl-price .trial { color: #0f7a37; }
.plan.white .pl-price .trial::before { background:#0f7a37; box-shadow:none; }
.plan .btn { margin-top: 24px; justify-content: center; width: 100%; }
.plan.white .btn--solid { background:#000; color:#fff; border-color:#000; }
html[data-theme="light"] .plan.white .btn--solid { background:#fff; color:#000; border-color:#fff; }

/* ---------------- how to start ---------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); }
.step { padding: 34px 28px; border-right: 1px solid var(--line); position: relative; background: var(--surface); transition: background .3s; text-decoration: none; color: inherit; }
.step:last-child { border-right: none; }
.step:hover { background: var(--surface-2); }
.step .num { font-family:'JetBrains Mono',monospace; font-size: 13px; color: var(--accent); }
.step h4 { font-size: 18px; font-weight: 600; margin: 16px 0 9px; letter-spacing:-0.01em; }
.step p { font-size: 14px; color: var(--fg-mute); line-height: 1.5; }
.step .arrow { position: absolute; right: -10px; top: 38px; color: var(--fg-dim); z-index: 2; background: var(--bg); }

/* ---------------- final cta ---------------- */
.finalcta { text-align: center; }
.finalcta .glass { padding: 70px 40px; border: 1px solid var(--glass-line); }
.finalcta h2 { font-size: clamp(34px,5vw,68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.finalcta .hero-cta { margin-top: 38px; }

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 70px; position: relative; z-index:1; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand .brand { font-size: 30px; }
.foot-brand p { color: var(--fg-mute); font-size: 13px; margin-top: 12px; max-width: 34ch; }
.foot-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.foot-col h6 { font-family:'JetBrains Mono',monospace; font-size: 11px; color: var(--fg-dim); letter-spacing:.08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--fg-mute); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items:center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--fg-dim); font-family:'JetBrains Mono',monospace; font-size: 12px; flex-wrap: wrap; gap: 12px; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step .arrow { display: none; }
  .nav-links { display: none; }
  .hero-stats { flex-direction: column; }
  .hero-stats .st { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  header.nav, header.nav.scrolled { padding-left: 22px; padding-right: 22px; }
  section { padding: 90px 0; }
  .hero { padding-top: 150px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .cmp-stage { height: 540px; }
  .core-btn { width: 112px; height: 112px; font-size: 46px; }
}

/* ---- compact stacked layout for narrow / portrait screens ---- */
@media (max-width: 780px) {
  section { padding: 64px 0; }
  .map-section { padding-bottom: 64px; }
  header.nav, header.nav.scrolled { display: none; }
  /* hero fills the screen and sits centred, with breathing room top & bottom */
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
  .hero .wrap { width: 100%; }
  .hero-more { display: flex; }
  .hero-logo { font-size: clamp(112px, 32vw, 200px); }
  h2.title { font-size: clamp(30px, 8.5vw, 50px); }
  /* comparison (mobile): bigger connect button + more services + connection lines */
  .cmp-stage { height: 600px; min-height: 0; padding: 0; overflow: hidden; position: relative; }
  .cmp-stage svg.links { display: block; }
  .cmp-phone { display: none; }
  .phone-shadow { display: none; }
  .svc-field { display: block; }
  .svc-field .svc { left: 50% !important; top: 50% !important; }
  .cmp-hint { display: block; }
  .cmp-mini { display: grid; width: 196px; height: 196px; }
  .cmp-mini-word { font-size: 82px; }
  .svc { display: none; width: 54px; height: 54px; }
  .svc svg { width: 32px; height: 32px; }
  .svc::after { width: 18px; height: 18px; right: -3px; top: -3px; background-size: 11px 11px; }
  .svc[data-id="reddit"]    { display: grid; translate: calc(-50% + 40px)  calc(-50% - 245px) !important; }
  .svc[data-id="youtube"]   { display: grid; translate: calc(-50% - 34px)  calc(-50% - 178px) !important; }
  .svc[data-id="telegram"]  { display: grid; translate: calc(-50% + 104px) calc(-50% - 150px) !important; }
  .svc[data-id="signal"]    { display: grid; translate: calc(-50% - 92px)  calc(-50% - 200px) !important; }
  .svc[data-id="tiktok"]    { display: grid; translate: calc(-50% - 124px) calc(-50% - 134px) !important; }
  .svc[data-id="whatsapp"]  { display: grid; translate: calc(-50% + 140px) calc(-50% - 60px)  !important; }
  .svc[data-id="chatgpt"]   { display: grid; translate: calc(-50% - 134px) calc(-50% - 58px)  !important; }
  .svc[data-id="netflix"]   { display: grid; translate: calc(-50% + 134px) calc(-50% + 22px)  !important; }
  .svc[data-id="vk"]        { display: grid; translate: calc(-50% - 134px) calc(-50% + 42px)  !important; }
  .svc[data-id="instagram"] { display: grid; translate: calc(-50% + 134px) calc(-50% + 82px)  !important; }
  .svc[data-id="twitch"]    { display: grid; translate: calc(-50% - 132px) calc(-50% + 128px) !important; }
  .svc[data-id="github"]    { display: grid; translate: calc(-50% + 130px) calc(-50% + 156px) !important; }
  .svc[data-id="spotify"]   { display: grid; translate: calc(-50% - 86px)  calc(-50% + 174px) !important; }
  .svc[data-id="discord"]   { display: grid; translate: calc(-50% + 50px)  calc(-50% + 168px) !important; }
  .svc[data-id="twitter"]   { display: grid; translate: calc(-50% - 30px)  calc(-50% + 232px) !important; }
  .svc[data-id="google"]    { display: grid; translate: calc(-50% + 86px)  calc(-50% + 224px) !important; }
  .cmp-head { margin-bottom: 26px !important; }
  /* advantage blocks 35% thinner on mobile */
  .adv { padding: 9px 18px 10px; }
  .adv .tag { font-size: 10.5px; }
  .adv h4 { font-size: 16px; margin: 4px 0 3px; }
  .adv p { font-size: 12.5px; line-height: 1.35; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 240px; justify-content: center; }
  /* phone screenshots → swipeable carousel */
  #shots { padding-top: 40px !important; }
  .phone.mob-only { display: block; }
  .shots-row {
    flex-wrap: nowrap; justify-content: flex-start; align-items: center;
    gap: 6px; margin-top: 16px; perspective: none;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 14px calc(50% - 132px) 14px;
    scrollbar-width: none; touch-action: pan-x pan-y;
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .shots-row::-webkit-scrollbar { display: none; }
  .shots .phone,
  .shots .phone.p-hero,
  .shots .phone.p-side:first-child,
  .shots .phone.p-side:last-child {
    width: 264px; flex: none; --tilt: 0deg; scroll-snap-align: center;
    transform: scale(.78); opacity: .45; box-shadow: 0 24px 50px -34px rgba(0,0,0,.9);
    transition: transform .34s cubic-bezier(.2,.8,.2,1), opacity .34s ease;
  }
  .shots .phone img { pointer-events: none; -webkit-user-drag: none; user-select: none; image-rendering: auto; }
  .shots .phone.is-active,
  .shots .phone.p-hero.is-active {
    transform: scale(1); opacity: 1;
    box-shadow: 0 36px 64px -30px rgba(0,0,0,.9), 0 0 52px -24px rgba(255,255,255,.3), inset 0 2px 0 rgba(255,255,255,.2);
  }
  .reveal.in .phone { animation: none; }
  .shots-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .shots-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; background: var(--line-2); cursor: pointer; transition: background .25s, width .25s; }
  .shots-dots button.on { background: var(--accent); width: 20px; border-radius: 4px; }
  .dl-actions { margin: 10px auto 0 !important; }
  #shots .dl-actions .btn--dl-big { font-size: 15px; padding: 14px 20px; }
  #shots .dl-sub-btns { gap: 8px; }
  #shots .dl-sub-btns .btn { font-size: 13px; padding: 11px 10px; }
  /* carousel arrows */
  .shots-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 28px; height: 110px; border: none; padding: 0;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-radius: 10px; cursor: pointer;
    color: var(--fg-mute); transition: color .2s, background .2s;
  }
  .shots-arrow svg { width: 18px; height: 36px; }
  .shots-arrow:hover { color: var(--fg); background: color-mix(in srgb, var(--bg) 75%, transparent); }
  .shots-arrow:active { transform: translateY(-50%) scale(.95); }
  .shots-arrow--prev { left: 2px; }
  .shots-arrow--next { right: 2px; }
  /* light theme: softer carousel shadows */
  html[data-theme="light"] .shots .phone { box-shadow: 0 12px 36px -18px rgba(0,0,0,.18); }
  html[data-theme="light"] .shots .phone.is-active { box-shadow: 0 24px 50px -16px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06); }
}
@media (max-width: 460px) {
  .wrap { padding: 0 16px; }
  .cmp-phone { zoom: .58; }
  .hero-cta .btn { flex: 1 1 100%; }
  .foot-cols { gap: 26px; }
}

/* ---- tighter two-up cards + compact steps on phones (overrides the blocks above) ---- */
@media (max-width: 680px) {
  /* hero badge a touch smaller; resource-counter blocks made half as thin */
  .hero-badge { font-size: 8.5px; padding: 4px 9px; gap: 5px; }
  .hero-counters { gap: 12px; margin-top: 40px; }
  .hero-counter { padding: 8px 16px 8px; box-shadow: 0 18px 46px -34px rgba(0,0,0,.8); }
  .hc-num { font-size: clamp(24px, 8vw, 34px); }
  .hc-main { font-size: 11px; }
  .hc-note { font-size: 9px; margin-top: 3px; }

  /* hero buttons: войти + tg bot on the top row, скачать full-width below */
  .hero .hero-cta { gap: 8px; margin-top: 30px; }
  .hero .hero-cta .btn { flex: 1 1 calc(50% - 4px); font-size: 13.5px; padding: 13px 12px; }
  .hero .hero-cta .btn--ghost { order: 1; }
  .hero .hero-cta .btn--tg { order: 2; }
  .hero .hero-cta .btn--solid { order: 3; flex: 1 1 100%; }

  /* comparison (small phones): big tappable button, lines on */
  .cmp-stage { height: 600px; }
  .cmp-mini { width: 180px; height: 180px; }
  .cmp-mini-word { font-size: 76px; }
  .cmp-hint { font-size: 12px; }
  .svc { width: 48px; height: 48px; }
  .svc svg { width: 28px; height: 28px; }
  .svc::after { width: 15px; height: 15px; background-size: 10px 10px; }

  /* servers — two compact cards per row */
  .srv-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
  .srv { padding: 11px 11px; gap: 8px; }
  .srv .flag { width: 26px; height: 18px; }
  .srv .meta b { font-size: 14px; letter-spacing: -.01em; }
  .srv .meta b .sec { display: none; }
  .srv .meta span { font-size: 10.5px; }
  .srv .meta .wlbadge { font-size: 9px; margin-top: 2px; }
  .srv .ping { font-size: 12.5px; }

  /* pricing — both plans side by side, compact */
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .plan { padding: 18px 15px; }
  .pl-name { font-size: 18px; }
  .pl-flag { font-size: 9px; padding: 3px 7px; }
  .pl-sub { font-size: 11.5px; margin-top: 7px; }
  .pl-meta { gap: 14px; margin: 16px 0 2px; }
  .pl-meta b { font-size: 15px; }
  .pl-meta span { font-size: 9.5px; }
  .feats { margin: 16px 0; }
  .feat { font-size: 11.5px; gap: 8px; padding: 9px 0; }
  .feat .ck { width: 14px; height: 14px; }
  .feat.hl .tagwl { font-size: 8.5px; padding: 1px 5px; margin-left: 5px; }
  .pl-price .amt { font-size: 30px; }
  .pl-price .per { font-size: 12px; }
  .pl-price .trial { font-size: 9.5px; }
  .plan .btn { font-size: 12.5px; padding: 12px 12px; margin-top: 16px; gap: 6px; }

  /* how to start — tidy 2×2 instead of four tall blocks */
  .steps { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .step { padding: 18px 15px; border-right: none; border-bottom: none; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step h4 { font-size: 14.5px; margin: 9px 0 6px; }
  .step p { font-size: 12px; line-height: 1.45; }
  .step .num { font-size: 11.5px; }
  .step .arrow { display: none; }

  /* final cta — smaller heading + tighter card */
  .finalcta .glass { padding: 40px 22px; }
  .finalcta h2 { font-size: clamp(26px, 7vw, 34px); }

  /* footer — compact, far less vertical space on phones */
  footer { padding: 30px 0 34px; }
  .foot-grid { gap: 18px; }
  .foot-brand .brand { font-size: 22px; }
  .foot-brand p { display: none; }
  .foot-cols { gap: 0; display: grid; grid-template-columns: 1fr 1fr; width: 100%; row-gap: 16px; column-gap: 16px; }
  .foot-col h6 { margin-bottom: 6px; font-size: 9.5px; letter-spacing: .06em; }
  .foot-col a { font-size: 12px; padding: 2px 0; }
  .foot-bottom { margin-top: 20px; padding-top: 14px; font-size: 10px; }
}
