@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-tight-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-tight-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #000000;
  --bg-2: #050505;
  --card: #111111;
  --card-2: #161616;
  --card-3: #1c1c1c;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --line-bright: rgba(255, 255, 255, 0.72);
  --text: #ffffff;
  --text-2: #b5b5b5;
  --text-3: #7d7d7d;
  --glow: rgba(255, 255, 255, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
html:lang(ja) { --sans: "Inter Tight", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
html:lang(ko) { --sans: "Inter Tight", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif; }
html:lang(zh) { --sans: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; }
html:lang(ja) body, html:lang(ko) body, html:lang(zh) body { line-height: 1.75; word-break: normal; overflow-wrap: anywhere; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh) h1, html:lang(ja) h2, html:lang(ko) h2, html:lang(zh) h2 { letter-spacing: -0.01em; line-height: 1.25; }
html:lang(ko) body { word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: #ffffff; color: #000000; }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.grid-bg, .halo { max-width: 100%; overflow: hidden; contain: strict; pointer-events: none; }
.halo {
  position: fixed;
  z-index: -1;
  left: 0;
  right: 0;
  height: 900px;
  top: -520px;
  background: radial-gradient(circle 636px at 50% 50%, rgba(255, 255, 255, 0.09) 0%, transparent 60%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; font-size: 16px; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; }
.brand-mark {
  width: 30px; height: 30px; border: 1.5px solid var(--text); border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.brand small { white-space: nowrap; font-weight: 500; color: var(--text-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.links { display: flex; gap: 4px; align-items: center; }
.links a {
  padding: 6px 10px; border-radius: 7px; color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: color .2s, background .2s;
}
.links a:hover, .links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 11px; font: 500 13px var(--sans); cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px;
  font-weight: 560; font-size: 14px; line-height: 1.3; border: 1px solid var(--line-strong); cursor: pointer; font-family: inherit; color: inherit; background: none;
  transition: transform .2s, border-color .2s, background .2s, color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-bright); transform: translateY(-1px); }
.btn.primary { background: var(--text); color: #000; border-color: var(--text); }
.btn.primary:hover { background: #e8e8e8; }
.btn.ghost { background: rgba(255, 255, 255, 0.03); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 7px; }
.btn .brandico, .chip .brandico, .dev-top .brandico { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.btn.primary .brandico { fill: #000; }
.nav-cta .btn.gh { padding: 7px 12px; font-size: 13px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-bright); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(34px, 4.8vw, 58px); letter-spacing: -0.03em; font-weight: 680; }
h2 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 660; }
h3 { font-size: 19px; letter-spacing: -0.012em; font-weight: 640; }
h4 { font-size: 16px; letter-spacing: -0.008em; font-weight: 620; }
p { margin: 0; color: var(--text-2); }
.lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--text-2); max-width: 720px; line-height: 1.65; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.white { color: var(--text); }

section { padding: 96px 0; position: relative; }
section.tight { padding: 60px 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 780px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow: hidden; transition: border-color .3s, transform .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 45%);
}
.card:hover { border-color: var(--line-bright); }
.card:hover::before { opacity: 1; }
.card h3, .card h4 { margin-bottom: 10px; }
.card p + p { margin-top: 10px; }
.card .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px; display: block;
}
.card .icon {
  width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 20px; background: var(--card-2);
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.card.raised { background: var(--card-2); }
.card.flat:hover { transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.hero { padding: 72px 0 36px; }
.hero-grid { display: grid; gap: 28px; text-align: center; justify-items: center; }
.hero h1 .dim { color: var(--text-3); }
.hero .lead { margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.player {
  margin-top: 48px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2);
  overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 40px 120px rgba(255,255,255,0.05);
}
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card);
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
}
.player-bar .lights { display: flex; gap: 7px; }
.player-bar .lights i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); display: block; }
.player-stage { position: relative; aspect-ratio: 2 / 1; }
.player-stage svg { width: 100%; height: 100%; }
.player-stage svg.portrait { display: none; }
.player-caption {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-top: 1px solid var(--line); background: var(--card);
}
.player-caption .step-no { font-family: var(--mono); font-size: 12px; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.player-caption .step-title { font-weight: 650; font-size: 16px; color: var(--text); }
.player-caption .step-text { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.player-controls { display: flex; gap: 8px; }
.player-controls button {
  background: var(--card-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px;
  height: 34px; min-width: 34px; padding: 0 10px; font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.player-controls button:hover { border-color: var(--line-bright); }
.progress { display: grid; grid-auto-flow: column; gap: 4px; padding: 0 22px 18px; background: var(--card); }
.progress span { height: 3px; border-radius: 3px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; cursor: pointer; }
.progress span i { position: absolute; inset: 0; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.stage-node rect.box { fill: #0d0d0d; stroke: rgba(255,255,255,0.22); stroke-width: 1.2; transition: stroke .5s, fill .5s; }
.stage-node.on rect.box { stroke: #ffffff; fill: #141414; }
.stage-node text { fill: #8a8a8a; font-family: var(--sans); transition: fill .5s; }
.stage-node.on text { fill: #ffffff; }
.stage-node text.sub { font-family: var(--mono); font-size: 10.5px; fill: #6f6f6f; }
.stage-node.on text.sub { fill: #bdbdbd; }
.stage-edge { stroke: rgba(255,255,255,0.14); stroke-width: 1.3; fill: none; }
.stage-edge.on { stroke: rgba(255,255,255,0.75); stroke-dasharray: 5 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.stage-fade { opacity: 0; transition: opacity .7s; }
.stage-fade.on { opacity: 1; }
.packet { fill: #ffffff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
.typing { font-family: var(--mono); font-size: 11px; fill: #ffffff; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 30px 26px; border-right: 1px solid var(--line); background: var(--card); }
.metric:last-child { border-right: none; }
.metric .num { font-family: var(--mono); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.metric .lbl { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.code {
  background: #070707; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d6d6d6; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; min-width: 0; max-width: 100%;
}
.code .k { color: #ffffff; font-weight: 600; }
.code .c { color: #6c6c6c; }
.code .s { color: #bcbcbc; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-family: var(--mono); font-size: 12px; color: var(--text-3); background: var(--card); }
.code-head + .code { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

.formula {
  font-family: var(--mono); font-size: 14px; line-height: 1.9; background: #070707; border: 1px solid var(--line);
  border-left: 2px solid var(--text); border-radius: var(--radius-sm); padding: 18px 22px; color: #e6e6e6; overflow-x: auto; overflow-wrap: anywhere; min-width: 0; max-width: 100%;
}
.formula .var { color: #ffffff; font-weight: 600; }
.formula .op { color: #8d8d8d; }

table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th, table.spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: var(--card); }
table.spec td { color: var(--text-2); }
table.spec td:first-child { color: var(--text); font-weight: 600; }
table.spec tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--card); }
.yes { color: var(--text); font-weight: 600; }
.no { color: var(--text-3); }

.steps { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 12px; }
.step { position: relative; padding: 0 0 34px 34px; }
.step::before {
  content: attr(data-n); position: absolute; left: -13px; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-bright); font-family: var(--mono); font-size: 11px;
  display: grid; place-items: center; color: var(--text);
}
.step h4 { margin-bottom: 6px; }

.diagram { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 26px; overflow-x: auto; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram .caption { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 16px; }

.dg-box { fill: #0f0f0f; stroke: rgba(255,255,255,0.28); stroke-width: 1.2; }
.dg-box.hi { stroke: #ffffff; fill: #151515; }
.dg-t { fill: #ffffff; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.dg-s { fill: #9a9a9a; font-family: var(--mono); font-size: 10.5px; }
.dg-l { stroke: rgba(255,255,255,0.45); stroke-width: 1.2; fill: none; }
.dg-l.dash { stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
.dg-arrow { fill: rgba(255,255,255,0.7); }
.dg-lane { fill: rgba(255,255,255,0.02); stroke: rgba(255,255,255,0.08); }

.callout {
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px 28px; background:
  linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.callout h3 { margin-bottom: 10px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 20px; font-size: 14px; }
.kv dt { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 2px; }
.kv dd { margin: 0; color: var(--text-2); }

.page-hero { padding: 72px 0 32px; }
.page-hero .section-head { margin-bottom: 0; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 18px; text-align: center; }
.crumbs a:hover { color: var(--text); }

.cta-band {
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 48px; text-align: center; display: grid; gap: 18px; justify-items: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08), transparent 60%), var(--card);
}

footer.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h5 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.foot-grid a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.ticker { display: flex; gap: 40px; white-space: nowrap; animation: tick 40s linear infinite; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes tick { to { transform: translateX(-50%); } }

.list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.list li { position: relative; padding-left: 22px; color: var(--text-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--text); }

.notice { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; }

@media (max-width: 1360px) {
  .nav-cta .btn.ghost { display: none; }
}
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-2);
  user-select: none; -webkit-user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--line-strong); }
.lang summary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #0b0b0b; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px; display: grid; z-index: 60; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lang-menu a { padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); display: flex; justify-content: space-between; gap: 12px; }
.lang-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-menu a.current { color: var(--text); }
.lang-menu a .code { font-family: var(--mono); font-size: 11px; line-height: inherit; color: var(--text-3); padding: 0; border: 0; border-radius: 0; background: none; white-space: nowrap; overflow: visible; }
@media (max-width: 1180px) {
  .links { display: none; }
  .links.open { display: grid; position: absolute; top: 60px; left: 0; right: 0; background: #000; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .menu-btn { display: inline-block; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  section { padding: 76px 0; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .nav-cta .btn.ghost { display: none; }
  .player-caption { grid-template-columns: 1fr; }
  .player-stage { aspect-ratio: 16 / 11; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 36px 22px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav-cta .btn.primary { display: none; }
  .brand small { display: none; }
  .nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .player-stage { aspect-ratio: 9 / 15; }
  .player-stage svg.landscape { display: none; }
  .player-stage svg.portrait { display: block; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 56px 0 24px; }
  .hero .lead, .lead { font-size: 16px; }
  .player { margin-top: 36px; }
  .player-bar span:nth-child(2) { display: none; }
  .metric { padding: 22px 18px; }
  .metric .num { font-size: 24px; }
  .card { padding: 22px; }
  .code { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero-dev { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.hero-dev .copy-row { width: min(440px, 100%); }
.hero-dev-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--text-2); background: rgba(255,255,255,0.02); transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.copy-row {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #070707; font-family: var(--mono); font-size: 12.5px;
}
.copy-row .prompt { color: var(--text-3); flex-shrink: 0; }
.copy-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-family: inherit; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.copy-row code::-webkit-scrollbar { display: none; }
.copy-btn {
  flex-shrink: 0; font: 500 11.5px var(--sans); color: var(--text-2); background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 10px; cursor: pointer; transition: color .2s, border-color .2s; min-width: 58px;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-btn.ok { color: #000; background: var(--text); border-color: var(--text); }
.dev-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dev-tile {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.dev-tile:hover { border-color: var(--line-strong); }
.dev-tile h4 { word-break: break-word; }
.dev-tile p { margin: 0; color: var(--text-2); font-size: 14px; flex: 1; max-width: 520px; }
.dev-tile .copy-row code { white-space: normal; word-break: normal; overflow-wrap: anywhere; overflow: visible; }
.dev-top { display: flex; align-items: center; gap: 8px; color: var(--text); }
.dev-top svg:not(.brandico) { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.dev-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.dev-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.dev-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .dev-hub { grid-template-columns: 1fr; } }
@media (max-width: 1360px) { .nav-cta .btn.gh { display: inline-flex; } .nav-cta .btn.gh span { display: none; } .nav-cta .btn.gh { padding: 7px 9px; } }
@media (max-width: 600px) { .hero-dev .copy-row { font-size: 11.5px; } }

.foot-contact { margin-top: 12px; font-size: 13.5px; }
.foot-contact span { color: var(--text-3); margin-right: 6px; }
.foot-contact a { display: inline; color: var(--text); }

.assist { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; font-family: var(--sans); }
.assist-launch {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 14px; border-radius: 999px; cursor: pointer;
  background: #0d0d0d; color: var(--text); border: 1px solid var(--line-strong); font: 560 13.5px var(--sans);
  box-shadow: 0 10px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04) inset; transition: border-color .2s, transform .2s;
}
.assist-launch:hover { border-color: var(--line-bright); transform: translateY(-1px); }
.assist-launch svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.assist.open .assist-launch { display: none; }
.assist-panel {
  position: absolute; right: 0; bottom: 0; width: 408px; height: min(640px, calc(100vh - 110px)); height: min(640px, calc(100dvh - 110px));
  display: flex; flex-direction: column; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
}
.assist-panel[hidden] { display: none; }
.assist-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: #0e0e0e; }
.assist-head img { width: 22px; height: 22px; }
.assist-head > div { flex: 1; min-width: 0; }
.assist-title { font-weight: 640; font-size: 14.5px; letter-spacing: -0.01em; }
.assist-sub { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.02em; }
.assist-close { background: none; border: 1px solid var(--line); color: var(--text-2); width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
.assist-close:hover { color: var(--text); border-color: var(--line-strong); }
.assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.msg { max-width: 100%; font-size: 14px; line-height: 1.6; }
.msg p { margin: 0 0 8px; color: var(--text-2); }
.msg p:last-child { margin-bottom: 0; }
.msg ol { margin: 0 0 8px; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
.msg a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.msg.bot { background: #121212; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.msg.bot h5 { margin: 0 0 8px; font-size: 14.5px; font-weight: 640; color: var(--text); }
.msg.user { align-self: flex-end; background: var(--text); color: #000; border-radius: 12px 12px 4px 12px; padding: 9px 13px; max-width: 85%; font-weight: 500; overflow-wrap: anywhere; }
.qa-code { position: relative; margin: 4px 0 10px; }
.qa-code { min-width: 0; max-width: 100%; }
.qa-code pre { margin: 0; padding: 11px 12px; background: #050505; border: 1px solid var(--line); border-radius: 8px; font: 11.5px/1.55 var(--mono); color: var(--text); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot .qa-code pre { padding-right: 64px; }
.qa-code .copy-btn { position: absolute; top: 6px; right: 6px; min-width: 0; padding: 3px 8px; font-size: 11px; }
.assist-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.assist-topics .label { width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.topic { text-align: left; background: none; border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: 500 12.5px var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.topic:hover { color: var(--text); border-color: var(--line-strong); }
.assist-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #0e0e0e; }
.assist-form input { flex: 1; min-width: 0; background: #050505; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 10px 12px; font: 16px var(--sans); }
.assist-form input:focus { outline: none; border-color: var(--line-bright); }
.assist-form button { flex-shrink: 0; width: 42px; border-radius: 9px; border: 1px solid var(--text); background: var(--text); color: #000; cursor: pointer; display: grid; place-items: center; }
.assist-form button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assist-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px 11px; font-size: 12px; background: #0e0e0e; }
.assist-foot a { color: var(--text-2); font-family: var(--mono); font-size: 11.5px; }
.assist-foot a:hover { color: var(--text); }
.assist-reset { background: none; border: none; color: var(--text-3); font: 500 12px var(--sans); cursor: pointer; padding: 0; }
.assist-reset:hover { color: var(--text); }
@media (min-width: 761px) { .assist-form input { font-size: 14px; } }
@media (max-width: 600px) {
  .assist { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .assist-launch span { display: none; }
  .assist-launch { padding: 13px; }
  .assist.open { left: 0; right: 0; bottom: 0; }
  .assist-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 88vh; height: 88dvh; border-radius: 16px 16px 0 0; border-bottom: none; padding-bottom: env(safe-area-inset-bottom); }
}
@media print { .assist { display: none; } }

.faq { display: grid; gap: 14px; max-width: 900px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.faq-q { font-size: 18px; letter-spacing: -0.012em; font-weight: 640; margin: 0 0 12px; }
.faq-a p, .faq-a ol { color: var(--text-2); margin: 0 0 10px; }
.faq-a ol { padding-left: 20px; display: grid; gap: 6px; }
.faq-a a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.faq-a .qa-code pre { margin: 4px 0 12px; padding: 12px 14px; background: #050505; border: 1px solid var(--line); border-radius: 8px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .faq-item { padding: 20px 18px; } .faq-q { font-size: 16.5px; } }

:root { --bad: #f05a5a; --bad-soft: rgba(240, 90, 90, 0.12); --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, 0.12); }
.hero h1 { font-size: clamp(32px, 4.5vw, 56px); }
.cmp-stage { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #0b0b0b, #070707); padding: 18px; }
.cmp { width: 100%; height: auto; display: block; font-family: var(--sans); }
.cmp.portrait { display: none; }
.cmp .lane { fill: rgba(255,255,255,0.015); stroke-width: 1; }
.cmp .lane.bad { stroke: rgba(240, 90, 90, 0.35); }
.cmp .lane.ok { stroke: rgba(61, 220, 151, 0.35); }
.cmp .lane-t { font: 600 12px var(--mono); letter-spacing: 0.14em; }
.cmp .lane-r { font: 500 11px var(--mono); letter-spacing: 0.1em; opacity: 0.85; }
.cmp .lane-t.bad, .cmp .lane-r.bad { fill: var(--bad); }
.cmp .lane-t.ok, .cmp .lane-r.ok { fill: var(--ok); }
.cmp .cn rect { fill: #111; stroke: rgba(255,255,255,0.28); stroke-width: 1.2; }
.cmp .cn.bad rect { stroke: rgba(240, 90, 90, 0.55); }
.cmp .cn.ok rect { stroke: rgba(61, 220, 151, 0.55); }
.cmp .cn .t { fill: #fff; font-size: 16px; font-weight: 640; }
.cmp .cn .s { fill: #9a9a9a; font: 12px var(--mono); }
.cmp .ce { fill: none; stroke-width: 1.6; }
.cmp .ce.bad { stroke: rgba(240, 90, 90, 0.6); stroke-dasharray: 5 6; }
.cmp .ce.ok { stroke: rgba(61, 220, 151, 0.75); }
.cmp marker path { fill: rgba(255,255,255,0.6); }
.cmp .cb rect { stroke-width: 1; }
.cmp .cb text { font: 600 12.5px var(--sans); }
.cmp .cb .m { font-weight: 800; }
.cmp .cb.bad rect { fill: var(--bad-soft); stroke: rgba(240, 90, 90, 0.6); }
.cmp .cb.bad text { fill: var(--bad); }
.cmp .cb.ok rect { fill: var(--ok-soft); stroke: rgba(61, 220, 151, 0.6); }
.cmp .cb.ok text { fill: var(--ok); }
.cmp .cb { animation: cmpPulse 7s ease-in-out infinite; }
@keyframes cmpPulse { 0%, 8% { opacity: 0.35; } 18%, 100% { opacity: 1; } }
.cmp .pk.bad { fill: var(--bad); filter: drop-shadow(0 0 6px rgba(240, 90, 90, 0.9)); }
.cmp .pk.ok { fill: var(--ok); filter: drop-shadow(0 0 6px rgba(61, 220, 151, 0.9)); }
.cmp .edit-mark rect { fill: var(--bad); }
.cmp .edit-mark text { fill: #000; font: 700 12px var(--sans); }
.cmp .tamper-mark rect { fill: var(--ok); }
.cmp .tamper-mark text { fill: #000; font: 700 12px var(--sans); }
.cmp .edit-mark { animation: cmpFlash 7s ease-in-out infinite; animation-delay: 2.9s; opacity: 0; }
.cmp .tamper-mark { animation: cmpFlash 7s ease-in-out infinite; animation-delay: 4.6s; opacity: 0; }
@keyframes cmpFlash { 0% { opacity: 0; } 6%, 40% { opacity: 1; } 52%, 100% { opacity: 0; } }
.cmp-legend { display: flex; gap: 22px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.cmp-legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cmp-legend .bad i { background: var(--bad); }
.cmp-legend .ok i { background: var(--ok); }
.laws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.law { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.law:hover { border-color: var(--line-strong); }
.law-c { font: 600 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.law-n { font-weight: 620; font-size: 15px; line-height: 1.4; }
.law-r { margin: 0; color: var(--text-2); font-size: 14px; flex: 1; }
.law-q { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.law-q p { margin: 0; font-size: 13.5px; color: var(--text); }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; margin-top: 7px; box-shadow: 0 0 8px rgba(61, 220, 151, 0.7); }
.notice a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (max-width: 1180px) { .laws { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .laws { grid-template-columns: 1fr; }
  .cmp.landscape { display: none; }
  .cmp.portrait { display: block; max-width: 420px; margin: 0 auto; }
  .cmp-stage { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp .cb, .cmp .edit-mark, .cmp .tamper-mark { animation: none; opacity: 1; }
  .cmp .pk { display: none; }
}

.top.compact .links { display: none; }
.top.compact .links.open { display: grid; position: absolute; top: 60px; left: 0; right: 0; background: #000; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
.top.compact .menu-btn { display: inline-block; }

.top .wrap.nav { max-width: 1440px; }

.def-band { border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 30px; background: linear-gradient(180deg, #0c0c0c, #080808); }
.def-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--text); margin: 18px 0 26px; max-width: 980px; letter-spacing: -0.005em; }
.def-points { gap: 14px; }
.def-point { border-top: 1px solid var(--line); padding-top: 16px; }
.def-point h4 { margin-bottom: 8px; }
.def-point p { margin: 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 600px) { .def-band { padding: 24px 20px; } }

.trail { border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: #070707; box-shadow: 0 30px 90px rgba(0,0,0,0.5); }
.tr-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0d0d0d; font-size: 12px; color: var(--text-3); }
.tr-bar .mono { flex: 1; text-align: center; letter-spacing: 0.04em; }
.tr-dots { display: inline-flex; gap: 6px; }
.tr-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); display: block; }
.tr-play { background: none; border: 1px solid var(--line); color: var(--text-2); border-radius: 7px; padding: 4px 11px; font: 500 12px var(--sans); cursor: pointer; }
.tr-play:hover { color: var(--text); border-color: var(--line-strong); }
.tr-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 470px; }
.tr-nav { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #0a0a0a; }
.tr-step { display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 1px solid transparent; color: var(--text-3); border-radius: 10px; padding: 10px 12px; font: 500 13.5px var(--sans); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.tr-step .n { font-size: 11px; color: var(--text-3); }
.tr-step:hover { color: var(--text-2); }
.tr-step.on { color: var(--text); background: #141414; border-color: var(--line); }
.tr-step.on .n { color: var(--ok); }
.tr-step.done .n { color: var(--text-2); }
.tr-stage { position: relative; padding: 26px 28px; min-width: 0; }
.tr-panel { display: none; animation: trIn .45s ease; }
.tr-panel.on { display: block; }
@keyframes trIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tr-panel h4 { font-size: 18px; margin-bottom: 8px; }
.tr-d { color: var(--text-2); margin: 0 0 18px; max-width: 720px; font-size: 14.5px; }
.tr-pre { margin: 0; padding: 14px 16px; font: 12.5px/1.6 var(--mono); color: var(--text); background: #040404; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-file, .tr-term { margin-bottom: 14px; }
.tr-file-h { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--text-3); padding: 0 2px 8px; }
.tr-kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tr-kv .k { color: var(--text-3); }
.tr-kv .v { color: var(--text); word-break: normal; overflow-wrap: anywhere; font-size: 12.5px; }
.tr-ok { margin-top: 14px; display: inline-block; color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.5); background: var(--ok-soft); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.tr-good { color: var(--ok); font-weight: 600; }
.tr-bad { color: var(--bad); font-weight: 600; }
.tr-hl { color: var(--ok); }
.tr-explorer { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 14px; background: #0b0b0b; }
.tr-ex-h { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 12px; color: var(--text-2); }
.tr-ex-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tr-link { display: inline-block; margin-top: 12px; color: var(--text); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tr-progress { height: 2px; background: var(--line); }
.tr-progress { overflow: hidden; }
.tr-progress i { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
@media (max-width: 900px) {
  .tr-stage { padding: 20px 16px; }
}
@media (max-width: 700px) {
  .tr-body { grid-template-columns: minmax(0, 1fr); }
  .tr-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px; padding: 10px; overflow: visible; border-right: none; border-bottom: 1px solid var(--line); }
  .tr-phase { display: none; }
  .tr-step { position: relative; flex: 0 0 auto; justify-content: center; gap: 0; min-width: 38px; height: 32px; padding: 0 9px; border-color: var(--line); border-radius: 8px; }
  .tr-step .n { font-size: 11.5px; }
  .tr-step .t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .tr-step.on { border-color: var(--line-bright); }
  .tr-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tr-bar .mono { display: none; }
}

.tr-phase { font: 600 10.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding: 12px 12px 4px; }
.tr-phase:first-child { padding-top: 4px; }
.tr-ph { display: inline-block; font: 600 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.4); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.tr-body { min-height: 560px; }

:root { --maxw: 1080px; }
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.section-head { margin: 0 auto 36px; max-width: 760px; text-align: center; justify-items: center; }
.section-head .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-hero .section-head { margin: 0 auto; }
.hero { padding: 64px 0 28px; }
.hero h1 { font-size: clamp(30px, 4.1vw, 50px); }
.hero .lead { max-width: 680px; }
.player, .cmp-stage, .trail, .def-band, .cta-band, .faq { max-width: 960px; margin-left: auto; margin-right: auto; }
.diagram { max-width: 960px; margin-left: auto; margin-right: auto; padding: 20px; }
.cmp-legend, .notice { text-align: center; justify-content: center; }
.laws, .dev-hub { max-width: 1000px; margin-left: auto; margin-right: auto; }
.def-band { text-align: center; }
.def-lead { margin-left: auto; margin-right: auto; max-width: 820px; }
.def-point { text-align: left; }
.grid.g3, .grid.g2, .grid.g4 { max-width: 1040px; margin-left: auto; margin-right: auto; }
.split { max-width: 1000px; margin-left: auto; margin-right: auto; gap: 40px; }
.tr-body { min-height: 520px; grid-template-columns: 250px minmax(0, 1fr); }
.tr-stage { padding: 22px 24px; }

.nav-cta { gap: 6px; }
.nav-cta .btn.gh, .lang summary { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; }
.menu-btn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.03); align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background .2s; }
.menu-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.mb-lines { position: relative; width: 16px; height: 12px; display: block; }
.mb-lines i { position: absolute; left: 0; width: 16px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.mb-lines i:nth-child(1) { top: 0; }
.mb-lines i:nth-child(2) { top: 5.2px; }
.mb-lines i:nth-child(3) { top: 10.4px; }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .links.open { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.97);border-top: 1px solid var(--line); padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; z-index: 70; animation: menuIn .22s ease; }
  .links.open a { font-size: 16px; padding: 14px 14px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-2); }
  .links.open a.active, .links.open a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
}
.top.compact .menu-btn { display: inline-flex; }
.top.compact .links.open { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.97);border-top: 1px solid var(--line); padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; z-index: 70; animation: menuIn .22s ease; }
.top.compact .links.open a { font-size: 16px; padding: 14px 14px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-2); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.menu-open { overflow: hidden; }
html.menu-open body { overflow: visible; overflow: clip; }
html.menu-open .assist { display: none; }
@media (max-width: 760px) {
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .wrap { padding: 0 16px; }
  .nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .def-band, .cta-band { padding: 26px 18px; }
  .diagram { padding: 14px; }
  .law, .dev-tile, .card { padding: 20px 18px; }
  .tr-stage { padding: 18px 14px; }
}
html.menu-open header.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #000; }
@media (max-width: 600px) {
  .pill { font-size: 10.5px; padding: 6px 12px; line-height: 1.5; text-align: center; max-width: 100%; }
  .hero .lead { font-size: 15.5px; }
}
.links.open a { width: 100%; text-align: center; display: block; }

.hero-kicker { font-size: clamp(16px, 1.5vw, 19px); color: var(--text); max-width: 700px; margin: -6px auto 0; line-height: 1.55; font-weight: 500; letter-spacing: -0.005em; }
.hero-scope { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.hero-scope span { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,0.02); }
.pay-controls { margin-top: 22px; }
.pay-ev { color: var(--text) !important; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; font-size: 13.5px; }
@media (max-width: 600px) { .hero-kicker { font-size: 15.5px; } .hero-scope span { font-size: 10.5px; padding: 4px 10px; } }
@media (max-width: 600px) { .hero h1 { font-size: clamp(25px, 7.2vw, 32px); letter-spacing: -0.025em; } }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.018em; line-height: 1.18; }
h1 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -0.022em; }
.hero h1 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 620; }
h2 { font-size: clamp(21px, 2.1vw, 28px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
h4 { font-size: 15px; letter-spacing: -0.005em; }
.lead { font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.62; }
.hero { padding: 34px 0 18px; }
.hero-grid { gap: 18px; }
.hero-kicker { font-size: clamp(15px, 1.25vw, 17px); margin-top: -4px; }
.hero-dev { margin-top: 16px; }
.page-hero { padding: 36px 0 8px; }
.crumbs { margin-bottom: 12px; }
section { padding: 52px 0; }
section.tight { padding: 34px 0; }
.section-head { gap: 10px; margin-bottom: 26px; }
.card { padding: 20px 20px 18px; }
.card h3, .card h4 { margin-bottom: 8px; }
.card .tag { margin-bottom: 10px; }
.card .icon { width: 32px; height: 32px; margin-bottom: 12px; border-radius: 8px; }
.card .icon svg { width: 17px; height: 17px; }
.card p { font-size: 14px; }
.grid { gap: 14px; }
.law { padding: 18px 18px 16px; gap: 10px; }
.law-n { font-size: 14.5px; }
.law-r { font-size: 13.5px; }
.callout { padding: 20px 22px; }
.def-band { padding: 26px 26px 22px; }
.cta-band { padding: 32px 28px; gap: 14px; }
.cta-band h2 { font-size: clamp(21px, 2.1vw, 28px); }
.split { gap: 36px; }
footer.foot { padding: 44px 0 32px; margin-top: 24px; }
.faq-q { font-size: 16.5px; }
.tr-panel h4 { font-size: 16px; }
@media (max-width: 600px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 29px); }
  h2 { font-size: 21px; }
  .hero { padding: 24px 0 14px; }
  .page-hero { padding: 26px 0 4px; }
  section { padding: 40px 0; }
  section.tight { padding: 28px 0; }
  .section-head { margin-bottom: 20px; }
  .law, .dev-tile, .card { padding: 18px 16px; }
  .def-band, .cta-band { padding: 22px 16px; }
}
.grid.g3, .grid.g2, .grid.g4 { max-width: 960px; }
h1 { font-size: clamp(26px, 2.7vw, 34px); }
.hero h1 { font-size: clamp(28px, 3.1vw, 40px); }
@media (max-width: 600px) { h1 { font-size: 24px; } .hero h1 { font-size: clamp(24px, 6.6vw, 29px); } }
.diagram svg.pay.portrait { display: none; min-width: 0; }
@media (max-width: 700px) {
  .diagram svg.pay.landscape { display: none; }
  .diagram svg.pay.portrait { display: block; min-width: 0; max-width: 380px; margin: 0 auto; }
}
.priv-grid { max-width: 860px; }
.priv-card .tag { display: flex; align-items: center; gap: 8px; color: var(--text); }
.priv-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.priv-card.pub { border-color: rgba(61, 220, 151, 0.35); }
.priv-card.pub .priv-dot { background: var(--ok); }
.priv-card.no { border-color: rgba(255, 92, 92, 0.35); }
.priv-card.no .priv-dot { background: var(--bad); }
.priv-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.priv-note { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.laptop { max-width: 880px; margin: 0 auto; padding: 0 30px; }
.laptop .trail { max-width: none; border: 9px solid #181818; border-bottom-width: 12px; border-radius: 16px 16px 4px 4px; box-shadow: 0 0 0 1px #2c2c2c, 0 26px 60px rgba(0, 0, 0, 0.55); }
.laptop .tr-bar { padding: 8px 12px; font-size: 11px; }
.laptop .tr-body { height: 390px; min-height: 0; grid-template-columns: 200px minmax(0, 1fr); }
.laptop .tr-nav { position: relative; overflow-y: auto; padding: 8px; gap: 2px; scrollbar-width: thin; }
.laptop .tr-step { padding: 6px 9px; gap: 9px; font-size: 12.5px; border-radius: 8px; }
.laptop .tr-phase { padding: 8px 9px 2px; font-size: 9.5px; }
.laptop .tr-stage { overflow-y: auto; padding: 16px 18px; scrollbar-width: thin; }
.laptop .tr-panel h4 { font-size: 15px; margin-bottom: 6px; }
.laptop .tr-d { font-size: 13px; margin-bottom: 12px; }
.laptop .tr-pre { font-size: 11.5px; padding: 10px 12px; }
.laptop .tr-kv { grid-template-columns: 130px minmax(0, 1fr); padding: 6px 0; font-size: 12px; }
.laptop .tr-kv .v { font-size: 11.5px; }
.laptop-base { position: relative; height: 13px; margin: 0 -30px; background: linear-gradient(180deg, #2e2e2e, #151515); border-radius: 2px 2px 14px 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 96px; height: 5px; transform: translateX(-50%); background: #0d0d0d; border-radius: 0 0 6px 6px; }
@media (max-width: 900px) {
  .laptop { padding: 0 10px; }
  .laptop .trail { border-width: 6px 6px 9px; }
  .laptop .tr-body { height: 430px; grid-template-columns: 180px minmax(0, 1fr); }
  .laptop-base { margin: 0 -10px; height: 10px; }
}
@media (max-width: 700px) {
  .laptop .tr-body { height: 500px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .laptop .tr-nav { overflow: visible; padding: 10px; gap: 6px; }
  .laptop .tr-step { padding: 0 9px; gap: 0; font-size: 12px; border-radius: 8px; }
}
.hero { padding-top: 22px; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.hero-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
@media (max-width: 600px) { .hero { padding-top: 18px; } .hero-live { font-size: 12px; text-align: center; } }
@media (max-width: 700px) { .laptop .tr-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .laptop .tr-kv .v { word-break: normal; overflow-wrap: anywhere; } }
.metrics { max-width: 860px; margin: 0 auto; }
.metric { padding: 18px 14px; text-align: center; }
.metric .num { font-size: clamp(20px, 2.1vw, 27px); }
.metric .lbl { font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .metric { padding: 16px 10px; } .metric .num { font-size: 21px; } .metric .lbl { font-size: 12px; white-space: normal; } }
svg.dg-portrait { display: none; min-width: 0; }
@media (max-width: 700px) {
  svg.dg-landscape { display: none !important; }
  svg.dg-portrait { display: block; min-width: 0 !important; width: 100%; max-width: 420px; margin: 0 auto; }
}

:where(.grid, .split, .faq, .foot-grid, .dev-hub, .laws, .metrics, .tr-body, .player-caption, .def-points, .steps, .kv, .law-q, .hero-grid, .section-head, .cta-band, .callout, .card) > *, :where(.faq-a) { min-width: 0; }
:where(.hero-grid, .section-head, .cta-band, .hero-actions, .hero-dev, .hero-scope) > * { max-width: 100%; }
.faq-item, .faq-a { overflow-wrap: break-word; }
.btn { max-width: 100%; }
.pp-algo li { overflow-wrap: anywhere; }
.pp-eq > .formula, .pp-eq > :first-child { min-width: 0; }
.tr-stage, .tr-panel, .tr-file, .tr-term, .tr-explorer { min-width: 0; max-width: 100%; }
.tr-ex-h .mono { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; justify-content: center; }
}

@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; }
  table.spec, table.spec tbody, table.spec tr, table.spec td { display: block; width: 100%; }
  table.spec thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  table.spec tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.spec tbody tr:last-child { border-bottom: 0; }
  table.spec td { padding: 0; border: 0; overflow-wrap: anywhere; }
  table.spec td + td { margin-top: 8px; }
  table.spec td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
  table.spec td:first-child { font-size: 15px; }
  table.spec td:first-child[data-label]::before { font-weight: 500; }
  table.spec tr:hover td { background: none; }
}

@media (max-width: 1180px), (hover: none) {
  header.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.92); }
}
@media (max-width: 700px) {
  .packet, .cmp .pk.bad, .cmp .pk.ok { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .progress span i, .tr-progress i { will-change: auto; }
}
@media (min-width: 701px) {
  .diagram svg { min-width: 0; }
}
@media (min-width: 1181px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split > * { min-width: auto; }
  .split .code { white-space: pre; overflow-wrap: normal; }
}
.foot-col > summary { list-style: none; cursor: default; }
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col > summary h5 { pointer-events: none; }
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-grid > div:first-child { text-align: center; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .foot-grid > div:first-child .brand { justify-content: center; }
  .foot-grid > div:first-child p { margin-left: auto; margin-right: auto; font-size: 13px; }
  .foot-col { border-bottom: 1px solid var(--line); }
  .foot-col > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; }
  .foot-col > summary h5 { margin: 0; font-size: 11.5px; }
  .foot-col > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; transition: transform .2s ease; }
  .foot-col[open] > summary::after { transform: rotate(-135deg); }
  .foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 0 0 12px; }
  .foot-links a, .foot-links .foot-link { display: flex; align-items: center; min-height: 40px; padding: 0; font-size: 14px; line-height: 1.3; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 18px; padding-top: 14px; font-size: 12px; border-top: 0; }
}
.foot .brand { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; }
