@font-face {
  font-family: "Inter Tight";
  src: url("./assets/fonts/intertight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight Cyr";
  src: url("./assets/fonts/intertight-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/jbmono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Cyr";
  src: url("./assets/fonts/jbmono-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050505;
  --ink: #0a0a0a;
  --ink-2: #11110f;
  --ink-3: #171715;
  --paper: #f5f5f1;
  --text: #f4f4ef;
  --muted: #a3a39b;
  --dim: #686861;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --focus: #f5f5f1;
  --sans: "Inter Tight", "Inter Tight Cyr", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Cyr", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
::selection { background: var(--paper); color: #050505; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 76px 48px 66px;
  overflow: hidden;
  isolation: isolate;
}

.stage-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 58% 66% at 50% 50%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 58% 66% at 50% 50%, #000 12%, transparent 76%);
}
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.075), rgba(255,255,255,0.018) 42%, transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(0,0,0,0.58) 100%);
}

.stage-head, .stage-foot {
  position: absolute;
  left: 34px;
  right: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.stage-head { top: 25px; }
.stage-foot { bottom: 24px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark-mark { width: 20px; height: 20px; color: var(--text); }
.wordmark-mark svg { width: 100%; height: 100%; }
.wordmark-slash { color: var(--dim); font-weight: 400; }
.wordmark-sub { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; }
.proto { display: inline-flex; align-items: center; gap: 10px; }
.proto b { color: var(--paper); font-weight: 500; }

.note {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 180px;
  transform: translateY(-50%);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.note-a { left: max(34px, calc(50% - 420px)); }
.note-b { right: max(34px, calc(50% - 420px)); text-align: right; }
.note-k { display: block; margin-bottom: 8px; color: var(--muted); }
.note p { margin: 0; max-width: 160px; }
.note-b p { margin-left: auto; }
.demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  text-align: right;
  transition: color 180ms ease;
}
.demo:hover:not(:disabled) { color: var(--paper); }
.demo:disabled { cursor: default; opacity: 0.4; }
.demo-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Phone */
.phone {
  position: relative;
  z-index: 3;
  width: 396px;
  height: 850px;
  flex: 0 0 auto;
}
.phone-bezel {
  width: 100%;
  height: 100%;
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 58px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), transparent 24%, transparent 74%, rgba(255,255,255,0.05)),
    #0b0b0b;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 42px 100px rgba(0,0,0,0.76),
    0 12px 28px rgba(0,0,0,0.6);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 49px;
  background: var(--void);
}
.phone-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -24px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.85), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: 50px;
  padding: 13px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.statusbar-mid { display: flex; align-items: center; gap: 3px; padding-top: 2px; }
.sig { display: inline-block; width: 3px; border-radius: 1px; background: var(--paper); }
.sig:nth-child(1) { height: 4px; }
.sig:nth-child(2) { height: 6px; }
.sig:nth-child(3) { height: 8px; }
.wifi {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 9px;
  margin-left: 2px;
  border-top: 1px solid var(--paper);
  border-radius: 10px 10px 0 0;
}
.wifi::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 0;
  width: 5px;
  height: 5px;
  border: 1px solid var(--paper);
  border-bottom-color: transparent;
  border-radius: 50%;
}
.battery {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 8px;
  margin-left: 3px;
  border: 1px solid rgba(245,245,241,0.72);
  border-radius: 2px;
  padding: 1px;
}
.battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(245,245,241,0.72);
}
.battery b { display: block; width: 72%; height: 100%; border-radius: 1px; background: var(--paper); }
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 10;
  width: 106px;
  height: 27px;
  border-radius: 18px;
  transform: translateX(-50%);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}
.island span {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 2px rgba(120,140,160,0.3);
}

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 51px 20px 0;
  font-family: var(--sans);
}
.appbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  flex: 0 0 44px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
}
.brand-mark { width: 22px; height: 22px; color: var(--paper); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.035em; }
.brand-tag { margin-left: 1px; color: var(--dim); font-family: var(--mono); font-size: 7px; letter-spacing: 0.16em; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.icon-btn:hover { color: var(--paper); border-color: var(--line-strong); background: rgba(255,255,255,0.045); }
.icon-btn svg { width: 16px; height: 16px; }

.screens { position: relative; flex: 1; min-height: 0; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 0 88px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease), visibility 0s;
}
.screen-proxy, .screen-profile { overflow-y: auto; scrollbar-width: none; }
.screen-proxy::-webkit-scrollbar, .screen-profile::-webkit-scrollbar { display: none; }

.topline { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.micro {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1.4;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}
.app[data-phase="connected"] .status-pill { color: #0a0a0a; background: var(--paper); border-color: var(--paper); }

.orb-stage {
  position: relative;
  height: 312px;
  flex: 0 0 312px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.orb-ticks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 302px;
  height: 302px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.4deg, rgba(255,255,255,0.48) 0deg 0.48deg, transparent 0.48deg 3.75deg);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 60% 66%, transparent 66% 100%);
  mask: radial-gradient(circle, transparent 0 60%, #000 60% 66%, transparent 66% 100%);
  opacity: 0.25;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 520ms ease;
}
.orb-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(255,255,255,0.9) 87%, transparent 94%);
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 64% 66.2%, transparent 66.2% 100%);
  mask: radial-gradient(circle, transparent 0 64%, #000 64% 66.2%, transparent 66.2% 100%);
  opacity: 0.26;
  transform: translate(-50%, -50%);
  animation: scan-spin 10s linear infinite;
  pointer-events: none;
  transition: opacity 420ms ease;
}
.orb-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 248px;
  height: 248px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orb-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 246px;
  height: 246px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 52%, transparent 70%);
  filter: blur(14px);
  opacity: 0.14;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 520ms ease;
}
.orb {
  --gx: 50%;
  --gy: 25%;
  position: relative;
  z-index: 2;
  width: 206px;
  height: 206px;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.15), transparent 36%),
    radial-gradient(circle at 50% 102%, rgba(255,255,255,0.045), transparent 55%),
    linear-gradient(155deg, #1a1a18 0%, #0c0c0b 48%, #060606 100%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -20px 40px rgba(0,0,0,0.72),
    0 26px 64px rgba(0,0,0,0.56),
    0 0 36px rgba(255,255,255,0.022);
  transition: border-color 340ms ease, box-shadow 420ms ease, transform 300ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.orb::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.085), transparent 36%),
    linear-gradient(155deg, rgba(255,255,255,0.032), transparent 40%);
  pointer-events: none;
}
.orb:hover {
  border-color: rgba(255,255,255,0.36);
  transform: scale(1.012);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -20px 40px rgba(0,0,0,0.72),
    0 30px 74px rgba(0,0,0,0.62),
    0 0 48px rgba(255,255,255,0.055);
}
.orb-stage:has(.orb:hover) .orb-aura { opacity: 0.26; }
.orb:active { transform: scale(0.974); transition-duration: 90ms; }
.orb-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 238px;
  height: 238px;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
}
.orb-track, .orb-arc { fill: none; }
.orb-track { stroke: rgba(255,255,255,0.05); stroke-width: 0.8; }
.orb-arc {
  stroke: url(#silverRing);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 92 624;
  stroke-dashoffset: 0;
  opacity: 0.32;
  transition: opacity 360ms ease, stroke-dasharray 420ms var(--ease);
}
.orb-sheen {
  position: absolute;
  inset: 7px;
  z-index: 1;
  border-radius: 50%;
  background:
    linear-gradient(138deg, rgba(255,255,255,0.09), transparent 26%),
    radial-gradient(circle at 50% 78%, transparent 40%, rgba(0,0,0,0.26) 78%);
  box-shadow: inset 0 0 26px rgba(255,255,255,0.018);
  pointer-events: none;
}
.orb-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 26%, #1c1c1a, #090908 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 24px rgba(0,0,0,0.38);
  transition: background 360ms ease, border-color 360ms ease, box-shadow 360ms ease, transform 420ms var(--ease);
}
.orb-core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.orb-icon { width: 31px; height: 31px; color: var(--paper); transition: color 260ms ease; }
.orb-caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  margin-bottom: 20px;
  text-align: center;
}
.orb-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.02em;
  transition: color 260ms ease;
}
.orb-hint {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.01em;
  transition: color 260ms ease;
}
.orb-burst {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.orb-burst.run { animation: orb-burst 720ms var(--ease) both; }
.app[data-phase="connected"] .orb {
  border-color: rgba(255,255,255,0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -20px 40px rgba(0,0,0,0.64),
    0 30px 76px rgba(0,0,0,0.62),
    0 0 82px rgba(255,255,255,0.12);
}
.app[data-phase="connected"] .orb-ticks { opacity: 0.62; }
.app[data-phase="connected"] .orb-scan { opacity: 0.62; animation-duration: 16s; }
.app[data-phase="connected"] .orb-aura { opacity: 0.54; }
.app[data-phase="connected"] .orb-arc {
  stroke-dasharray: 716 0;
  stroke-dashoffset: 0;
  opacity: 0.95;
}
.app[data-phase="connected"] .orb-core {
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0 34px rgba(255,255,255,0.2);
  animation: core-settle 520ms var(--ease) both;
}
.app[data-phase="connected"] .orb-core::after { border-color: rgba(255,255,255,0.12); animation: core-ring 2.8s ease-out infinite; }
.app[data-phase="connected"] .orb-icon { color: #070707; }
.app[data-phase="connected"] .orb-halo { animation: halo 3.8s var(--ease) infinite; opacity: 0.65; }
.app[data-phase="connected"] .orb-label { color: var(--paper); }
.app[data-phase="connecting"] .orb-ticks { opacity: 0.5; animation: tick-breathe 2.4s ease-in-out infinite; }
.app[data-phase="connecting"] .orb-scan { opacity: 0.96; animation-duration: 1.4s; }
.app[data-phase="connecting"] .orb-aura { opacity: 0.32; }
.app[data-phase="connecting"] .orb-arc {
  stroke-dasharray: 122 594;
  opacity: 0.96;
  animation: dash-flow 1.7s linear infinite;
}
.app[data-phase="connecting"] .orb-halo { opacity: 0.3; animation: halo 1.6s ease-in-out infinite; }
.app[data-phase="connecting"] .orb-icon { animation: breathe 1.4s ease-in-out infinite; }
.app[data-phase="connecting"] .orb { border-color: rgba(255,255,255,0.28); }
.app[data-phase="switching"] .orb-ticks { opacity: 0.65; animation: tick-breathe 1.2s ease-in-out infinite; }
.app[data-phase="switching"] .orb-scan { opacity: 1; animation-duration: 0.72s; }
.app[data-phase="switching"] .orb-aura { opacity: 0.36; }
.app[data-phase="switching"] .orb-arc {
  stroke-dasharray: 74 642;
  opacity: 0.92;
  animation: dash-flow 0.85s linear infinite;
}
.app[data-phase="switching"] .orb-icon { animation: breathe 0.9s ease-in-out infinite; }
.app[data-phase="switching"] .orb { border-color: rgba(255,255,255,0.3); }

.hero { margin-top: -2px; min-height: 99px; }
.hero h1 {
  margin: 0;
  max-width: 330px;
  color: var(--text);
  font-size: 39px;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.hero p {
  margin: 10px 0 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.route {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  text-align: left;
  transition: opacity 160ms ease;
}
.route:hover { opacity: 0.75; }
.route-flag {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--ink-2);
}
.route-flag img { width: 28px; height: 19px; object-fit: cover; border-radius: 2px; }
.route-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.route-copy b { font-size: 14px; font-weight: 550; letter-spacing: -0.025em; }
.route-copy small { color: var(--dim); font-size: 9.5px; }
.route-chevron { width: 16px; height: 16px; color: var(--dim); }

.keystrip {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
}
.keystrip:hover .key-open { color: var(--paper); }
.key-main { display: flex; align-items: baseline; gap: 5px; min-width: 62px; }
.key-num { font-size: 28px; font-weight: 550; line-height: 1; letter-spacing: -0.07em; }
.key-unit { color: var(--muted); font-size: 10px; }
.key-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.key-meta small { color: var(--dim); font-family: var(--mono); font-size: 8px; }
.key-meta span { color: var(--muted); font-size: 9.5px; }
.key-open { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; transition: color 160ms ease; }
.key-open svg { width: 14px; height: 14px; }

/* Proxy */
.screen-title {
  margin: 9px 0 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.screen-lead { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); animation: live 2.2s ease-in-out infinite; }
.segmented {
  display: flex;
  gap: 3px;
  margin-top: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg {
  flex: 1;
  min-height: 29px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  transition: background 160ms ease, color 160ms ease;
}
.seg.is-active { background: var(--ink-3); color: var(--text); }
.proxy-list { margin-top: 12px; border-top: 1px solid var(--line); }
.proxy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
}
.proxy-flag { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--ink-2); }
.proxy-flag img { width: 19px; height: 13px; object-fit: cover; border-radius: 1px; }
.proxy-main { flex: 1; min-width: 0; }
.proxy-addr { overflow: hidden; color: var(--text); font-family: var(--mono); font-size: 9.5px; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.proxy-meta { margin-top: 3px; color: var(--dim); font-family: var(--mono); font-size: 7.5px; }
.proxy-copy { width: 29px; height: 29px; border-radius: 8px; }
.proxy-copy svg { width: 13px; height: 13px; }

/* Profile */
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.identity-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.identity-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.identity-copy b { font-size: 13px; font-weight: 550; }
.identity-copy small { color: var(--dim); font-size: 9.5px; }
.identity-tag { color: var(--dim); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.08em; }
.section-line { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; padding-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 550; }
.section-line small { color: var(--dim); font-family: var(--mono); font-size: 7.5px; font-weight: 400; }
.lang-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang-option {
  flex: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  transition: background 160ms ease, color 160ms ease;
}
.lang-option img { width: 17px; height: 12px; object-fit: cover; border-radius: 1px; opacity: 0.65; transition: opacity 160ms ease; }
.lang-option.is-active { background: var(--ink-3); color: var(--text); }
.lang-option.is-active img { opacity: 1; }
.menu { border-top: 1px solid var(--line); }
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
}
.menu-row:hover { color: var(--text); }
.menu-row svg { width: 14px; height: 14px; color: var(--dim); }
.fine { margin: 16px 0 0; color: var(--dim); font-size: 8.5px; line-height: 1.5; }

/* Bottom dock */
.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: max(13px, env(safe-area-inset-bottom));
  z-index: 8;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(11,11,10,0.86);
  box-shadow: 0 14px 38px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7.5px;
  transition: background 200ms ease, color 200ms ease;
}
.tab svg { width: 17px; height: 17px; }
.tab.is-active { background: var(--paper); color: #080808; }
.tab:not(.is-active):hover { color: var(--muted); }

/* Sheets */
.sheet-layer { position: absolute; inset: 0; z-index: 30; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0,0,0,0.56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 220ms ease both;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 82%;
  padding: 8px 20px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  border-radius: 27px 27px 0 0;
  background: #080808;
  box-shadow: 0 -24px 70px rgba(0,0,0,0.55);
  animation: sheet-up 420ms var(--ease) both;
}
.sheet-handle { width: 36px; height: 3px; margin: 2px auto 14px; border-radius: 4px; background: rgba(255,255,255,0.2); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 7px 0 0; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.sheet-head .icon-btn { width: 31px; height: 31px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin-top: 16px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
}
.search svg { width: 15px; height: 15px; color: var(--dim); flex: 0 0 15px; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 11px;
}
.search input::placeholder { color: var(--dim); }
.country-list { min-height: 0; margin-top: 7px; overflow-y: auto; scrollbar-width: none; }
.country-list::-webkit-scrollbar { display: none; }
.country-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  text-align: left;
  transition: opacity 150ms ease;
}
.country-row:hover { opacity: 0.72; }
.country-row .flag-box { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); }
.country-row .flag-box img { width: 25px; height: 17px; object-fit: cover; border-radius: 1px; }
.country-row .flag-box svg { width: 18px; height: 18px; color: var(--muted); }
.country-name { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; font-weight: 500; }
.country-name small { color: var(--dim); font-size: 9px; font-weight: 400; }
.country-check { width: 17px; height: 17px; color: var(--paper); opacity: 0; }
.country-row.is-selected .country-check { opacity: 1; }
.country-row.is-selected .country-name { color: var(--paper); }
.empty { padding: 26px 0; color: var(--dim); font-family: var(--mono); font-size: 9px; text-align: center; }

.key-sheet { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
.key-hero { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.key-hero span:first-child { font-size: 58px; font-weight: 550; line-height: 0.85; letter-spacing: -0.075em; }
.key-hero span:last-child { color: var(--muted); font-size: 13px; }
.key-progress { height: 1px; margin-top: 19px; background: var(--line); }
.key-progress i { display: block; width: 100%; height: 1px; background: var(--paper); }
.key-row { display: flex; justify-content: space-between; margin-top: 9px; color: var(--dim); font-family: var(--mono); font-size: 8px; }
.key-link { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); }
.key-link code { flex: 1; overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.key-link .icon-btn { width: 29px; height: 29px; border-radius: 7px; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: #070707;
  font-size: 11.5px;
  font-weight: 600;
  transition: opacity 160ms ease;
}
.primary:hover { opacity: 0.82; }
.primary svg { width: 15px; height: 15px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 91px;
  z-index: 20;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: #070707;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes scan-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes tick-breathe { 0%,100% { opacity: 0.35; } 50% { opacity: 0.58; } }
@keyframes rim-sweep { to { transform: rotate(360deg); } }
@keyframes dash-flow { to { stroke-dashoffset: -716; } }
@keyframes core-ring { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16); } }
@keyframes orb-burst {
  0% { opacity: 0.7; transform: scale(0.97); }
  72% { opacity: 0.12; }
  100% { opacity: 0; transform: scale(1.16); }
}
@keyframes core-settle {
  0% { transform: scale(0.92); }
  62% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
@keyframes orbit-reverse { to { transform: rotate(-360deg); } }
@keyframes halo {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  28% { opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.22); opacity: 0; }
}
@keyframes breathe { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }
@keyframes live { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 900px) {
  .note { display: none; }
  .stage { padding-left: 32px; padding-right: 32px; }
}
@media (max-height: 920px) and (min-width: 700px) {
  .phone { transform: scale(0.84); }
  .stage::before { width: 620px; height: 620px; }
}
@media (max-width: 699px) {
  .stage { display: block; min-height: 100svh; padding: 0; }
  .stage-head, .stage-foot, .stage-field, .note, .stage::before, .stage::after { display: none; }
  .phone { width: 100%; height: 100svh; transform: none; }
  .phone-bezel { padding: 0; border: 0; border-radius: 0; background: var(--void); box-shadow: none; height: 100%; }
  .phone-screen { border: 0; border-radius: 0; height: 100%; }
  .phone-shadow { display: none; }
  .statusbar { padding-top: calc(9px + env(safe-area-inset-top)); }
  .island { top: calc(8px + env(safe-area-inset-top)); }
  .app { padding-top: calc(48px + env(safe-area-inset-top)); }
  .hero h1 { font-size: clamp(35px, 10.2vw, 41px); }
  .tabbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .app { padding-left: 17px; padding-right: 17px; }
  .orb-stage { height: 298px; flex-basis: 298px; }
  .orb-ticks { width: 282px; height: 282px; }
  .orb-scan { width: 250px; height: 250px; }
  .orb-halo { width: 232px; height: 232px; }
  .orb-aura { width: 230px; height: 230px; }
  .orb { width: 194px; height: 194px; }
  .orb-progress { width: 224px; height: 224px; }
  .orb-caption { margin-top: 7px; }
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.route-globe { width: 18px; height: 18px; color: var(--muted); }
