:root {
  --bg: #02060a;
  --bg-2: #061018;
  --panel: rgba(8, 22, 30, 0.72);
  --line: rgba(34, 229, 255, 0.16);
  --text: #d8f6ff;
  --muted: #7fa6b4;
  --cyan: #22e5ff;
  --green: #19e6a0;
  --blue: #3d6bff;
  --violet: #7a5cff;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
body::before { /* dot-matrix texture like the logo */
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(34, 229, 255, 0.13) 1px, transparent 1.4px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.55; }

a { color: var(--cyan); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--green); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(2, 6, 10, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.32em; font-size: 0.95rem; }
.brand img { border-radius: 8px; box-shadow: 0 0 18px rgba(34, 229, 255, 0.45); }
.brand b { color: var(--cyan); font-weight: 700; }

/* top menu: same groups and style as the footer */
.nav nav { display: flex; align-items: center; gap: clamp(8px, 2.2vw, 30px); }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 6px; padding: 10px 2px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font: 600 0.74rem var(--mono); letter-spacing: 0.22em; }
.dd-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.7; transition: transform 0.2s; }
.dd:hover .dd-btn, .dd-btn[aria-expanded="true"], .dd:focus-within .dd-btn { color: var(--text); }
.dd.active .dd-btn { color: var(--cyan); border-bottom-color: var(--cyan); text-shadow: 0 0 12px rgba(34, 229, 255, 0.6); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: -16px; min-width: 210px; display: none; flex-direction: column; padding: 8px; background: rgba(4, 12, 18, 0.97); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(34, 229, 255, 0.08); }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.dd-menu a { padding: 9px 10px; border-radius: 4px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.dd-menu a:hover, .dd-menu a:focus-visible { color: var(--cyan); background: rgba(34, 229, 255, 0.07); }
.dd-menu a[aria-current="page"] { color: var(--cyan); }
@media (hover: hover) and (min-width: 961px) { .dd:hover .dd-menu { display: flex; } .dd:hover .dd-btn::after { transform: translateY(1px) rotate(225deg); } }
.dd.open .dd-menu { display: flex; }
.dd.open .dd-btn::after { transform: translateY(1px) rotate(225deg); }
.nav-x { margin-left: clamp(4px, 1vw, 12px); padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: 600 0.74rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.nav-x:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-x[hidden] { display: none; }
@media (max-width: 960px) {
  .nav .menu-toggle { display: flex; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; background: #02060a; box-shadow: 0 24px 40px rgba(0, 0, 0, 0.7); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 5vw, 64px) 20px; }
  .nav nav.open { display: flex; }
  .dd { border-bottom: 1px solid var(--line); }
  .dd-btn { width: 100%; justify-content: space-between; padding: 16px 0; border-bottom: 0; }
  .dd.active .dd-btn { border-bottom: 0; }
  .dd-menu { position: static; min-width: 0; padding: 0 0 12px; background: none; border: 0; box-shadow: none; }
  .dd-menu::before { display: none; }
  .nav-x { margin: 16px 0 0; text-align: center; }
}
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--cyan); transition: 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.page-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 8px; }
.page-title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 14px var(--cyan); }
.menu-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.link-card { color: var(--text); display: block; }
.link-card .more { font: 600 0.85rem var(--mono); color: var(--cyan); }
main { min-height: calc(100vh - 170px); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 64px) 40px;
}
.kicker { font: 600 0.78rem var(--mono); letter-spacing: 0.18em; color: var(--green); display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin: 0 0 20px; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, var(--green), var(--cyan) 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(34, 229, 255, 0.25); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.lead strong { color: var(--text); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.btn { padding: 12px 22px; border-radius: 10px; font-weight: 600; transition: 0.2s; }
.btn.primary { background: linear-gradient(90deg, var(--green), var(--cyan)); color: #00161c; box-shadow: 0 0 24px rgba(34, 229, 255, 0.4); }
.btn.primary:hover { box-shadow: 0 0 40px rgba(34, 229, 255, 0.7); transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.term {
  font: 0.85rem/1.7 var(--mono); margin: 0; padding: 16px 18px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); overflow-x: auto;
}
.term .p { color: var(--cyan); } .term .m { color: var(--green); }
.cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }

.hero-copy, .hero-art { min-width: 0; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  width: 100%; max-width: 520px; height: auto; position: relative;
  mask-image: radial-gradient(circle at 50% 45%, #000 58%, transparent 72%);
  animation: float 6s ease-in-out infinite;
}
.halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(34, 229, 255, 0.28), rgba(61, 107, 255, 0.12) 45%, transparent 70%); filter: blur(20px); animation: pulse 4s infinite; }
.scanline { position: absolute; left: 5%; right: 5%; top: 68%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent); box-shadow: 0 0 22px 4px rgba(34, 229, 255, 0.6); animation: scan 5s ease-in-out infinite; }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 72px clamp(16px, 5vw, 64px); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 8px; display: flex; align-items: center; gap: 14px; }
.tag { font: 600 0.8rem var(--mono); color: var(--bg); background: var(--cyan); padding: 2px 8px; border-radius: 6px; box-shadow: 0 0 14px rgba(34, 229, 255, 0.5); }
.sub { color: var(--muted); margin: 0 0 32px; }
.sub.center { text-align: center; margin-top: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: rgba(34, 229, 255, 0.55); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(34, 229, 255, 0.12); }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-size: 1.3rem; color: var(--cyan); background: rgba(34, 229, 255, 0.08); border: 1px solid var(--line); }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font: 0.75rem var(--mono); color: var(--green); background: rgba(25, 230, 160, 0.08); border: 1px solid rgba(25, 230, 160, 0.2); padding: 3px 8px; border-radius: 6px; }
.extras { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 24px; color: var(--muted); }
.extras div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.label { font: 600 0.72rem var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }
.extras code { background: rgba(34, 229, 255, 0.07); padding: 3px 8px; border-radius: 6px; color: var(--cyan); }

/* install */
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.step > div { min-width: 0; }
.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--mono); color: var(--cyan); border: 1px solid var(--cyan); box-shadow: 0 0 16px rgba(34, 229, 255, 0.35) inset; }
.step h3 { margin: 6px 0 12px; }
.code { position: relative; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); border-radius: 12px; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; }
.code code { color: var(--text); font-size: 0.85rem; line-height: 1.65; }
.copy { position: absolute; top: 10px; right: 10px; font: 0.72rem var(--mono); color: var(--cyan); background: rgba(34, 229, 255, 0.08); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--cyan); }
.hint { color: var(--muted); margin: 0 0 10px; font-size: 0.92rem; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { font: 600 0.85rem var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.tab.active { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.panel { display: none; } .panel.active { display: block; }
.env { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.env td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.env td:first-child { white-space: nowrap; }

/* flow */
.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.node { padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 600; white-space: nowrap; }
.node.glow { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 30px rgba(34, 229, 255, 0.35); }
.wire { position: relative; width: 56px; height: 2px; background: linear-gradient(90deg, var(--green), var(--cyan)); overflow: visible; }
.wire::after { content: ""; position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); animation: travel 1.8s linear infinite; }
.wire.label-wire { width: 170px; }
.wire span { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 0.68rem var(--mono); color: var(--muted); }

footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); text-align: center; }

@keyframes pulse { 50% { opacity: 0.55; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes scan { 0%, 100% { opacity: 0.9; transform: scaleX(1); } 50% { opacity: 0.4; transform: scaleX(0.7); } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 6px); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; }
  .flow { flex-direction: column; }
  .wire, .wire.label-wire { width: 2px; height: 36px; background: linear-gradient(var(--green), var(--cyan)); }
  .wire::after { left: -2px; animation: travel-v 1.8s linear infinite; }
  .wire span { top: 50%; left: 14px; transform: translateY(-50%); }
}
@media (max-width: 520px) {
  .step { grid-template-columns: 1fr; }
  .env td:first-child { white-space: normal; }
}
@keyframes travel-v { from { top: 0; } to { top: calc(100% - 6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* playground */
.endpoint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; margin-bottom: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ep-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #5b6b73; flex: none; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.6s infinite; }
.status-dot.bad { background: #ff5c7a; box-shadow: 0 0 12px #ff5c7a; }
.ep-url { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ep-url code { color: var(--cyan); font-size: 0.95rem; overflow-wrap: anywhere; }
.copy.inline { position: static; flex: none; }
.h2-small { font-size: 1.3rem; margin: 8px 0 14px; }
.note { color: var(--muted); font-size: 0.9rem; margin: 16px 0 40px; padding-left: 12px; border-left: 2px solid var(--cyan); }
.muted { color: var(--muted); }

.pg { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.pg-list { display: flex; flex-direction: column; gap: 6px; }
.pg-tool { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: 0.82rem var(--sans); }
.pg-tool code { font-size: 0.85rem; }
.pg-tool:hover { border-color: rgba(34, 229, 255, 0.5); }
.pg-tool.active { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 229, 255, 0.25); color: var(--text); }
.pg-main { display: grid; gap: 18px; min-width: 0; }
.pg-form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; }
.pg-head h3 { margin: 0 0 4px; }
.pg-head p { margin: 0; font-size: 0.92rem; }
#toolFields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label em { font-style: normal; font-size: 0.72rem; color: var(--cyan); margin-left: 6px; }
.field small { color: var(--muted); font-size: 0.8rem; }
.field input, .field select { width: 100%; font: 0.92rem var(--mono); color: var(--text); background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 229, 255, 0.15); }
.field.check { grid-template-columns: auto 1fr; align-items: center; }
.field.check .field-label { order: 2; }
.field.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.field.check small { grid-column: 1 / -1; }
.pg-form .btn { justify-self: start; border: 0; cursor: pointer; font: 600 0.95rem var(--sans); }
.pg-form .btn:disabled { opacity: 0.5; cursor: wait; }
.pg-out { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pg-out-head { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 600 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
#output { margin: 0; padding: 16px; min-height: 140px; max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.85rem/1.6 var(--mono); color: var(--text); }
#output.muted { color: var(--muted); }
#output.err { color: #ff8da1; }
.avail { display: inline-block; margin-left: 8px; font: 600 0.65rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; vertical-align: middle; }
.avail.cloud { color: var(--bg); background: var(--cyan); }
.avail.local { color: var(--muted); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .pg { grid-template-columns: 1fr; }
  .pg-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .pg-tool { flex: none; }
}

/* agent chat */
.chat { display: flex; flex-direction: column; height: min(70vh, 720px); min-height: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.msg.user { justify-content: flex-end; }
.msg .avatar { border-radius: 8px; flex: none; box-shadow: 0 0 14px rgba(34, 229, 255, 0.35); }
.bubble { min-width: 0; max-width: min(760px, 100%); padding: 12px 16px; border-radius: 14px; font-size: 0.94rem; line-height: 1.55; overflow-wrap: anywhere; }
.msg.bot .bubble { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble { background: linear-gradient(90deg, rgba(25, 230, 160, 0.16), rgba(34, 229, 255, 0.16)); border: 1px solid rgba(34, 229, 255, 0.35); border-top-right-radius: 4px; font-family: var(--mono); font-size: 0.85rem; }
.bubble p { margin: 4px 0; }
.bubble h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.bubble h4 { margin: 14px 0 4px; font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.bubble ul { margin: 4px 0; padding-left: 18px; }
.bubble li { margin: 2px 0; }
.bubble hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.bubble a { text-decoration: underline; text-underline-offset: 2px; }
.bubble code.ca { font-size: 0.8rem; background: rgba(34, 229, 255, 0.08); padding: 1px 6px; border-radius: 5px; color: var(--cyan); }
.bubble .err { color: #ff8da1; }
.small { font-size: 0.8rem; }
.token-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.token-head img { border-radius: 50%; flex: none; }
.token-head > div { min-width: 0; flex: 1; }
.verdict { flex: none; font: 700 0.68rem var(--mono); letter-spacing: 0.08em; padding: 4px 8px; border-radius: 6px; }
.verdict.low { color: #00170f; background: var(--green); }
.verdict.medium { color: #1d1500; background: #ffc94d; }
.verdict.high { color: #fff; background: #ff4d6d; box-shadow: 0 0 14px rgba(255, 77, 109, 0.5); }
.verdict.unknown { color: var(--muted); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: 0.8rem var(--sans); color: var(--cyan); background: rgba(34, 229, 255, 0.08); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--cyan); }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-top: 1px solid var(--line); background: rgba(2, 6, 10, 0.6); }
.chat-input textarea { flex: 1; min-width: 0; resize: none; height: 46px; min-height: 46px; max-height: 160px; font: 0.92rem var(--mono); color: var(--text); background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.chat-input textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 229, 255, 0.15); }
.chat-input .btn { border: 0; cursor: pointer; font: 600 0.95rem var(--sans); height: 46px; }
.chat-input .btn:disabled { opacity: 0.5; cursor: wait; }
.typing { display: inline-flex; gap: 4px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@media (max-width: 520px) {
  .chat { height: 72vh; }
  .chat-log { padding: 14px; }
  .msg .avatar { display: none; }
}
.tag-ely { display: inline-block; font: 700 0.68rem var(--mono); letter-spacing: 0.12em; color: var(--bg); background: linear-gradient(90deg, var(--green), var(--cyan)); padding: 3px 8px; border-radius: 6px; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 14px rgba(34, 229, 255, 0.4); }
.chip.ely { color: var(--bg); background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.chip.ely:hover { box-shadow: 0 0 14px rgba(34, 229, 255, 0.5); }

/* rich footer (home) */
.site-footer { display: block; padding: 0; text-align: left; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); background: rgba(2, 6, 10, 0.75); }
.sf-inner { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 64px) 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 48px; }
.sf-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sf-logo { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.32em; font-size: 0.95rem; }
.sf-logo img { border-radius: 8px; box-shadow: 0 0 16px rgba(34, 229, 255, 0.45); }
.sf-tag { margin: 6px 0 4px; color: var(--text); opacity: 0.85; }
.sf-contact { font: 0.82rem var(--mono); color: var(--text); }
.sf-contact:hover { color: var(--cyan); }
.sf-contact[hidden] { display: none; }
.sf-label { margin-top: 14px; font: 600 0.7rem var(--mono); letter-spacing: 0.2em; color: var(--muted); }
.sf-box { display: flex; align-items: center; gap: 14px; max-width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: rgba(0, 0, 0, 0.5); }
.sf-box code { color: var(--text); font-size: 0.82rem; overflow-wrap: anywhere; min-width: 0; }
.sf-copy { flex: none; font: 600 0.7rem var(--mono); letter-spacing: 0.15em; color: var(--cyan); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.sf-copy:hover { text-shadow: 0 0 10px var(--cyan); }
#sfTokenBlock { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 100%; }
#sfTokenBlock[hidden] { display: none; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; align-content: start; }
.sf-cols h4 { margin: 0 0 14px; font: 600 0.72rem var(--mono); letter-spacing: 0.22em; color: var(--text); }
.sf-cols div { display: flex; flex-direction: column; gap: 10px; }
.sf-cols a { color: var(--muted); }
.sf-cols a:hover { color: var(--cyan); }
.sf-bottom { max-width: 1200px; margin: 0 auto; padding: 22px clamp(16px, 5vw, 64px) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); font: 0.75rem var(--mono); }
@media (max-width: 860px) {
  .sf-inner { grid-template-columns: 1fr; gap: 40px; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
