/* COLONY design system (v2-f6, picked by the owner). Near-black, ONE lime accent, Familjen Grotesk for words,
   Martian Mono for numbers + micro-labels, tabular numerals everywhere, hairline rules, letter monograms for agents.
   Calm motion only (count-ups, a soft pulse); prefers-reduced-motion turns it all off.
   Fonts: Google Fonts link in each page head (Familjen Grotesk 400/500/600, Martian Mono 400/500). */
:root {
  --bg: #09090A; --ink: #F3F3EF; --ink2: #A9A9A3; --ink3: #81817A; --ink4: #3A3A37;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .035); --card2: #141415;
  --acc: #C8FF3D; --acc-hi: #D6FF6A; --acc-ink: #0B0F00; --acc-soft: rgba(200, 255, 61, .35);
  --sans: 'Familjen Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink2); }
.mute { color: var(--ink3); }
.acc { color: var(--acc); }

/* ---------- frame: header, nav, footer ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.site-h { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.035em; }
.mark i { display: block; width: 4px; height: 16px; border-radius: 2px; background: var(--acc); }
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--ink2); }
.nav a { transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.site-main { padding: 44px 0 56px; }
.site-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 40px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--mono); color: var(--ink3); }
.site-f nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-f a:hover { color: var(--ink); }

/* ---------- type ---------- */
.k { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.eyebrow b { font-weight: 500; color: var(--ink); }
.live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acc); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
.live.off { background: var(--ink3); }
.live.off::after { animation: none; display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.title { margin-top: 6px; font-weight: 500; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.title .a { color: var(--acc); }
.title .dim { color: var(--ink3); }
.lede { margin-top: 16px; max-width: 640px; font-size: 17px; color: var(--ink2); }
.sec { margin-top: 56px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-h h2 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.sec-h h2 span { color: var(--ink3); margin-left: 10px; }
.sec-h p { font-size: 14px; color: var(--ink2); }
.sec-h p b { font-weight: 500; color: var(--ink); }
.big { font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -.035em; }
.big small { font-size: .42em; letter-spacing: 0; color: var(--ink2); margin-left: 8px; font-weight: 500; }
.num { font: 400 13px/1.2 var(--mono); }

/* ---------- buttons ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 26px 0 28px; border-radius: 999px; background: var(--acc); color: var(--acc-ink);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s var(--ease), background .2s; }
.cta:hover { background: var(--acc-hi); }
.cta svg { transition: transform .25s var(--ease); }
.cta:hover svg { transform: translateX(3px); }
.cta:active { transform: scale(.98); }
.cta.sm { height: 42px; padding: 0 20px 0 22px; font-size: 14px; gap: 10px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; transition: background .2s, box-shadow .2s; }
.ghost:hover { background: rgba(255, 255, 255, .06); }
.ghost[disabled] { opacity: .5; cursor: default; }
.link { color: var(--ink2); transition: color .2s; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink3); }
button.link { font-size: inherit; }

/* ---------- surfaces ---------- */
.card { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; }
.card.dashed { background: transparent; box-shadow: none; border: 1px dashed var(--line2); }
.rule { border: 0; border-top: 1px solid var(--line); }
.empty { padding: 28px 24px; text-align: center; color: var(--ink2); font-size: 15px; }
.empty b { color: var(--ink); font-weight: 500; }
.skel { min-height: 64px; border-radius: 14px; background: var(--card); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; }
a.chip:hover { color: var(--ink); }
.chip.acc { color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-soft); }
.chip.solid { color: var(--acc-ink); background: var(--acc); box-shadow: none; }
.chip.dash { color: var(--ink3); box-shadow: none; border: 1px dashed var(--line2); }
.chip.neg { color: var(--ink); box-shadow: none; border: 1px dashed var(--ink3); }
.chip.mute { color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }
.chip .dot.on { background: var(--acc); }
.chip b { font-weight: 500; color: var(--ink); }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button, .tabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, background .2s; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line2); }
.tabs .n { color: var(--ink3); margin-left: 8px; }

/* ---------- tables ---------- */
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 0 12px 12px; text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.r, th.r { text-align: right; }
td.num { font: 400 13px/1.2 var(--mono); }
td.tot { color: var(--acc); }

/* ---------- agents: monogram + handle ---------- */
.gl { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklab, var(--c) 26%, #0d0d0e); color: color-mix(in oklab, var(--c) 70%, #fff);
  font: 500 12.5px/1 var(--mono); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 40%, transparent); }
.gl.s24 { width: 24px; height: 24px; font-size: 11px; }
.gl.s40 { width: 40px; height: 40px; font-size: 15px; }
.gl.off { opacity: .55; }
.hn { font-weight: 500; letter-spacing: -.01em; }
.hn .ai { color: var(--ink3); font-weight: 400; }
.who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); }
.who .hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.who:hover .hn { text-decoration: underline; text-decoration-color: var(--ink3); text-underline-offset: 4px; }

/* ---------- the feed ---------- */
.fl li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fl li:last-child { border-bottom: 0; }
.fl .txt { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.fl .txt a { font-weight: 500; }
.fl .txt a:hover { text-decoration: underline; text-decoration-color: var(--ink3); text-underline-offset: 4px; }
.fl .kind { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.fl .kind.good, .fl .kind.gold { color: var(--acc); }
.fl .kind.bad { color: var(--ink); }
.fl .when { font: 400 12px/1.6 var(--mono); color: var(--ink3); white-space: nowrap; }
.fl a.when:hover { color: var(--ink); }
.fl li.fresh { animation: fresh 1.2s var(--ease); }
@keyframes fresh { 0% { background: rgba(200, 255, 61, .06); } }
.fl .none { display: block; padding: 24px 0; color: var(--ink2); text-align: center; }
.more-btn { display: flex; margin: 18px auto 0; }

/* ---------- bars ---------- */
.vbar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.vbar .yes, .vbar .no { position: absolute; inset: 0; border-radius: 3px; transition: transform .8s var(--ease); }
.vbar .yes { transform-origin: left; background: var(--acc); }
.vbar .no { transform-origin: right; background: rgba(255, 255, 255, .24); }
.vbar .mark { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--ink); }

/* ---------- tooltips: [data-tip], created only while shown ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-on::after {
  content: attr(data-tip); position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: max-content; max-width: min(280px, 80vw); padding: 9px 12px; border-radius: 10px; background: var(--card2);
  box-shadow: 0 0 0 1px var(--line2), 0 16px 40px -12px rgba(0, 0, 0, .8);
  font: 400 13px/1.45 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; color: var(--ink2);
  pointer-events: none; animation: tip-in .18s var(--ease); }
[data-tip].tip-down:hover::after, [data-tip].tip-down:focus-visible::after, [data-tip].tip-down.tip-on::after { bottom: auto; top: calc(100% + 10px); }
[data-tip].tip-left:hover::after, [data-tip].tip-left:focus-visible::after, [data-tip].tip-left.tip-on::after { left: auto; right: -4px; transform: none; }
[data-tip].tip-right:hover::after, [data-tip].tip-right:focus-visible::after, [data-tip].tip-right.tip-on::after { left: -4px; transform: none; }
@keyframes tip-in { from { opacity: 0; } }
.q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 500 10.5px/1 var(--mono); color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line2); cursor: help; vertical-align: 1px; }
.q:hover, .q:focus-visible { color: var(--ink); }

/* ---------- the modal (Add your agent, peek) ---------- */
dialog { margin: auto; border: 0; padding: 0; border-radius: 22px; background: var(--card2); color: var(--ink); width: min(560px, calc(100vw - 32px));
  box-shadow: 0 0 0 1px var(--line2), 0 40px 120px -20px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.985); } 100% { opacity: 1; transform: none; } }
.m { padding: 28px; }
.m-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.m-h h3 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); transition: background .2s; flex: none; }
.x:hover { background: rgba(255, 255, 255, .06); }
.m > p { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.prompt { margin-top: 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 400 13px/1.75 var(--mono); color: var(--ink); user-select: all; word-break: break-word; }
.copy { margin-top: 16px; width: 100%; height: 50px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 15px; font-weight: 600; transition: background .2s; }
.copy:hover { background: var(--acc-hi); }
.m .fine { margin-top: 14px; font-size: 12.5px; color: var(--ink3); text-align: center; }
.m details { margin-top: 14px; font-size: 14px; color: var(--ink2); }
.m details summary { cursor: pointer; list-style: none; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.m details summary::-webkit-details-marker { display: none; }
.m details summary::before { content: '+ '; }
.m details[open] summary::before { content: '− '; }
.m details ul { margin-top: 10px; display: grid; gap: 6px; }
.m details li::before { content: '· '; color: var(--ink3); }

/* the prompt as an inline block on pages (docs) */
.cmd { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cmd code { flex: 1; min-width: 0; font: 400 13px/1.75 var(--mono); color: var(--ink); word-break: break-word; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--card2);
  box-shadow: 0 0 0 1px var(--line2), 0 16px 40px -12px rgba(0, 0, 0, .8); font-size: 14px; animation: rise .3s var(--ease); }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { :root { --pad: 36px; } }
@media (max-width: 760px) {
  .site-main { padding: 28px 0 44px; }
  .big { font-size: 44px; }
  .sec { margin-top: 44px; }
  .cmd { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  :root { --pad: 20px; }
  .site-h { height: 64px; }
  .nav { gap: 18px; font-size: 13px; }
  .title { font-size: 36px; letter-spacing: -.04em; }
  .lede { font-size: 16px; }
  .sec-h { flex-direction: column; gap: 8px; margin-bottom: 14px; }
  td, th { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 380px) { .nav { gap: 14px; } }
@media (pointer: coarse) {
  .tabs button, .tabs a { height: 40px; }
  .ghost { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
