:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F6F7;
  --bg-panel-2: #EEEEF0;
  --border: #E3E3E6;
  --accent: #A3302A;
  --accent-dark: #7E2219;
  --accent-ring: rgba(163,48,42,.14);
  --text: #1E2026;
  --text-muted: #5F636B;
  --link: #2F5FB3;
  --success: #2E7D5B;
  --warn: #B7791F;
  --error: #D0342C;
  --on-accent: #FFFFFF;
  --clear: transparent;
  --veil: rgba(30,32,38,.28);
  --glass-1: rgba(255,255,255,.09);
  --glass-2: rgba(255,255,255,.12);
  --glass-3: rgba(255,255,255,.15);
  --glass-4: rgba(255,255,255,.18);
  --glass-sheen: rgba(255,255,255,.07);
  --glass-clear: rgba(255,255,255,0);
  --glass-row: rgba(255,255,255,.09);
  --glass-line: rgba(255,255,255,.38);
  --glass-line-soft: rgba(255,255,255,.26);
  --glass-line-strong: rgba(255,255,255,.88);
  --glass-text-dim: rgba(255,255,255,.68);
  --glass-glow: rgba(255,255,255,.13);
  --font-display: 'Inter','Noto Sans SC','PingFang SC','Hiragino Sans','Microsoft YaHei','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  --font-body: 'Inter','Noto Sans SC','PingFang SC','Hiragino Sans','Microsoft YaHei','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono','SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --r-line: 2px;
  --r-xs: 8px;
  --r-md: 14px;
  --r-layer: 18px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --r-circle: 50%;
  --nav-h: 64px;
  --wrap: 1200px;
  --header-wrap: 1280px;
  --reading-wrap: 800px;
  --gutter: 32px;
  --section-space: 88px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --time-fast: .2s;
  --time-reveal: .6s;
  --focus-width: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-ring); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible,
[tabindex]:focus-visible, input:focus-visible {
  outline: var(--focus-width) solid var(--text);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px,3.2vw,48px); letter-spacing: -.012em; }
h2 { font-size: clamp(26px,2.6vw,36px); letter-spacing: -.01em; }
h3 { font-size: 22px; }
p { margin-top: 0; }
strong { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; overflow-wrap: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
:target { scroll-margin-top: 24px; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-wrap) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section__head { margin-bottom: 36px; }
.section__head h2 { margin: 0 0 16px; }
.section__head p { max-width: 720px; color: var(--text-muted); }
.prose, .article-body { min-width: 0; line-height: 1.85; }
.prose h2, .article-body h2 { margin: 56px 0 24px; }
.prose h3, .article-body h3 { margin: 32px 0 16px; }
.prose a:not([class*="btn"]):not([class*="button"]), .article-body a:not([class*="btn"]):not([class*="button"]), .text-link { color: var(--link); text-underline-offset: .2em; }
.prose li, .article-body li { margin-block: 8px; }
.prose > :first-child, .article-body > :first-child { margin-top: 0; }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid > *, .footer__grid > *, .feature-browser > *, .topbar__row > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.card, .panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.panel { background: var(--bg-panel); color: var(--text); }
.panel--deep { background: var(--bg-panel-2); color: var(--text); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid var(--clear);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 15.5px;
  font-weight: var(--weight-medium);
  line-height: 24px;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--time-fast),border-color var(--time-fast),color var(--time-fast);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--main { background: var(--accent); color: var(--on-accent); }
.btn--main:hover, .btn--main.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn--line { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn--line:hover, .btn--line.is-hover { background: var(--bg-panel); color: var(--text); }
.btn--white { background: var(--bg); color: var(--text); }
.btn--white:hover { background: var(--bg-panel-2); color: var(--text); }
.btn:active { border-color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn.is-focus { outline: var(--focus-width) solid var(--text); outline-offset: 3px; }

.topbar { height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.topbar__row {
  height: 100%;
  width: 100%;
  max-width: min(100%,calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: var(--weight-medium);
  letter-spacing: -.005em;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.topbar__desktop { margin-left: auto; min-width: 0; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--time-fast),background-color var(--time-fast);
}
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { background: var(--bg-panel-2); color: var(--text); }
.topbar__tools { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.topbar__sep { width: 1px; height: 20px; margin: 0 14px 0 16px; background: var(--border); color: var(--text); }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
}
.lang:hover { background: var(--bg-panel); color: var(--text); }
.lang svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.lang__caret { color: var(--text-muted); font-size: 11px; }
.lang__short { display: none; }
.language__list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  z-index: 55;
}
.language__list a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-xs); text-decoration: none; }
.language__list a:hover, .language__list a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-nav {
  position: absolute;
  top: var(--nav-h);
  inset-inline: 0;
  padding: 16px var(--gutter) 24px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  z-index: 52;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-xs); text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.mobile-nav__languages { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.mobile-nav__languages p { color: var(--text-muted); margin: 0 16px 8px; font-size: 13px; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; border: 0; background: var(--veil); color: var(--text); z-index: 40; cursor: default; }

.hero {
  min-height: calc(100svh - var(--nav-h) - 36px);
  display: grid;
  align-content: center;
  padding-top: 34px;
  padding-bottom: 30px;
  overflow-x: clip;
}
.hero__head { text-align: center; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.tag__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tag__core { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.title {
  margin: 20px auto 0;
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  font-size: clamp(32px,3.2vw,46px);
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--text);
}
.title__ln { display: block; animation: ln-rise .68s var(--ease-out) both; }
.title__ln + .title__ln { animation-delay: .14s; }
.title__mark { position: relative; display: inline-block; }
.title__mark::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -.07em;
  height: .085em;
  border-radius: var(--r-line);
  background: var(--accent);
  color: var(--on-accent);
  transform-origin: 0 50%;
  animation: mark-draw .48s var(--ease-out) .66s both;
}
@keyframes ln-rise { from { opacity: 0; transform: translateY(.42em); } to { opacity: 1; transform: translateY(0); } }
@keyframes mark-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.lead { max-width: 760px; margin: 22px auto 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }
.lead strong { color: var(--text); font-weight: var(--weight-medium); }
.os { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.os a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
}
.os a:hover { background: var(--bg-panel); color: var(--text); }
.os svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text); }
.rig {
  position: relative;
  height: 372px;
  margin-top: 30px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(ellipse 62% 78% at 86% 0%,var(--glass-glow),var(--glass-clear) 70%),linear-gradient(162deg,var(--accent) 38%,var(--accent-dark) 150%);
  color: var(--on-accent);
}
.rig__cap { position: absolute; top: 40px; left: 48px; z-index: 6; }
.rig__title { margin: 0; color: var(--on-accent); font-size: 22px; font-weight: var(--weight-normal); line-height: 1.3; }
.rig__sub { margin: 8px 0 0; color: var(--glass-text-dim); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .02em; }
.rig__stage { position: absolute; top: 0; bottom: 0; left: 50%; width: 1200px; margin-left: -600px; }
.layer {
  position: absolute;
  top: 182px;
  width: 280px;
  height: 280px;
  padding: 18px 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-layer);
  background: linear-gradient(180deg,var(--glass-sheen),var(--glass-clear) 55%),var(--tint,var(--glass-1));
  color: var(--on-accent);
  transform-origin: 0 0;
  transform: skewY(-24deg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.layer--in { left: 120px; z-index: 1; --tint: var(--glass-1); border-color: var(--glass-line-soft); }
.layer--dns { left: 350px; z-index: 2; --tint: var(--glass-2); }
.layer--rules { left: 580px; z-index: 3; --tint: var(--glass-3); }
.layer--groups { left: 810px; z-index: 4; --tint: var(--glass-4); }
.layer__name { margin: 0; color: var(--on-accent); font-family: var(--font-mono); font-size: 11.5px; line-height: 18px; letter-spacing: .14em; }
.layer__note { margin: 2px 0 0; color: var(--glass-text-dim); font-size: 12px; line-height: 18px; }
.layer__rows { margin: 12px 0 0; padding: 0; list-style: none; }
.layer__rows li { padding: 5px 10px; border-radius: var(--r-xs); background: var(--glass-row); color: var(--on-accent); font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; white-space: nowrap; }
.layer__rows li + li { margin-top: 6px; }
.layer__rows .k { color: var(--glass-text-dim); }
.hop { position: absolute; top: 26px; left: -64px; width: 78px; height: 0; border-top: 1px dashed var(--glass-line-strong); }
.hop::after { content: ""; position: absolute; right: 0; top: -4px; width: 6px; height: 6px; border-top: 1px solid var(--glass-line-strong); border-right: 1px solid var(--glass-line-strong); transform: rotate(45deg); }
.hop--out { left: 196px; width: 120px; }
.facts { padding-bottom: 72px; }
.facts__bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); color: var(--text); }
.facts__bar li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 26px; font-family: var(--font-mono); font-size: 13px; line-height: 20px; min-width: 0; }
.facts__bar li + li { border-left: 1px solid var(--border); }
.facts__k { color: var(--text-muted); font-family: var(--font-body); }
.facts__v { color: var(--text); overflow-wrap: anywhere; }

.footer { background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.footer__intro { margin: 20px 0 0; max-width: 300px; color: var(--text-muted); font-size: 14px; }
.footer__title { margin: 0 0 16px; font-size: 15px; font-weight: var(--weight-medium); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; color: var(--text-muted); font-size: 13px; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { text-decoration: none; }
.reveal { opacity: 1; transform: none; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-pending .reveal { transition: opacity var(--time-reveal) var(--ease-out),transform var(--time-reveal) var(--ease-out); }
.reveal.shown { opacity: 1; transform: none; }
.decorated { position: relative; overflow-x: clip; }

@media (max-width: 1120px) {
  .rig__stage { transform: scale(.86); transform-origin: 50% 0; }
  .menu a { padding: 7px 12px; }
  .footer__grid { gap: 28px; }
}
@media (max-width: 1000px) {
  .topbar__desktop, .topbar__sep { display: none; }
  .topbar__tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1001px) {
  .mobile-nav, .nav-veil { display: none !important; }
}
@media (max-width: 860px) {
  .facts__bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facts__bar li:nth-child(3) { border-left: 0; }
  .facts__bar li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1, .title { font-size: clamp(24px,6.6vw,30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-space: 56px; }
  .wrap, .topbar__row { padding-inline: var(--gutter); }
  .grid, .footer__grid { grid-template-columns: minmax(0,1fr); }
  .card, .panel { padding: 24px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .btn { justify-content: center; }
  .rig { height: auto; padding: 24px; border-radius: var(--r-lg); }
  .rig__cap { position: static; }
  .rig__title { font-size: 18px; }
  .rig__stage { position: static; display: grid; gap: 16px; width: auto; margin: 24px 0 0; transform: none; }
  .rig .layer { position: static; width: auto; height: auto; min-width: 0; padding: 18px; transform: none; }
  .rig .layer__rows li { white-space: normal; overflow-wrap: anywhere; }
  .rig .hop { display: none; }
  .facts__bar { grid-template-columns: minmax(0,1fr); }
  .facts__bar li + li { border-left: 0; border-top: 1px solid var(--border); }
  .tilt, [data-tilt] { transform: none !important; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .topbar__tools { margin-left: auto; }
  .footer__bottom { flex-direction: column; }
  pre { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending .reveal:not(.shown) { opacity: 1; transform: none; }
}