/* GUIBridge showcase — dark glass tech language (Vercel / LangChain docs feel).
   Glow rule: soft glow lives ONLY on selected tabs, emphasized text and live indicators.
   Container borders never glow; they share one hairline + tint system. */

:root {
  --site-bg: #0a0d14;
  --site-fg: #e6e9ef;
  --site-accent: #00d992;
  --site-on-accent: #06110c;
  --site-surface: #121722;
  --site-muted: #9aa4b2;
  --site-border: rgba(148, 163, 184, 0.16);
  --site-font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --site-radius: 12px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --ink-strong: #ffffff;
  --body: #b6bdc9;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.34);
  --h-green: #00d992;
  --h-blue: #4d9fff;
  --h-violet: #a78bfa;
  --h-amber: #f0b429;
  --h-cyan: #22d3ee;
  --h-magenta: #f472b6;
  --h-red: #ff6b6b;
  --ok: var(--h-green);
  --warn: var(--h-amber);
  --err: var(--h-red);
  --info: var(--h-blue);
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --gap: calc(24px * var(--site-space, 1));
  --t: calc(200ms * var(--site-motion, 1));
  --r-btn: calc(var(--site-radius, 12px) * 0.7);
  --glass: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 55%, rgba(255, 255, 255, 0.032));
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --glass-shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--site-accent); color: var(--site-on-accent); }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; border-radius: 4px; }

* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.3) var(--site-bg); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--site-bg); }
*::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 999px; border: 2px solid var(--site-bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--h-green); }

/* ── layered background: low-contrast grid + drifting hue fields + grain ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--site-bg); }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 85%);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.blob { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; }
.blob.b1 { width: 520px; height: 520px; top: -160px; left: -100px; background: radial-gradient(circle, rgba(0, 217, 146, 0.16), transparent 65%); animation: drift1 calc(26s * var(--site-motion, 1)) ease-in-out infinite alternate; }
.blob.b2 { width: 560px; height: 560px; top: 22%; right: -180px; background: radial-gradient(circle, rgba(77, 159, 255, 0.14), transparent 65%); animation: drift2 calc(32s * var(--site-motion, 1)) ease-in-out infinite alternate; }
.blob.b3 { width: 480px; height: 480px; bottom: -180px; left: 28%; background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 65%); animation: drift1 calc(38s * var(--site-motion, 1)) ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(70px, 50px, 0); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-80px, -40px, 0); } }

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--h-blue), var(--h-green) 55%, var(--h-violet));
  box-shadow: 0 0 10px rgba(0, 217, 146, 0.4);
}

.shell { max-width: 1160px; margin: 0 auto; padding: 0 var(--gap); }

a { color: var(--h-blue); text-decoration: none; }
a:hover { color: var(--h-cyan); }

code, .mono { font-family: var(--mono); }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), box-shadow var(--t);
}
.top.scrolled { background: rgba(10, 13, 20, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.2px; color: var(--ink-strong); white-space: nowrap; }
.brand .tag { font-size: 12px; font-weight: 400; color: var(--site-muted); font-family: var(--mono); }
.nav { display: flex; gap: 2px; font-size: 13.5px; flex-wrap: wrap; }
.nav a { color: var(--body); padding: 6px 9px; border-radius: var(--r-btn); position: relative; transition: color var(--t), background var(--t); }
.nav a:hover { color: var(--ink-strong); text-decoration: none; background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--h-green); text-shadow: 0 0 12px rgba(0, 217, 146, 0.55); }
.nav a.active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--h-blue), var(--h-green));
  box-shadow: 0 0 8px rgba(0, 217, 146, 0.5);
}
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-btn); cursor: pointer; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 2px; background: var(--site-fg); border-radius: 2px;
  position: relative; transition: transform var(--t), opacity var(--t);
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ── hero ── */
.hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: calc(var(--gap) * 2); align-items: center;
  padding: calc(var(--gap) * 3.5) var(--gap) calc(var(--gap) * 3);
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--site-muted); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--h-blue), var(--h-green)); }
.hero h1 {
  font-size: clamp(28px, 3.05vw, calc(44px * var(--site-type, 1)));
  font-weight: 600; line-height: 1.28; letter-spacing: -1px;
  color: var(--ink-strong); margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--h-green); text-shadow: 0 0 22px rgba(0, 217, 146, 0.5); }
.hero .lead { font-size: calc(17px * var(--site-type, 1)); color: var(--body); max-width: 560px; margin: 0 0 28px; }
.states { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.state {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 6px 15px; font-size: 13.5px; color: var(--body);
  box-shadow: var(--glass-shadow);
}
.state b { font-weight: 600; }
.state .en { font-family: var(--mono); font-size: 11.5px; opacity: 0.75; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.state.s1 { color: var(--h-blue); }
.state.s2 { color: var(--h-amber); }
.state.s3 { color: var(--h-green); }
.neq { color: var(--site-muted); font-size: 18px; font-family: var(--mono); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-btn); padding: 11px 22px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--site-font);
  transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(120deg, var(--h-green), #17c9a8 60%, var(--h-cyan));
  color: var(--site-on-accent); box-shadow: 0 6px 22px rgba(0, 217, 146, 0.28);
}
.btn.primary:hover { box-shadow: 0 10px 30px rgba(0, 217, 146, 0.4); color: var(--site-on-accent); }
.btn.ghost { border-color: var(--line); color: var(--site-fg); background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow); }
.btn.ghost:hover { border-color: var(--line-strong); color: var(--ink-strong); }
.btn.small { padding: 7px 15px; font-size: 13px; }
.hero-meta { margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--site-muted); letter-spacing: 0.4px; }
.hero-meta b { color: var(--body); font-weight: 500; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise calc(650ms * var(--site-motion, 1)) cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: var(--d, 0s); }

/* ── demo terminal ── */
.term {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  overflow: hidden; box-shadow: var(--glass-shadow);
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; display: block; }
.dots i:nth-child(1) { background: var(--h-red); opacity: 0.85; }
.dots i:nth-child(2) { background: var(--h-amber); opacity: 0.85; }
.dots i:nth-child(3) { background: var(--h-green); opacity: 0.85; }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--body); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--h-amber);
  border: 1px solid rgba(240, 180, 41, 0.4); background: rgba(240, 180, 41, 0.08);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.term-body { padding: 18px; }
.chain { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 6px; margin-bottom: 15px; }
.node {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--site-muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--t), border-color var(--t), background var(--t), opacity var(--t), text-shadow var(--t);
}
.node::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: 0.5; transition: opacity var(--t), box-shadow var(--t); }
.node .zh { font-family: var(--site-font); font-size: 11.5px; }
.link { min-width: 0; height: 1px; background: var(--line-strong); }
.link.lit { background: linear-gradient(90deg, var(--h-blue), var(--h-green)); }
.node.on { opacity: 1; }
.node.on::before { opacity: 1; box-shadow: 0 0 8px currentColor; }
.node.n1.on { color: var(--h-blue); border-color: rgba(77, 159, 255, 0.4); background: rgba(77, 159, 255, 0.08); text-shadow: 0 0 10px rgba(77, 159, 255, 0.45); }
.node.n2.on { color: var(--h-amber); border-color: rgba(240, 180, 41, 0.4); background: rgba(240, 180, 41, 0.08); text-shadow: 0 0 10px rgba(240, 180, 41, 0.45); }
.node.n3.on { color: var(--h-green); border-color: rgba(0, 217, 146, 0.4); background: rgba(0, 217, 146, 0.08); text-shadow: 0 0 10px rgba(0, 217, 146, 0.5); }
.node.n3.blocked { color: var(--h-red); border-color: rgba(255, 107, 107, 0.45); border-style: dashed; background: rgba(255, 107, 107, 0.06); }
.node.past { opacity: 0.55; }
.log {
  font-family: var(--mono); font-size: 12px; line-height: 1.95; height: 200px; overflow-y: auto;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 10px 13px; margin: 0;
}
.log .line { display: flex; gap: 8px; align-items: baseline; animation: rise calc(300ms * var(--site-motion, 1)) ease both; }
.log .seq { color: var(--site-muted); flex: 0 0 44px; opacity: 0.8; }
.log .tag { flex: 0 0 auto; font-weight: 600; }
.log .msg { color: var(--body); min-width: 0; }
.log .t-info .tag { color: var(--h-blue); }
.log .t-warn .tag { color: var(--h-amber); }
.log .t-ok .tag { color: var(--h-green); }
.log .t-err .tag { color: var(--h-red); }
.log .t-mute .tag { color: var(--site-muted); }
.log .cursor { display: inline-block; width: 7px; height: 13px; background: var(--h-green); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { display: flex; align-items: center; gap: 14px; margin-top: 15px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--body); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 34px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); position: relative; transition: background var(--t), border-color var(--t); flex: 0 0 auto;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 999px;
  background: var(--site-muted); transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.switch input:checked + .track { background: rgba(0, 217, 146, 0.16); border-color: rgba(0, 217, 146, 0.5); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--h-green); box-shadow: 0 0 8px rgba(0, 217, 146, 0.7); }
.switch input:focus-visible + .track { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.term-status { font-family: var(--mono); font-size: 12px; color: var(--site-muted); margin-left: auto; }
.term-status.ok { color: var(--h-green); text-shadow: 0 0 12px rgba(0, 217, 146, 0.5); }
.term-status.warn { color: var(--h-amber); text-shadow: 0 0 12px rgba(240, 180, 41, 0.45); }
.term-status.err { color: var(--h-red); text-shadow: 0 0 12px rgba(255, 107, 107, 0.45); }

/* ── sections ── */
section { padding: calc(var(--gap) * 3.5) 0; border-top: 1px solid rgba(148, 163, 184, 0.09); position: relative; }
section:first-of-type { border-top: 0; }
#evidence::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--h-blue) 25%, var(--h-green) 55%, var(--h-violet) 80%, transparent);
}
h2 {
  font-size: clamp(28px, 3vw, calc(40px * var(--site-type, 1)));
  font-weight: 600; letter-spacing: -1px; color: var(--ink-strong); margin: 0 0 12px; line-height: 1.25;
}
.sub { color: var(--body); margin: 0 0 calc(var(--gap) * 1.5); max-width: 800px; font-size: 16px; }

.grid { display: grid; gap: var(--gap); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: calc(var(--gap) * 1.1); box-shadow: var(--glass-shadow);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--glass-shadow-hover); transform: translateY(-3px); }
.card h3 { margin: 0 0 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink-strong); }
.card p { margin: 0; color: var(--body); font-size: 14.5px; }
.card .k { color: var(--h-green); font-weight: 600; text-shadow: 0 0 12px rgba(0, 217, 146, 0.35); }
.card .idx { font-family: var(--mono); font-size: 11px; color: var(--site-muted); letter-spacing: 1.5px; display: block; margin-bottom: 10px; }

/* capability cards */
.cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cap-head svg { flex: 0 0 auto; color: var(--hue); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--hue) 55%, transparent)); }
.cap-head .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; color: var(--hue); text-shadow: 0 0 10px color-mix(in srgb, var(--hue) 45%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--body);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.chip::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--hue, var(--site-muted)); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px var(--hue, transparent); }

/* numbers */
.num .v { font-family: var(--mono); font-size: calc(34px * var(--site-type, 1)); font-weight: 700; color: var(--hue, var(--ink-strong)); line-height: 1.2; letter-spacing: -1px; text-shadow: 0 0 20px color-mix(in srgb, var(--hue, #fff) 35%, transparent); }
.num .v small { font-family: var(--site-font); font-size: 15px; color: var(--site-muted); font-weight: 400; letter-spacing: 0; text-shadow: none; }
.num .l { color: var(--site-muted); font-size: 13px; margin-top: 7px; line-height: 1.65; }

/* table */
.tablewrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--site-radius);
  background: var(--glass); backdrop-filter: blur(14px); box-shadow: var(--glass-shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--site-muted); font-weight: 600; font-size: 12px; letter-spacing: 1px; background: rgba(255, 255, 255, 0.04); font-family: var(--mono); white-space: nowrap; }
td { color: var(--body); }
td:first-child { color: var(--site-fg); }
td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--h-cyan); }
th:nth-child(4), td:nth-child(4) { background: rgba(0, 217, 146, 0.055); }
th:nth-child(4) { color: var(--h-green); }
td.ok { color: var(--ok); } td.warn { color: var(--warn); } td.err { color: var(--err); }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.note { font-size: 13px; color: var(--site-muted); margin-top: 16px; max-width: 920px; }
.note b { color: var(--warn); font-weight: 600; }
.h3-inline { margin: calc(var(--gap) * 1.5) 0 14px; font-size: 18px; font-weight: 600; color: var(--ink-strong); }
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--hue) 40%, transparent); color: var(--hue); background: color-mix(in srgb, var(--hue) 9%, transparent); }
.errchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.errchip { font-family: var(--mono); font-size: 11.5px; color: var(--body); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 6px; padding: 4px 10px; }
.errchip::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--h-red); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px rgba(255, 107, 107, 0.7); }

/* verify section: sticky left + pipeline right */
.verify-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: calc(var(--gap) * 1.75); align-items: start; }
.verify-left { position: sticky; top: 96px; }
.rule { margin-top: var(--gap); }
.rule h3 { font-size: 16px; }
.rule ul.clean { font-size: 14px; }
.pipe { display: grid; gap: 14px; }
.pipe-row {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: 15px 18px; box-shadow: var(--glass-shadow);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.pipe-row:hover { border-color: var(--line-strong); box-shadow: var(--glass-shadow-hover); transform: translateY(-2px); }
.pipe-row + .pipe-row::before { content: ""; position: absolute; left: 26px; top: -14px; width: 1px; height: 14px; background: var(--line-strong); }
.pipe-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 999px; margin-top: 7px; background: var(--hue); box-shadow: 0 0 10px var(--hue); }
.pipe-row .pt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.6px; color: var(--hue); text-shadow: 0 0 10px color-mix(in srgb, var(--hue) 45%, transparent); display: block; margin-bottom: 3px; }
.pipe-row p { margin: 0; color: var(--body); font-size: 13.5px; }
.pipe-row p b { color: var(--ink-strong); font-weight: 600; }

/* figures */
figure {
  margin: 0; background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: 10px; box-shadow: var(--glass-shadow);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
figure:hover { border-color: var(--line-strong); box-shadow: var(--glass-shadow-hover); transform: translateY(-3px); }
figure img { width: 100%; display: block; border: 1px solid var(--line); border-radius: calc(var(--site-radius) * 0.6); background: #000; }
figcaption { font-size: 13px; color: var(--site-muted); margin: 0; padding: 10px 6px 4px; line-height: 1.65; }
.shots { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
.shots .wide { grid-column: 1 / -1; }

/* architecture svg */
.arch {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: var(--gap); overflow-x: auto; box-shadow: var(--glass-shadow);
}
.arch svg { width: 100%; height: auto; min-width: 720px; display: block; }
.flowline { stroke-dasharray: 6 6; animation: dashmove calc(1.1s * var(--site-motion, 1)) linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -12; } }

/* lists */
ul.clean { margin: 0; padding-left: 20px; color: var(--body); font-size: 14.5px; }
ul.clean li { margin-bottom: 9px; }
ul.clean li::marker { color: var(--site-muted); }
ul.clean b { color: var(--ink-strong); font-weight: 600; }

/* steps */
ol.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.steps li {
  counter-increment: s; display: flex; gap: 15px; align-items: flex-start;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: 15px 18px; box-shadow: var(--glass-shadow);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
ol.steps li:hover { border-color: var(--line-strong); box-shadow: var(--glass-shadow-hover); transform: translateY(-2px); }
ol.steps li::before {
  content: counter(s, decimal-leading-zero); flex: 0 0 36px; height: 30px; border-radius: var(--r-btn);
  background: rgba(0, 217, 146, 0.08); border: 1px solid rgba(0, 217, 146, 0.35); color: var(--h-green);
  font-family: var(--mono); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 12.5px;
  text-shadow: 0 0 10px rgba(0, 217, 146, 0.45);
}
ol.steps .t { font-size: 14.5px; color: var(--body); min-width: 0; }
ol.steps .t code {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 8px; font-size: 12.5px; color: var(--h-cyan); word-break: break-all;
}
.copy-btn {
  font-family: var(--mono); font-size: 11px; color: var(--site-muted); background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; margin-left: 8px;
  cursor: pointer; transition: color var(--t), border-color var(--t); vertical-align: 1px; white-space: nowrap;
}
.copy-btn:hover { color: var(--h-green); border-color: rgba(0, 217, 146, 0.5); }
.copy-btn.done { color: var(--h-green); border-color: rgba(0, 217, 146, 0.5); text-shadow: 0 0 8px rgba(0, 217, 146, 0.5); }

/* discipline band */
.band {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--site-radius);
  padding: calc(var(--gap) * 1.25); box-shadow: var(--glass-shadow);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.band .b-item { display: flex; flex-direction: column; gap: 6px; }
.band .b-item .bt { font-size: 14px; font-weight: 600; color: var(--ink-strong); display: flex; align-items: center; gap: 8px; }
.band .b-item .bt::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--hue); box-shadow: 0 0 8px var(--hue); flex: 0 0 auto; }
.band .b-item .bd { font-size: 12.5px; color: var(--site-muted); line-height: 1.6; }

/* footer */
footer { border-top: 1px solid var(--line); padding: var(--gap) 0 calc(var(--gap) * 2); color: var(--site-muted); font-size: 13px; }
footer .shell { display: flex; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; align-items: center; }
footer a { font-family: var(--mono); font-size: 12.5px; }
footer .foot-brand { display: flex; align-items: center; gap: 8px; }

/* reveals */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity calc(600ms * var(--site-motion, 1)) ease var(--d, 0s), transform calc(600ms * var(--site-motion, 1)) cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: calc(var(--gap) * 1.5); padding-top: calc(var(--gap) * 2); }
  .hero .lead { max-width: 720px; }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .verify-grid { grid-template-columns: 1fr; }
  .verify-left { position: static; }
  .band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .grid.c2, .grid.c3, .shots { grid-template-columns: 1fr; }
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 2px; background: rgba(10, 13, 20, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 12px var(--gap) 16px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; font-size: 15px; }
  .nav a.active::after { display: none; }
  .brand .tag { display: none; }
  .states { flex-direction: column; align-items: flex-start; gap: 6px; }
  .neq { margin-left: 20px; font-size: 14px; line-height: 1; }
  .chain { grid-template-columns: auto; justify-items: start; gap: 4px; }
  .chain .link { width: 1px; height: 12px; margin-left: 15px; }
  .log { height: 176px; }
  .term-status { margin-left: 0; width: 100%; }
  section { padding: calc(var(--gap) * 2.25) 0; }
  .band { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}