@font-face { font-family: Inter; src: url(assets/inter-cyrillic.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; src: url(assets/inter-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url(assets/manrope-cyrillic.woff2) format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url(assets/manrope-latin.woff2) format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #f6f6fb;
  --card: #ffffff;
  --ink: #14171f;
  --muted: #667085;
  --line: rgba(20, 23, 40, .09);
  --line-strong: rgba(20, 23, 40, .16);
  --violet: #5b5bd6;
  --violet-soft: #eeedfe;
  --violet-line: #c9c6f8;
  --good: #0f8a5b;
  --good-soft: #e5f6ee;
  --mid: #b0760c;
  --mid-soft: #fdf3dd;
  --bad: #d13a4c;
  --bad-soft: #fde9eb;
  --shadow: 0 1px 2px rgba(20, 23, 60, .04), 0 12px 32px -18px rgba(40, 40, 110, .18);
  --radius: 22px;
  --display: Manrope, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 10% -60px, #dcd9ff 0%, transparent 72%),
    radial-gradient(760px 460px at 94% -60px, #fdf0d2 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  font: 400 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { width: min(100%, 1120px); margin: 0 auto; padding: 0 24px; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(246, 246, 251, .72); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; stroke: none; }
.brand em { padding: 4px 7px; border-radius: 7px; background: var(--violet-soft); color: var(--violet); font: 800 10px/1 var(--display); letter-spacing: .08em; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-site { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.topbar-site:hover { color: var(--ink); }
.topbar-cta { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .15s; }
.topbar-cta:hover { transform: translateY(-1px); }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 52px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--muted); font-size: 13px; font-weight: 500; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #5b5bd6, #8f7bff); }
.hero h1 { margin: 16px 0 10px; font: 800 clamp(38px, 6vw, 58px)/1.05 var(--display); letter-spacing: -.035em; }
.hero h1 span { background: linear-gradient(95deg, #5b5bd6, #8f7bff 55%, #cf5fb2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; color: var(--muted); font-size: 17px; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 250px; flex: none; }
.card-state { color: var(--muted); font-size: 13px; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s, border-color .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: progress; opacity: .78; }
.button.primary { background: var(--ink); color: #fff; }
.button.secondary { background: #fff; border-color: var(--line-strong); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.run-message { margin-bottom: 14px; color: var(--bad); font-size: 14px; font-weight: 500; }
.run-message:empty { display: none; }

.leak { display: flex; gap: 12px; margin-bottom: 16px; padding: 16px 20px; border: 1px solid #f5c2c9; border-radius: 18px; background: var(--bad-soft); color: var(--ink); font-size: 14px; }
.leak > svg { margin-top: 2px; color: var(--bad); font-size: 20px; }
.leak strong { display: block; color: var(--bad); font: 800 17px/1.3 var(--display); overflow-wrap: anywhere; }
.leak span { display: block; margin-top: 2px; font-weight: 600; }
.leak p { margin-top: 6px; color: #55404a; }

.service-grid, .split, .status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-grid { column-gap: 40px; }
.split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }

.service-card { display: block; width: 100%; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-card > span { display: block; }
.service-card:hover { transform: translateY(-2px); }
.service-card.selected { border-color: var(--violet-line); box-shadow: 0 0 0 3px rgba(91, 91, 214, .12), var(--shadow); }
.service-card .service-top { display: flex; align-items: center; gap: 12px; }
.service-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #f3f3f6; flex: none; }
.service-logo img { display: block; width: 25px; height: 25px; }
.service-logo.claude { background: #fbeee8; }
.service-name { min-width: 0; margin-right: auto; }
.service-name strong { display: block; font: 700 18px/1.25 var(--display); letter-spacing: -.01em; }
.service-name small { display: block; color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #f0f0f4; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: right; flex: none; max-width: 52%; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--mid-soft); color: var(--mid); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.service-card .score-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.score-row > span { min-width: 0; }
.score-label { display: block; color: var(--muted); font-size: 13px; }
.score-value { display: block; margin: 2px 0; font: 800 46px/1.05 var(--display); letter-spacing: -.03em; }
.score-value small { margin-left: 6px; color: var(--muted); font: 500 15px/1 Inter, sans-serif; letter-spacing: 0; }
.score-note { display: block; font-size: 13.5px; font-weight: 600; }
.tier-good { color: var(--good); }
.tier-mid { color: var(--mid); }
.tier-bad { color: var(--bad); }
.score-hint { max-width: 58%; color: var(--muted); font-size: 13px; text-align: right; }
.service-card .score-bar { position: relative; height: 8px; margin: 16px 0 12px; border-radius: 999px; background: linear-gradient(90deg, #e2566a 0%, #ec9a3c 45%, #eccb4f 62%, #33b37f 82%); }
.service-card .score-bar.empty { background: #ececf1; }
.score-bar i { position: absolute; top: -4px; width: 6px; height: 16px; margin-left: -3px; border: 1.5px solid #fff; border-radius: 4px; background: var(--ink); transition: left .4s; }
.service-card .service-bottom { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }
.more { display: inline-flex; align-items: center; gap: 5px; color: var(--violet); font-weight: 600; }

.block { margin-top: 56px; scroll-margin-top: 84px; }
.block-head { margin-bottom: 20px; }
.overline { color: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.block-head h2 { margin: 6px 0 4px; font: 800 28px/1.2 var(--display); letter-spacing: -.02em; }
.block-head p { color: var(--muted); }

.panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font: 700 16px/1.3 var(--display); }
.panel-head p { color: var(--muted); font-size: 13px; }
.panel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-size: 20px; flex: none; }
.panel-icon.warm { background: var(--mid-soft); color: var(--mid); }
.ip-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.ip-toggle:hover { color: var(--ink); border-color: var(--line-strong); }

.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows .row:last-child { border-bottom: 0; }
.row > span { color: var(--muted); flex: none; max-width: 46%; }
.row strong { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.row strong svg { align-self: center; }
.row strong.positive { color: var(--good); }
.row strong.warning { color: var(--mid); }
.row strong.unknown { color: #98a2b3; font-weight: 500; }

.footnote { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footnote svg { margin-top: 3px; }
.note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.status-card h3 { margin-bottom: 4px; font: 700 16px/1.3 var(--display); }
.status-card .row:last-child { border-bottom: 0; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.device-grid .row:nth-last-child(2) { border-bottom: 0; }
.result { min-height: 48px; padding: 8px 0 12px; font-size: 14px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.result strong { font-weight: 600; }
.deep { width: 100%; min-height: 44px; margin-top: 14px; font-size: 14px; }

.footer { margin-top: 60px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.footer-top p { max-width: 340px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.sources { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 6px 16px; font-size: 13px; }
.sources strong { width: 100%; text-align: right; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sources a { color: var(--violet); }
.sources a:hover { text-decoration: underline; }
.legal { margin-top: 22px; color: var(--muted); font-size: 12.5px; }

dialog { width: min(460px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(20, 20, 60, .45); }
dialog::backdrop { background: rgba(20, 22, 40, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f1f5; font-size: 18px; }
dialog h2 { margin: 14px 0 6px; font: 800 24px/1.2 var(--display); letter-spacing: -.02em; }
dialog > p { color: var(--muted); font-size: 14px; }
#card-form { margin-top: 16px; }
#card-form label[for], legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; }
.select { position: relative; }
.select select { width: 100%; height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; appearance: none; -webkit-appearance: none; }
.select svg { position: absolute; top: 15px; right: 14px; color: var(--muted); pointer-events: none; }
fieldset { margin: 16px 0 0; padding: 0; border: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 13px; }
.option b { display: block; font-size: 14px; font-weight: 600; }
.option small { color: var(--muted); font-size: 12.5px; }
.option input:checked + span { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(91, 91, 214, .18); }
.option input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.dialog-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog-actions .button { flex: 1; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; gap: 22px; padding-top: 34px; }
  .hero-actions { width: 100%; }
  .service-grid, .split, .split-wide, .status-grid, .device-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .device-grid .row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .sources { justify-content: flex-start; }
  .sources strong { text-align: left; }
  .block { margin-top: 44px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar-site { display: none; }
  .topbar-cta { padding: 9px 14px; font-size: 13px; }
  .service-card, .panel { padding: 18px 16px; }
  .service-card .service-top { flex-wrap: wrap; }
  .service-name { flex: 1 1 calc(100% - 60px); }
  .chip { max-width: 100%; text-align: left; }
  .service-card .score-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .score-hint { max-width: none; text-align: left; }
  .panel-head { flex-wrap: wrap; }
  .ip-toggle { margin-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
  .spin { animation: none; }
}
