/* =========================================================
   cn.ua — Чернігівський публічний домен
   Дизайн-система: темна/світла тема, скло, градієнти, рух
   ========================================================= */

:root {
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --c-blue: #38b6ff;
  --c-violet: #7c5cff;
  --c-pink: #ff4fa3;
  --c-green: #2ee6a6;
  --c-amber: #ffc24b;
  --c-red: #ff5a6a;
  --c-cyan: #4df0ff;

  --grad: linear-gradient(115deg, var(--c-blue) 0%, var(--c-violet) 48%, var(--c-pink) 100%);
  --grad-soft: linear-gradient(115deg, rgba(56,182,255,.18), rgba(124,92,255,.16), rgba(255,79,163,.14));

  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050912;
  --bg-soft: #0a1122;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --surface-solid: #0c1427;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #edf2ff;
  --text-2: #b6c1dc;
  --muted: #7d89a8;
  --accent: #38b6ff;
  --accent-ink: #04111f;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
  --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, .7);
  --grid-line: rgba(255, 255, 255, .045);
  --glow-a: rgba(56, 182, 255, .22);
  --glow-b: rgba(124, 92, 255, .2);
  --glow-c: rgba(255, 79, 163, .12);
  --header-bg: rgba(5, 9, 18, .62);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fd;
  --bg-soft: #e9eef8;
  --surface: rgba(255, 255, 255, .7);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(12, 24, 54, .09);
  --border-strong: rgba(12, 24, 54, .18);
  --text: #0a1226;
  --text-2: #33405e;
  --muted: #65718e;
  --accent: #0a86de;
  --accent-ink: #ffffff;
  --shadow: 0 40px 80px -45px rgba(20, 40, 90, .35);
  --shadow-sm: 0 12px 30px -18px rgba(20, 40, 90, .3);
  --grid-line: rgba(12, 24, 54, .055);
  --glow-a: rgba(56, 182, 255, .25);
  --glow-b: rgba(124, 92, 255, .16);
  --glow-c: rgba(255, 79, 163, .12);
  --header-bg: rgba(244, 247, 253, .72);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.gradient-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }

/* ---------- Ambient background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .9; animation: drift 26s ease-in-out infinite alternate; }
.bg-fx .blob.a { width: 46vw; height: 46vw; left: -10vw; top: -16vw; background: var(--glow-a); }
.bg-fx .blob.b { width: 40vw; height: 40vw; right: -12vw; top: 4vh; background: var(--glow-b); animation-duration: 32s; animation-delay: -8s; }
.bg-fx .blob.c { width: 34vw; height: 34vw; left: 30vw; top: 60vh; background: var(--glow-c); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.94); }
}
.bg-fx .noise {
  position: absolute; inset: -50%; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; position: relative; }
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.logo-mark .orbit-dot { transform-origin: 21px 21px; animation: spin 7s linear infinite; }
.logo:hover .orbit-dot { animation-duration: 1.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.logo-text .tld { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 12px var(--accent); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(760px, 92vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; transition: background .2s; }
.mega a:hover, .mega a.is-active { background: var(--surface-2); }
.mega .ico { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); border: 1px solid var(--border); }
.mega .ico svg { width: 19px; height: 19px; }
.mega strong { display: block; font-size: .95rem; line-height: 1.3; }
.mega span.d { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: color .2s, border-color .2s, transform .2s var(--ease), background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; transition: border-color .2s, color .2s; }
.search-btn:hover { border-color: var(--border-strong); color: var(--text); }
.search-btn svg { width: 17px; height: 17px; }
.kbd { font-family: var(--font-mono); font-size: .72rem; padding: 3px 7px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface-2); }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface-2);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 16px;
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--b-bg); color: var(--text);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: var(--text-2); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { border: 0; color: #fff; background: var(--grad); background-size: 180% 100%; box-shadow: 0 14px 40px -14px rgba(124, 92, 255, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 20px 50px -14px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-sm { height: 42px; padding: 0 16px; border-radius: 12px; font-size: .9rem; }
.btn-ghost { background: transparent; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / Kickers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(8px);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 rgba(46, 230, 166, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }
.kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.tag.blue { color: var(--c-blue); border-color: rgba(56,182,255,.35); background: rgba(56,182,255,.08); }
.tag.pink { color: var(--c-pink); border-color: rgba(255,79,163,.35); background: rgba(255,79,163,.08); }
.tag.green { color: var(--c-green); border-color: rgba(46,230,166,.35); background: rgba(46,230,166,.08); }
.tag.violet { color: var(--c-violet); border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.1); }
html[data-theme="light"] .tag.green { color: #0b9e6d; }
html[data-theme="light"] .tag.blue { color: #0a86de; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head p { font-size: 1.12rem; color: var(--text-2); max-width: 620px; }
.section-head.center p { margin-inline: auto; }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(22px, 2.6vw, 34px);
  transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .16), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 182, 255, .8), rgba(255, 79, 163, .35) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff; background: var(--grad); box-shadow: 0 12px 30px -12px rgba(124, 92, 255, .8);
}
.card-ico svg { width: 24px; height: 24px; }
.card-ico.blue { background: linear-gradient(135deg, #38b6ff, #2a6cff); box-shadow: 0 12px 30px -12px rgba(56,182,255,.8); }
.card-ico.pink { background: linear-gradient(135deg, #ff4fa3, #b04bff); box-shadow: 0 12px 30px -12px rgba(255,79,163,.8); }
.card-ico.green { background: linear-gradient(135deg, #2ee6a6, #12a5c9); box-shadow: 0 12px 30px -12px rgba(46,230,166,.7); }
.card-ico.amber { background: linear-gradient(135deg, #ffc24b, #ff7a45); box-shadow: 0 12px 30px -12px rgba(255,170,70,.7); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-2); font-size: .98rem; margin-bottom: 0; }
.card .more { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .line { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-2); max-width: 560px; margin-bottom: 34px; }

.orbit-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; margin-inline: auto; }
.orbit-stage canvas { width: 100%; height: 100%; }
.orbit-legend { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
.orbit-legend .tag { backdrop-filter: blur(10px); background: var(--surface); }
.orbit-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.orbit-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3;
  padding: 8px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.35; white-space: nowrap;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s;
}
.orbit-tip.show { opacity: 1; }
.orbit-tip b { font-family: var(--font-mono); color: var(--accent); display: block; }

/* Domain checker */
.checker {
  position: relative; border-radius: 22px; padding: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 6px rgba(124, 92, 255, .05);
  max-width: 600px;
}
.checker::before {
  content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--c-blue), var(--c-violet), var(--c-pink), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 5s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ang { to { --ang: 360deg; } }
.checker-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.checker-field { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: 16px; height: 56px; }
.checker-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; margin-right: 10px; }
.checker input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--font-mono); font-size: 1.08rem; font-weight: 500; color: var(--text);
}
.checker input::placeholder { color: var(--muted); opacity: .8; }
.checker select {
  height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem; color: var(--accent);
  padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d89a8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.checker .btn { height: 56px; border-radius: 15px; }
.checker-rules { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 10px 6px; }
.rule { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 4px 10px 4px 7px; border-radius: 999px; border: 1px solid var(--border); transition: all .25s var(--ease); }
.rule i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: .62rem; transition: all .25s var(--ease-spring); }
.rule.ok { color: var(--c-green); border-color: rgba(46, 230, 166, .35); background: rgba(46, 230, 166, .07); }
.rule.ok i { background: var(--c-green); color: #04140e; transform: scale(1.1); }
.rule.bad { color: var(--c-red); border-color: rgba(255, 90, 106, .4); background: rgba(255, 90, 106, .07); }
.rule.bad i { background: var(--c-red); color: #fff; }
html[data-theme="light"] .rule.ok { color: #0b9e6d; }
.checker-result { position: relative; z-index: 1; display: none; margin: 6px 6px 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; }
.checker-result.show { display: block; animation: rise .45s var(--ease); }
.checker-result .fqdn { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; word-break: break-all; }
.checker-result .puny { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); word-break: break-all; }
.checker-result .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.checker-result.ok { border-color: rgba(46, 230, 166, .4); }
.checker-result.bad { border-color: rgba(255, 90, 106, .45); }
.checker-result .status { display: flex; gap: 10px; align-items: flex-start; }
.checker-result .status svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.checker-result.ok .status svg { color: var(--c-green); }
.checker-result.bad .status svg { color: var(--c-red); }
.checker-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--border); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-family: var(--font-mono); font-size: .88rem; color: var(--text-2); white-space: nowrap; transition: color .2s, border-color .2s; }
.marquee a:hover { color: var(--text); border-color: var(--accent); }
.marquee a i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 26px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; }
.stat .num small { font-size: .5em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat .lbl { color: var(--text-2); font-size: .95rem; line-height: 1.45; }
.stat .src { display: block; margin-top: 10px; font-size: .75rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.bento > * { grid-column: span 2; display: flex; flex-direction: column; }
.bento .w3 { grid-column: span 3; }
.bento .w4 { grid-column: span 4; }
.bento .h2 { grid-row: span 2; }
.bento .grow { flex: 1; }
.bento .card .more { margin-top: auto; padding-top: 20px; }
.bento-feature { background: linear-gradient(160deg, rgba(56,182,255,.13), rgba(124,92,255,.08) 45%, transparent 70%), var(--surface); }
.mini-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; }
.mini-list li span:first-child { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.mini-list li span:last-child { color: var(--muted); font-size: .82rem; text-align: right; }
.big-number { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5.4rem); font-weight: 600; line-height: .95; letter-spacing: -.05em; margin: 10px 0 8px; }
.steps-mini { display: flex; gap: 6px; margin: 20px 0 0; }
.steps-mini span { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.steps-mini span::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; animation: fill-step 7s var(--ease) infinite; }
.steps-mini span:nth-child(2)::after { animation-delay: .5s; } .steps-mini span:nth-child(3)::after { animation-delay: 1s; }
.steps-mini span:nth-child(4)::after { animation-delay: 1.5s; } .steps-mini span:nth-child(5)::after { animation-delay: 2s; }
.steps-mini span:nth-child(6)::after { animation-delay: 2.5s; } .steps-mini span:nth-child(7)::after { animation-delay: 3s; }
@keyframes fill-step { 0%, 5% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- DNS diagram ---------- */
.dns { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.dns-visual { padding: 20px; }
.dns-visual svg { width: 100%; height: auto; overflow: visible; }
.dns-visual .node rect { fill: var(--surface-solid); stroke: var(--border-strong); }
.dns-visual .node text { fill: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.dns-visual .node text.sub { fill: var(--muted); font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.dns-visual .wire { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.dns-visual .packet { filter: drop-shadow(0 0 8px var(--c-blue)); }
.dns-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.dns-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.dns-steps li::before { content: "0" counter(s); font-family: var(--font-mono); font-weight: 700; font-size: .85rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: all .3s; }
.dns-steps li.is-on { border-color: rgba(56, 182, 255, .45); background: linear-gradient(90deg, rgba(56,182,255,.09), transparent); transform: translateX(6px); }
.dns-steps li.is-on::before { background: var(--grad); color: #fff; }
.dns-steps strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.dns-steps p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* ---------- Lifecycle ---------- */
.lifecycle { position: relative; }
.lc-track { display: grid; grid-template-columns: .7fr 2.2fr 1.3fr 1.3fr .9fr; gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); position: relative; }
.lc-seg { position: relative; padding: 22px 18px 20px; border-right: 1px solid var(--border); text-align: left; cursor: pointer; transition: background .3s; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.lc-seg:last-child { border-right: 0; }
.lc-seg:hover, .lc-seg.is-active { background: var(--surface-2); }
.lc-seg .dur { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.lc-seg .nm { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; margin: 8px 0 6px; }
.lc-seg .en { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.lc-seg .bar { height: 6px; border-radius: 6px; margin-top: 16px; background: var(--seg, var(--c-blue)); box-shadow: 0 0 18px -2px var(--seg, var(--c-blue)); }
.lc-seg.is-active .nm { color: var(--seg); }
.lc-runner { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; pointer-events: none; }
.lc-runner::after { content: ""; position: absolute; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--c-blue); animation: run 9s linear infinite; }
@keyframes run { from { left: 0; } to { left: calc(100% - 11px); } }
.lc-events { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
.lc-event { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-2); padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.lc-event i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--ev); box-shadow: 0 0 10px var(--ev); }
.lc-detail { margin-top: 18px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); min-height: 110px; }
.lc-detail h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 6px; }
.lc-detail p { margin: 0; color: var(--text-2); }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.zone { text-align: left; }
.zone .zname { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.02em; margin: 6px 0 12px; }
.zone .zname b { color: var(--muted); font-weight: 500; }
.zone.main { background: linear-gradient(160deg, rgba(56,182,255,.16), transparent 60%), var(--surface); border-color: rgba(56,182,255,.35); }
.mirror-link { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-family: var(--font-mono); font-size: .86rem; color: var(--text-2); }
.mirror-link .line { flex: 1; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-violet), transparent); position: relative; overflow: hidden; }
.mirror-link .line::after { content: ""; position: absolute; top: -2px; width: 30px; height: 5px; border-radius: 5px; background: var(--c-pink); filter: blur(2px); animation: mirror 2.4s ease-in-out infinite; }
.mirror-link .line.rev::after { animation-direction: reverse; }
@keyframes mirror { from { left: -30px; } to { left: 100%; } }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc { display: flex; flex-direction: column; gap: 14px; }
.doc .ext { width: 54px; height: 66px; border-radius: 10px 18px 10px 10px; display: grid; place-items: end center; padding-bottom: 10px; font-family: var(--font-mono); font-weight: 700; font-size: .74rem; color: #fff; position: relative; }
.doc .ext::before { content: ""; position: absolute; right: 0; top: 0; width: 16px; height: 16px; border-radius: 0 10px 0 6px; background: rgba(255,255,255,.35); }
.doc .ext.pdf { background: linear-gradient(160deg, #ff6a7a, #ff4fa3); }
.doc .ext.doc { background: linear-gradient(160deg, #38b6ff, #2a6cff); }
.doc h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.doc .meta { font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.doc .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Notice / CTA ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; border-color: rgba(255, 194, 75, .3); background: linear-gradient(135deg, rgba(255, 194, 75, .08), transparent 55%), var(--surface); }
.notice .card-ico { margin: 0; }
.cta {
  position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 96px) clamp(22px, 5vw, 80px);
  border-radius: 34px; border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56,182,255,.28), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255,79,163,.22), transparent 55%),
    var(--surface-solid);
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta p { color: var(--text-2); max-width: 600px; margin-inline: auto; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.copy-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-family: var(--font-mono); font-size: .9rem; transition: border-color .2s, transform .2s var(--ease); }
.copy-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.copy-chip svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 70px 0 34px; border-top: 1px solid var(--border); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 340px; margin-top: 18px; }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.06em; text-align: center; margin: 60px 0 0; background: linear-gradient(180deg, var(--border-strong), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 4vw, 50px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); max-width: 980px; margin: 18px 0 18px; }
.page-hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-2); max-width: 760px; margin: 0; }
.page-hero .orb { position: absolute; right: 4%; top: 10%; width: clamp(140px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%; z-index: -1; opacity: .9; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 30%), conic-gradient(from 200deg, var(--c-blue), var(--c-violet), var(--c-pink), var(--c-blue)); filter: blur(2px) saturate(1.1); animation: float 9s ease-in-out infinite; }
.page-hero .orb::after { content: ""; position: absolute; inset: -18%; border-radius: 50%; border: 1px solid var(--border-strong); transform: rotateX(70deg); }
html[data-theme="dark"] .page-hero .orb { opacity: .55; }
@keyframes float { 50% { transform: translateY(-14px) rotate(8deg); } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Doc layout with side nav ---------- */
.doc-layout { display: grid; grid-template-columns: 290px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 40px; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px 4px; }
.side-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-radius: 12px; font-size: .92rem; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.side-nav a .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .74rem; border: 1.5px solid var(--border-strong); color: var(--muted); transition: all .25s; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active .n { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(124,92,255,.8); }
.side-nav a:hover .n { border-color: var(--accent); color: var(--accent); }
.side-nav a.is-active:hover .n { color: #fff; }
.side-card { margin-top: 22px; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--grad-soft); }
.side-card p { font-size: .88rem; color: var(--text-2); margin: 0 0 12px; }

.content { min-width: 0; }
.content > * + * { margin-top: 0; }
.block { margin-bottom: clamp(28px, 4vw, 48px); }
.prose { font-size: 1.06rem; color: var(--text-2); }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(56,182,255,.35); text-underline-offset: 3px; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--text); margin: 1.6em 0 .6em; }
.prose h3 { color: var(--text); margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.lead-big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.lead-big em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(56,182,255,.3); background: rgba(56,182,255,.06); color: var(--text-2); font-size: .97rem; }
.callout svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.callout.warn { border-color: rgba(255,194,75,.35); background: rgba(255,194,75,.07); }
.callout.warn svg { color: var(--c-amber); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--text); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager small { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager strong { font-family: var(--font-display); font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--c-blue), var(--c-violet), var(--c-pink)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 30px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c-violet); box-shadow: 0 0 0 5px var(--bg); }
.timeline .yr { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: .9rem; }
.timeline h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 4px 0 4px; }
.timeline p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* Rules list */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.rules li .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: .85rem; border: 1px solid var(--border); }
.rules li code, .prose code, .callout code { font-family: var(--font-mono); font-size: .88em; padding: 2px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.rules strong { display: block; color: var(--text); margin-bottom: 2px; }
.rules span { color: var(--text-2); font-size: .95rem; }

/* Declaration */
.manifesto { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.4; letter-spacing: -.02em; color: var(--text); }
.manifesto mark { background: none; color: transparent; background-image: var(--grad); -webkit-background-clip: text; background-clip: text; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; }
.principles .tag { font-size: .88rem; padding: 9px 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.duo li { position: relative; padding-left: 30px; color: var(--text-2); font-size: .97rem; }
.duo li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.duo li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.signature { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; border: 1px dashed var(--border-strong); color: var(--text-2); }
.signature svg { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; }

/* ---------- Registrars directory ---------- */
.dir-toolbar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 20px; border: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.dir-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.dir-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.dir-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: .98rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); gap: 2px; flex-wrap: wrap; }
.seg button { height: 36px; padding: 0 12px; border-radius: 10px; font-size: .85rem; font-weight: 700; color: var(--muted); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button .c { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.dir-count { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); padding: 0 8px; margin-left: auto; }
.dir-count b { color: var(--text); }
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reg { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.reg:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.reg .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reg .rid { font-family: var(--font-mono); font-weight: 700; font-size: .92rem; color: var(--accent); }
.reg .co { font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--text); }
.reg .site { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .86rem; color: var(--text-2); padding-top: 8px; border-top: 1px dashed var(--border); }
.reg .site:hover { color: var(--accent); }
.reg .site svg { width: 14px; height: 14px; }
.reg .avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff; background: var(--av, var(--grad)); flex-shrink: 0; }
.reg .head { display: flex; gap: 12px; align-items: center; }
.reg mark, .reg-table mark { background: rgba(255, 194, 75, .3); color: inherit; border-radius: 4px; padding: 0 2px; }
.reg[hidden] { display: none; }
.reg-grid.as-list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.reg-grid.as-list .reg { flex-direction: row; align-items: center; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 12px 18px; transform: none; box-shadow: none; }
.reg-grid.as-list .reg:hover { background: var(--surface-2); }
.reg-grid.as-list .reg .top { flex: 0 0 auto; }
.reg-grid.as-list .reg .head { flex: 0 0 260px; }
.reg-grid.as-list .reg .co { flex: 1; font-weight: 600; font-size: .95rem; }
.reg-grid.as-list .reg .site { margin: 0; border: 0; padding: 0; flex: 0 0 220px; justify-content: flex-end; }
.reg-grid.as-list .reg .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: .8rem; }
.reg-grid.as-list .reg .tag { display: none; }
.dir-empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 20px; }
.dir-empty.show { display: block; }

/* ---------- Stepper ---------- */
.stepper { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.stepper-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; position: relative; }
.stepper-nav button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; font-weight: 600; font-size: .93rem; color: var(--muted); transition: all .25s; }
.stepper-nav button .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; border: 1.5px solid var(--border-strong); transition: all .3s var(--ease-spring); }
.stepper-nav button:hover { color: var(--text); background: var(--surface); }
.stepper-nav button.is-done .n { background: rgba(46,230,166,.15); border-color: rgba(46,230,166,.5); color: var(--c-green); }
.stepper-nav button.is-on { color: var(--text); background: var(--surface-2); }
.stepper-nav button.is-on .n { background: var(--grad); border-color: transparent; color: #fff; transform: scale(1.08); box-shadow: 0 8px 20px -8px rgba(124,92,255,.9); }
.stepper-panel { position: relative; padding: clamp(26px, 3.4vw, 44px); min-height: 360px; display: flex; flex-direction: column; }
.stepper-panel .big { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; position: absolute; right: 26px; top: 18px; background: linear-gradient(180deg, var(--border-strong), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-body { display: none; }
.step-body.is-on { display: block; animation: rise .45s var(--ease); }
.step-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); max-width: 80%; }
.step-body p { color: var(--text-2); font-size: 1.05rem; max-width: 640px; }
.step-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: auto 0 18px; }
.step-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s var(--ease); }
.step-ctrl { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.step-visual { margin: 18px 0 24px; padding: 16px 18px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); overflow-x: auto; }
.step-visual .k { color: var(--c-pink); }
.step-visual .v { color: var(--c-green); }
.step-visual .c { color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .25s, background .25s; }
.checklist label:hover { border-color: var(--border-strong); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checklist .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--border-strong); display: grid; place-items: center; transition: all .3s var(--ease-spring); }
.checklist .box svg { width: 16px; height: 16px; color: #fff; transform: scale(0); transition: transform .3s var(--ease-spring); }
.checklist input:checked + label { border-color: rgba(46,230,166,.45); background: rgba(46,230,166,.06); }
.checklist input:checked + label .box { background: var(--c-green); border-color: var(--c-green); }
.checklist input:checked + label .box svg { transform: scale(1); }
.checklist input:checked + label strong { text-decoration: line-through; text-decoration-color: rgba(46,230,166,.6); }
.checklist input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.checklist strong { display: block; color: var(--text); margin-bottom: 2px; }
.checklist span.t { color: var(--text-2); font-size: .95rem; }
.ring-card { text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.ring { width: 160px; height: 160px; margin: 0 auto 16px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 600; }

/* ---------- Glossary / Accordion ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, background .25s; overflow: hidden; }
.acc details[open] { border-color: rgba(124,92,255,.4); background: var(--surface-2); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .term { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 9px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); }
.acc summary h3 { margin: 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.acc summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; transition: transform .3s var(--ease), background .3s; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.acc details[open] .pm { transform: rotate(180deg); background: var(--grad); color: #fff; border-color: transparent; }
.acc details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc .ans { padding: 0 22px 22px 22px; color: var(--text-2); font-size: 1rem; }
.acc .ans p { margin: 0 0 .6em; }
.acc .ans .src { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.acc details[hidden] { display: none; }

/* ---------- Charts ---------- */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 14px; align-items: center; font-size: .92rem; }
.bar-row .lbl { font-weight: 700; }
.bar-row .track { display: block; height: 14px; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; width: 0; border-radius: 14px; background: var(--bar, var(--grad)); transition: width 1.2s var(--ease); }
.bar-row .v { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; }
.donut { width: 200px; height: 200px; border-radius: 50%; position: relative; background: conic-gradient(var(--stops)); transition: transform .6s var(--ease); }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: var(--surface-solid); }
.donut .center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; }
.donut .center small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.legend b { margin-left: auto; font-family: var(--font-mono); }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card .label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card .value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.35; letter-spacing: -.01em; word-break: break-word; }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.req-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.req-table th, .req-table td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.req-table th { color: var(--muted); font-weight: 600; width: 38%; }
.req-table td { color: var(--text); font-weight: 600; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.req-table .copy-inline { margin-left: 8px; opacity: 0; transition: opacity .2s; vertical-align: middle; }
.req-table tr:hover .copy-inline { opacity: 1; }
.copy-inline { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.copy-inline:hover { color: var(--accent); border-color: var(--accent); }
.copy-inline svg { width: 14px; height: 14px; }
.as-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-family: var(--font-mono); font-weight: 700; }
.as-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 10px var(--c-green); }
.map-art { position: relative; min-height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); }
.map-art .pin span { display: block; padding: 10px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.map-art .pin::after { content: ""; display: block; width: 18px; height: 18px; margin: 8px auto 0; border-radius: 50%; background: var(--c-pink); box-shadow: 0 0 0 6px rgba(255,79,163,.25), 0 0 0 14px rgba(255,79,163,.1); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 10px rgba(255,79,163,.2), 0 0 0 24px rgba(255,79,163,0); } }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(3, 6, 14, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.palette.open { display: flex; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.palette-box { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); animation: pop .3s var(--ease-spring); }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid var(--border); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); }
.palette-input input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1.08rem; }
.palette-list { overflow-y: auto; padding: 8px; }
.palette-group { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
.palette-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.palette-item .i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); border: 1px solid var(--border); }
.palette-item .i svg { width: 17px; height: 17px; }
.palette-item .t { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.palette-item .d { font-size: .8rem; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.palette-item .go { font-size: .75rem; color: var(--muted); opacity: 0; }
.palette-item.is-sel { background: var(--surface-2); }
.palette-item.is-sel .go { opacity: 1; }
.palette-item.is-sel .i { background: var(--grad); color: #fff; border-color: transparent; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
.palette-empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- Toast & to-top ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; transition: all .35s var(--ease-spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--c-green); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; display: none; flex-direction: column; padding: 90px 22px 30px; background: var(--bg); overflow-y: auto; }
.mobile-menu.open { display: flex; animation: fade .25s var(--ease); }
.mobile-menu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 1.05rem; }
.mobile-menu a.sub { padding-left: 18px; font-size: .95rem; color: var(--text-2); font-weight: 500; }
.mobile-menu a.is-active { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal="left"] { transform: translateX(-30px); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.split-ready .split-word > span { transform: none; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: clamp(60px, 12vw, 160px) 0; }
.nf .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .search-btn .lbl, .search-btn .kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .header-cta { display: none; }
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbit-stage { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .w3, .bento .w4 { grid-column: span 1; }
  .bento .w4 { grid-column: span 2; }
  .bento .h2 { grid-row: span 1; }
  .dns { grid-template-columns: 1fr; }
  .lc-track { grid-template-columns: 1fr 1fr; }
  .lc-seg { border-bottom: 1px solid var(--border); }
  .lc-events { grid-template-columns: repeat(3, 1fr); }
  .lc-runner { display: none; }
  .zones, .docs, .contact-grid, .grid-3 { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: none; }
  .stepper { grid-template-columns: 1fr; }
  .stepper-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .stepper-nav button { grid-template-columns: 34px; }
  .stepper-nav button .lbl { display: none; }
  .checklist-wrap { grid-template-columns: 1fr; }
  .ring-card { position: static; }
  .duo { grid-template-columns: 1fr; }
  .reg-grid.as-list .reg .head { flex-basis: 200px; }
  .reg-grid.as-list .reg .site { flex-basis: 170px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--container)); }
  .logo-text small { display: none; }
  .search-btn { display: none; }
  .checker-row { flex-wrap: wrap; }
  .checker-field { flex: 1 1 100%; }
  .checker select { flex: 1; }
  .checker .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 18px; }
  .bento { grid-template-columns: 1fr; }
  .bento .w4 { grid-column: span 1; }
  .lc-track { grid-template-columns: 1fr; }
  .lc-events { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-grid.as-list .reg { flex-wrap: wrap; gap: 6px 12px; }
  .reg-grid.as-list .reg .head, .reg-grid.as-list .reg .site { flex-basis: auto; }
  .reg-grid.as-list .reg .co { flex-basis: 100%; order: 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-2 { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .bar-row { grid-template-columns: 90px 1fr 44px; }
  .dir-count { margin-left: 0; }
  .page-hero .orb { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
@media print {
  .site-header, .site-footer, .bg-fx, .to-top, .palette, .scroll-progress, .side-nav, .dir-toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; background: #fff; }
}

/* =========================================================
   Додаткові компоненти (SEO-блоки, меню груп, документи)
   ========================================================= */
.mega { width: min(980px, 94vw); grid-template-columns: repeat(3, 1fr); gap: 6px 10px; }
.mega-col { display: grid; gap: 2px; align-content: start; }
.mega-h { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 6px; }
.mega a { padding: 10px 12px; }
.mega .ico { flex-basis: 34px; height: 34px; border-radius: 10px; }
.mega .ico svg { width: 17px; height: 17px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mm-h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 22px 4px 6px; }

.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: .85rem; color: var(--muted); font-family: var(--font-mono); }
.page-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); margin-right: 10px; }

.tldr { position: relative; padding: 22px 26px 20px; border-radius: 22px; border: 1px solid rgba(124, 92, 255, .35); background: linear-gradient(135deg, rgba(56,182,255,.09), rgba(124,92,255,.07) 50%, rgba(255,79,163,.05)), var(--surface); }
.tldr-h { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tldr-h svg { width: 16px; height: 16px; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tldr li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 1rem; }
.tldr li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.tldr strong { color: var(--text); }
.tldr a { color: var(--accent); }

.faq h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin-bottom: 22px; }
.src-note { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: 12px; }

.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.cmp tbody th { color: var(--accent); font-weight: 700; white-space: nowrap; }
.cmp td { color: var(--text-2); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

.terminal { margin: 18px 0; padding: 20px 22px; border-radius: 18px; background: #070c18; border: 1px solid rgba(255,255,255,.1); color: #d7e1f7; font-family: var(--font-mono); font-size: .86rem; line-height: 1.7; overflow-x: auto; white-space: pre; box-shadow: var(--shadow-sm); }
.terminal::before { content: "● ● ●"; display: block; color: #3a4560; letter-spacing: 4px; font-size: .7rem; margin-bottom: 10px; }
.terminal .c { color: #7d89a8; }
.terminal .v { color: #2ee6a6; }
.step-visual { white-space: pre; }

.mirror-card { padding: clamp(24px, 4vw, 44px); }
.mirror-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; text-align: center; }
.mirror-pair .zname { font-weight: 700; font-size: clamp(1rem, 2vw, 1.5rem); margin-top: 10px; word-break: break-all; }
.mirror-pair .zname b { color: var(--muted); font-weight: 500; }
.mirror-arrows { display: grid; gap: 8px; width: clamp(60px, 12vw, 160px); }
.mirror-arrows .line { height: 2px; background: linear-gradient(90deg, transparent, var(--c-violet), transparent); position: relative; overflow: hidden; border-radius: 2px; }
.mirror-arrows .line::after { content: ""; position: absolute; top: -2px; width: 30px; height: 6px; border-radius: 6px; background: var(--c-pink); filter: blur(2px); animation: mirror 2.4s ease-in-out infinite; }
.mirror-arrows .line.rev::after { animation-direction: reverse; background: var(--c-blue); }

.toc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toc-grid li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .95rem; }
.toc-grid li span { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.toc-grid li a { margin-left: auto; font-size: .82rem; color: var(--accent); white-space: nowrap; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; transition: border-color .2s, transform .2s var(--ease); }
.link-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.link-list svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

.law-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.law-card .card-ico { margin: 0; }
.law-card h3 { margin: 0 0 4px; }
.law-ext { width: 22px; height: 22px; color: var(--muted); }

.doc-quote { margin: 0; padding: clamp(22px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--border); border-left: 4px solid var(--c-violet); background: var(--surface); color: var(--text-2); font-size: 1rem; }
.doc-quote p { margin: 0 0 .9em; }
.doc-quote ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc-quote li { margin-bottom: .4em; }
.doc-quote li::marker { color: var(--c-violet); }

.glossary-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; max-width: 620px; }
.glossary-search .dir-search { flex: 1 1 280px; }
.nf-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -.06em; margin-bottom: 20px; }
.marquee .marquee-label { margin-bottom: 14px; }
.hero h1 .gradient-text { display: inline-block; }
.contact-card .value a { transition: color .2s; }
.contact-card .value a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .mega { grid-template-columns: 1fr 1fr; }
  .toc-grid { grid-template-columns: 1fr; }
  .mirror-pair { grid-template-columns: 1fr; }
  .mirror-arrows { margin: 0 auto; transform: rotate(90deg); width: 60px; }
}
@media (max-width: 640px) {
  .law-card { grid-template-columns: 1fr; }
  .law-ext { display: none; }
  .stats[style] { grid-template-columns: 1fr !important; }
}

/* ---------- міні-схема трансферу ---------- */
.xfer-mini { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 10px; margin-top: 26px; }
.xfer-mini .node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .74rem; line-height: 1.25; color: var(--text-2);
  padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.xfer-mini .node svg { width: 22px; height: 22px; color: var(--accent); }
.xfer-mini .node:last-child svg { color: #2ee6a6; }
.xfer-mini .wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 11px); }
.xfer-mini .wire i { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); font: 600 .66rem/1 var(--font-mono); font-style: normal; white-space: nowrap;
  padding: 5px 8px; border-radius: 999px; color: #1a1300; background: #ffc24b; box-shadow: 0 0 18px rgba(255,194,75,.45); animation: xfer-key 3.6s var(--ease) infinite; }
@keyframes xfer-key { 0%, 12% { left: 0; opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 88%, 100% { left: 100%; opacity: 0; } }
.rule, .mono, code, kbd, pre, .terminal { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
@media (prefers-reduced-motion: reduce) { .xfer-mini .wire i { animation: none; left: 50%; } }
.lc-seg > span:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.lc-seg .dur, .lc-seg .nm, .lc-seg .en { display: block; }
.lc-seg .nm { hyphens: auto; overflow-wrap: anywhere; }
html[data-theme="light"] .page-hero .orb { opacity: .6; }
.contact-card .value { word-break: normal; overflow-wrap: normal; }
.contact-card .value a[href^="mailto:"] { font-size: .92em; }
.mobile-menu a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .6; }
body.menu-open .site-header { z-index: 160; }
.mobile-menu .mm-search { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 500; width: 100%; text-align: left; }
.mobile-menu .mm-search svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .acc summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 16px 16px; }
  .acc summary .term { grid-column: 1; grid-row: 1; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acc summary h3 { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
  .acc summary .pm { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
