:root {
  color-scheme: dark;
  --abyss: #131314;
  --deck: #1b1b1d;
  --edge: rgba(255, 255, 255, 0.12);
  --edge-strong: rgba(255, 255, 255, 0.26);
  --bone: #f4f4f4;
  --mist: #a4a4a9;
  --fog: #707075;
  --amber: #ffffff;
  --accent: #f2f2f2;
  --accent-hi: #ffffff;
  --alert: #8a8a8f;
  --ok: #ffffff;
  --ice: #cfcfd3;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --panel: #1f1f21;
  --panel-deep: #28282b;
  --panel-text: #f4f4f4;
  --panel-muted: #a4a4a9;
  --blurple: #e4e4e6;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--abyss); }
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 56rem; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44% 46% at 78% 28%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(40% 40% at 8% 72%, rgba(255, 255, 255, 0.05), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

main { flex: 1; outline: none; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
code { font-family: var(--mono); font-size: 0.875em; }
mark { background: #f2f2f2; color: #111; border-radius: 3px; padding: 0 0.12em; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, 74rem); margin-inline: auto; }
@media (min-width: 40rem) { .container { width: min(100% - 4rem, 74rem); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: #f2f2f2; color: #111; padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 1rem; }

.muted { color: var(--mist); }
.lede { font-size: 1.15rem; color: var(--mist); max-width: 34rem; }
.fine { font-size: 0.9rem; color: var(--mist); }
.fine code { background: rgba(255, 255, 255, 0.07); padding: 0.1rem 0.4rem; border-radius: 5px; color: var(--bone); }

/* Top bar */
.nav-wrap {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--edge);
  background: rgba(19, 19, 20, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav { width: min(100% - 2rem, 74rem); margin-inline: auto; display: flex; align-items: center; gap: 0.25rem 1.25rem; padding-block: 0.65rem; }
@media (min-width: 40rem) { .nav { width: min(100% - 4rem, 74rem); } }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.logo-img { width: 2rem; height: 2rem; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge-strong); background: #fff; }
.nav-links { position: relative; display: flex; align-items: center; margin-left: auto; }
.nav-links a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border-radius: 8px; color: var(--mist);
  text-decoration: none; font-weight: 400; font-size: 0.85rem; transition: color 0.15s ease;
}
.nav-links a svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: #fff; }
.nav-ind {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 8px; opacity: 0;
  background: rgba(255, 255, 255, 0.09); pointer-events: none;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s ease;
}
.nav-status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; color: var(--mist); font-size: 0.85rem; }
.btn-short { display: none; }
.nav .btn-primary { padding: 0.45rem 1rem; font-size: 0.82rem; border-radius: 8px; box-shadow: none; }
@media (max-width: 34rem) {
  .nav { gap: 0.1rem 0.3rem; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
  .nav-links a { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
  .nav-links a svg { display: none; }
  .nav-status { font-size: 0; padding: 0.5rem 0.35rem; }
  .nav-links a[href="/terms"] { display: none; }
}
@media (max-width: 24rem) { .nav .wm-text { display: none; } }

.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fog); flex: none; }
.status-dot[data-state="online"] { background: var(--ok); }
.status-dot[data-state="offline"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--alert); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.35rem; border-radius: 999px; border: 1px solid var(--edge-strong); color: var(--bone); background: transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: linear-gradient(180deg, #ffffff, #dcdcdf); color: #111; border-color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.5); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.92rem; white-space: nowrap; }
.btn[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { display: grid; justify-items: start; gap: 3.5rem; padding-block: 3.5rem 2.5rem; align-items: center; }
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; padding-block: 5rem 3rem; } }
.hero-copy { display: grid; justify-items: start; gap: 1.4rem; }
.hero h1 { display: block; font-size: clamp(2.8rem, 7.4vw, 5.8rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; max-width: none; text-align: left; }
.h1-main { display: block; }
.h1-script { display: block; font-style: italic; font-weight: 300; letter-spacing: -0.035em; color: #d0d0d4; }
.hero .lede { max-width: 30rem; font-size: 1rem; font-weight: 300; }
.hero .actions { margin-top: 0.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; color: var(--mist); font-size: 0.92rem; font-weight: 300; }
.hero-stats b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stats .sep { opacity: 0.45; }
.live { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn { font-weight: 500; font-size: 0.92rem; padding: 0.72rem 1.25rem; border-radius: 10px; }
.btn-quiet { background: transparent; border-color: var(--edge-strong); color: #e4e4e6; }
.btn-quiet:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portrait { position: relative; isolation: isolate; justify-self: center; width: min(78%, 24rem); margin-block: 0.5rem; }
@media (min-width: 62rem) { .portrait { width: min(100%, 25rem); justify-self: end; margin-right: 1.5rem; } }
.portrait::before, .portrait::after { content: ""; position: absolute; inset: 0; border-radius: 30px; z-index: 0; }
.portrait::before { background: #d6d6d9; transform: rotate(-9deg) translate(-1.6rem, 0.4rem); opacity: 0.92; }
.portrait::after { background: #2b2b2e; border: 1px solid var(--edge-strong); transform: rotate(-4deg) translate(-0.7rem, 0.5rem); }
.frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; transform: rotate(2.5deg); border: 1px solid rgba(255, 255, 255, 0.5); background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.14em; margin: 0 -0.04em -0.14em; }
.wi { display: inline-block; }

/* Server strip */
.feature-rows { padding-block: 1.5rem 1rem; overflow: hidden; position: relative; }
.strip-label { width: min(100% - 2rem, 74rem); margin: 0 auto 0.9rem; color: var(--fog); font-size: 0.85rem; font-weight: 300; }
@media (min-width: 40rem) { .strip-label { width: min(100% - 4rem, 74rem); } }
.marquee {
  overflow: hidden; padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; }
.group { display: flex; gap: 1rem; padding-right: 1rem; flex: none; }
.fcard { position: relative; display: flex; align-items: center; gap: 0.85rem; min-width: 15rem; padding: 0.75rem 1.2rem 0.75rem 0.75rem; text-align: left; font: inherit; color: var(--bone); cursor: pointer; background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; transition: transform 0.2s var(--ease), border-color 0.2s ease; }
.fcard:hover { transform: translateY(-2px); border-color: var(--edge-strong); }
.fcard.copied::after {
  content: "Copied"; position: absolute; inset: 0; display: grid; place-items: center;
  background: #f2f2f2; color: #111; border-radius: inherit; font: 600 0.9rem var(--font);
}
.ficon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; flex: none; border-radius: 12px; background: #2a2a2d; border: 1px solid var(--edge-strong); }
.ficon .icon { width: 1.4rem; height: 1.4rem; stroke: #fff; }
.savatar { position: relative; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; flex: none; border-radius: 12px; overflow: hidden; background: #2f2f33; border: 1px solid var(--edge-strong); }
.savatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sinitial { font-weight: 600; font-size: 1.15rem; color: #fff; }
.fcard.server { cursor: default; }
.fcard.server:hover { transform: none; border-color: var(--edge); }
.ftext { display: grid; gap: 0.05rem; min-width: 0; }
.ftext strong { font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.ftext span { color: var(--mist); font-size: 0.8rem; font-weight: 300; white-space: nowrap; }
/* Command index */
.cats { padding-block: 4.5rem 1rem; }
.paper { background: #ececee; color: #151516; border-radius: 32px; padding: clamp(1.5rem, 5vw, 3.5rem); }
.paper .sec-head { margin-bottom: 1.5rem; }
.paper h2 { color: #111; }
.paper .lede { color: #5a5a60; }
.index { display: grid; }
.row {
  display: grid; grid-template-columns: 2.5rem minmax(9rem, 13rem) minmax(0, 1fr) minmax(0, 1.1fr) 1.6rem; gap: 0.6rem 1.5rem; align-items: center;
  padding: 1.15rem 0.5rem; border-top: 1px solid #cfcfd2; text-decoration: none; color: #151516;
  transition: background-color 0.2s ease, padding 0.25s var(--ease);
}
.row:last-child { border-bottom: 1px solid #cfcfd2; }
.row:hover, .row:focus-visible { background: #f8f8f9; padding-inline: 1rem; }
.row-ic { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #151516; }
.row-ic .icon { width: 1.1rem; height: 1.1rem; stroke: #fff; }
.row-name { display: grid; gap: 0.1rem; }
.row-name strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.row-count { font-size: 0.8rem; color: #6c6c72; font-weight: 300; }
.row-blurb { color: #4b4b51; font-size: 0.92rem; font-weight: 300; }
.row-samples { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.row-samples code { font-size: 0.74rem; padding: 0.2rem 0.5rem; border-radius: 6px; background: #dcdce0; color: #26262a; }
.row-go svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: #151516; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.row:hover .row-go svg { transform: translateX(5px); }
@media (max-width: 62rem) {
  .row { grid-template-columns: 2.5rem minmax(0, 1fr) 1.6rem; }
  .row-blurb, .row-samples { grid-column: 2; justify-content: flex-start; }
  .row-go { grid-column: 3; grid-row: 1; }
}

/* Shared section bits */
.sec-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.demo { padding-block: 5rem 1rem; }
.cta-sec { padding-block: 2rem 5rem; }

/* Demo */
.demo-grid { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .demo-grid { grid-template-columns: 21rem minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.scenario-list { display: grid; gap: 0.6rem; }
.scenario {
  display: grid; gap: 0.2rem; text-align: left; font: inherit; color: var(--bone); cursor: pointer;
  padding: 0.9rem 1.1rem; border: 1px solid var(--edge); border-radius: 16px; background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.scenario:hover { background: rgba(255, 255, 255, 0.04); }
.scenario[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }
.scenario strong { font-weight: 650; }
.scenario .blurb { color: var(--mist); font-size: 0.92rem; line-height: 1.4; }
.scenario code { color: var(--mist); font-size: 0.78rem; margin-top: 0.3rem; overflow-wrap: anywhere; }
.scenario[aria-selected="true"] code { color: var(--amber); }
.demo-stage { display: grid; gap: 0.75rem; min-width: 0; }

/* Discord-style panels (used for examples only) */
.chat, .discord-panel { background: var(--panel); color: var(--panel-text); font-size: 0.95rem; line-height: 1.45; }
.chat { border-radius: 14px; padding: 1rem 1rem 0.85rem; min-height: 21rem; display: flex; flex-direction: column; overflow: hidden; }
.discord-panel { border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.55rem; }
.chat-log { display: grid; gap: 1rem; align-content: start; flex: 1; }
.msg { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.75rem; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.avatar.user { background: #3d3d41; }
.avatar.bot { background: #e4e4e6; color: #111; }
.msg-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
.msg-name { font-weight: 700; }
.tag { background: var(--blurple); color: #111; font-size: 0.65rem; font-weight: 700; padding: 0.05rem 0.3rem; border-radius: 3px; }
.msg-text { overflow-wrap: anywhere; }
.msg-body { display: grid; gap: 0.5rem; min-width: 0; }
.mention { background: rgba(255, 255, 255, 0.16); color: #fff; border-radius: 3px; padding: 0 0.2rem; font-weight: 500; }
.chan { color: var(--panel-muted); font-weight: 600; font-size: 0.85rem; }

.embed { background: var(--panel-deep); border-left: 4px solid var(--blurple); border-radius: 4px; padding: 0.7rem 0.9rem; display: grid; gap: 0.4rem; max-width: 26rem; }
.bar-grey { border-left-color: #8a8a8a; }
.embed-title { font-weight: 700; }
.embed-desc { color: #d4d4d4; }
.embed-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
.embed-field-name { font-weight: 700; font-size: 0.8rem; color: var(--panel-muted); }
.embed-footer { font-size: 0.75rem; color: var(--panel-muted); }
.button-row { display: flex; }
.dbtn { background: var(--blurple); color: #111; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 4px; }
.dbtn-red { background: #3d3d41; color: #fff; }

.codeblock { position: relative; background: #0c0c0c; border: 1px solid #2a2a2a; border-radius: 4px; padding: 0.7rem 0.9rem; max-width: 26rem; overflow-x: auto; }
.codeblock code { color: #e8e8e8; white-space: pre; }
.codelang { position: absolute; top: 0.3rem; right: 0.6rem; font-size: 0.7rem; color: var(--panel-muted); font-family: var(--mono); }
.kw { color: #fff; font-weight: 600; } .str { color: #bcbcc0; } .fn { color: #8d8d92; }

.typing { display: flex; gap: 0.25rem; padding: 0.55rem 0; }
.typing i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--panel-muted); }
.composer { margin-top: 1rem; background: #1f1f1f; border-radius: 8px; padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.7rem; min-height: 2.8rem; color: #d4d4d4; }
.composer-plus { color: var(--panel-muted); font-weight: 700; }
.composer-text { font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.composer-text:empty::before { content: "Message #general"; color: #8a8a8a; font-family: var(--font); font-size: 0.95rem; }
.caret { display: none; width: 2px; height: 1.1em; background: #d4d4d4; }
.is-typing .caret { display: inline-block; }

.example, .usage {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--bone);
  background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; border-radius: 10px; padding: 0.65rem 0.8rem; overflow-wrap: anywhere;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.example:hover, .usage:hover { border-color: rgba(255, 255, 255, 0.55); }
.example.copied::after, .usage.copied::after {
  content: "Copied"; position: absolute; inset: 0; display: grid; place-items: center;
  background: #f2f2f2; color: #111; border-radius: inherit; font: 700 0.95rem var(--font);
}

/* Closing panel */
.cta-panel {
  display: grid; justify-items: start; text-align: left; gap: 1.1rem; border: 1px solid var(--edge); border-radius: 28px;
  background: radial-gradient(60% 100% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 70%), var(--deck);
  padding: clamp(2rem, 6vw, 4.5rem);
}
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.04em; font-weight: 600; }
.cta-panel .actions { justify-content: flex-start; }

/* Inner pages */
.page { padding-block: 3rem 4rem; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page .lede { margin-top: 1rem; }
.page .actions { margin-top: 1.5rem; }

.controls { display: grid; gap: 1rem; margin-block: 1.5rem 0.5rem; padding-block: 0.5rem 0.75rem; }
@media (min-width: 52rem) {
  .controls {
    position: sticky; top: var(--header-h); z-index: 10; background: rgba(0, 0, 0, 0.45); border-radius: 20px; padding-inline: 0.75rem;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
.search-wrap { position: relative; max-width: 32rem; }
.search {
  width: 100%; font: inherit; color: var(--bone); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge-strong); border-radius: 999px; padding: 0.75rem 2.8rem 0.75rem 1.2rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.search::placeholder { color: var(--fog); }
.kbd { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 500 0.8rem var(--mono); color: var(--mist); border: 1px solid var(--edge-strong); border-radius: 5px; padding: 0 0.4rem; }
.search:focus ~ .kbd { opacity: 0; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.chip-label { font-size: 0.9rem; color: var(--mist); margin-right: 0.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; color: var(--bone);
  background: transparent; border: 1px solid var(--edge-strong); border-radius: 999px; padding: 0.3rem 0.85rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip-mono { font-family: var(--mono); min-width: 2.4rem; justify-content: center; }
.chip:hover { background: rgba(255, 255, 255, 0.07); }
.chip[aria-pressed="true"] { background: #f2f2f2; color: #111; border-color: #fff; }
.count { font-size: 0.8rem; font-weight: 500; opacity: 0.7; font-variant-numeric: tabular-nums; }
.summary { color: var(--mist); font-size: 0.95rem; }

.command-group { margin-top: 2.25rem; }
.command-group h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.command-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; background: rgba(10, 10, 10, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.command { display: grid; gap: 0.6rem 2rem; padding: 1rem 1.15rem; }
.command + .command { border-top: 1px solid var(--edge); }
@media (min-width: 52rem) { .command { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); } }
.command-use { display: grid; gap: 0.4rem; align-content: start; }
.command-info { display: grid; gap: 0.25rem; align-content: start; }
.perm { font-size: 0.9rem; color: var(--mist); }
.empty { display: grid; gap: 1rem; justify-items: start; padding-block: 2rem; color: var(--mist); }

.terms-layout { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 62rem) { .terms-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }
.toc { display: none; }
@media (min-width: 62rem) { .toc { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.35rem 0.8rem; border-left: 2px solid var(--edge); text-decoration: none; color: var(--mist); font-size: 0.95rem; transition: color 0.15s ease, border-color 0.15s ease; }
.toc a:hover { color: var(--bone); }
.toc a[aria-current="true"] { border-left-color: var(--amber); color: var(--bone); font-weight: 600; }
.prose { max-width: 42rem; display: grid; gap: 0.75rem; color: #c4c4c4; }
.prose h2 { font-size: 1.25rem; margin-top: 1.25rem; color: var(--bone); scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Footer, toast */
.site-footer { position: relative; margin-top: 1rem; border-top: 1px solid var(--edge); padding-block: 3rem 2.5rem; color: var(--mist); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: grid; gap: 0.4rem; }
.footer-brand .wordmark { color: var(--bone); margin-bottom: 0.25rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-self: start; }
.footer-inner nav a { text-decoration: none; padding: 0.35rem 0; }
.footer-inner nav a:hover { color: var(--bone); text-decoration: underline; }
.footer-inner nav a[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--bone); color: var(--abyss);
  padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.2s var(--ease); z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Motion: only when the visitor hasn't asked for reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ring-ok { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

html.anim .msg { animation: rise 0.4s var(--ease) both; }
html.anim .embed-field { animation: rise 0.4s var(--ease) both; animation-delay: calc(var(--f, 0) * 70ms + 160ms); }
html.anim .typing i { animation: pulse 1s infinite ease-in-out; }
html.anim .typing i:nth-child(2) { animation-delay: 0.15s; }
html.anim .typing i:nth-child(3) { animation-delay: 0.3s; }
html.anim .caret { animation: blink 1s steps(2) infinite; }
html.anim .status-dot[data-state="online"] { animation: ring-ok 2.2s infinite; }
html.anim .example.copied::after, html.anim .usage.copied::after, html.anim .fcard.copied::after { animation: pop 0.18s var(--ease); }

html.anim .intro .wi { transform: translateY(110%); }
html.anim .intro.is-in .wi { transform: none; transition: transform 0.85s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 80ms); }
html.anim .intro [data-step] { opacity: 0; transform: translateY(18px); }
html.anim .intro.is-in [data-step] {
  opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: calc(var(--s, 0) * 110ms + 380ms);
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.track { animation: slide 60s linear infinite; }
html:not(.anim) .track { animation-duration: 110s; }
html.anim .marquee.rev .track { animation-direction: reverse; animation-duration: 62s; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toast, .nav-ind { transition: none; }
}

/* Placeholder cards shown until the bot reports its servers */
.fcard.ghost { border-style: dashed; background: transparent; }
.fcard.ghost .savatar { background: transparent; border-style: dashed; }
.fcard.ghost .sinitial { color: var(--mist); font-weight: 300; font-size: 1.5rem; }

/* Scroll progress under the nav */
.nav-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #f2f2f2; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); opacity: 0; }

html.anim .nav-wrap::after { opacity: 0.85; }

/* Scroll weight: layers trail the scroll and settle */
html.anim .portrait { translate: 0 var(--py, 0px); will-change: translate; }
html.anim .portrait::before { transform: rotate(-9deg) translate(-1.6rem, calc(0.4rem + var(--py2, 0px))); }
html.anim .portrait::after { transform: rotate(calc(-4deg + var(--tilt, 0deg))) translate(-0.7rem, 0.5rem); }
html.anim .frame { transform: rotate(calc(2.5deg + var(--tilt, 0deg) * -0.6)); }
html.anim .hero-copy { translate: 0 var(--hy, 0px); will-change: translate; }

/* Sections rise in as they arrive; rows follow one after another */
html.anim [data-reveal] { opacity: 0; transform: translateY(56px) scale(0.985); }
html.anim [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 1s var(--ease); }
html.anim .paper .row { opacity: 0; transform: translateX(-28px); }
html.anim .paper .row.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s var(--ease), background-color 0.2s ease, padding 0.25s var(--ease); transition-delay: calc(var(--n, 0) * 70ms), calc(var(--n, 0) * 70ms), 0s, 0s; }
html.anim .fcard { transition: transform 0.25s var(--ease), border-color 0.2s ease, background-color 0.2s ease; }
html.anim .fcard.server:hover { transform: translateY(-4px); border-color: var(--edge-strong); background: rgba(255, 255, 255, 0.07); }
html.anim .btn:hover { transform: translateY(-2px); }
html.anim .cta-panel { background-size: 160% 160%; animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { background-position: 100% 0%, 0 0; } to { background-position: 60% 30%, 0 0; } }

/* Dashboard */
.dash { padding-block: 2.5rem 6rem; }
.dash h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.dash-hero { max-width: 40rem; padding-block: 2rem; display: grid; gap: 1.25rem; justify-items: start; }
.dash-fine { color: var(--fog); font-size: 0.85rem; max-width: 38rem; margin: 1.5rem 0 0; }
.dash-loading { color: var(--mist); }
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.dash-title { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.dash-title h1 { overflow-wrap: anywhere; }
.dash-back { font-size: 0.85rem; color: var(--mist); text-decoration: none; }
.dash-back:hover { color: #fff; text-decoration: underline; }
.dash-user { display: flex; align-items: center; gap: 0.65rem; color: var(--mist); font-size: 0.92rem; }
.dash-user-icon { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.dash-initial { display: inline-grid; place-items: center; background: var(--panel-deep); color: var(--bone); font-weight: 600; }

.dash-notice { padding: 0.85rem 1.1rem; border-radius: 10px; border: 1px solid var(--edge-strong); background: var(--glass); font-size: 0.95rem; max-width: 40rem; }
.dash-notice-error { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.09); }

.dash-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.dash-server { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); color: inherit; text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease); }
a.dash-server:hover, a.dash-server:focus-visible { border-color: var(--edge-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.dash-server-add { border-style: dashed; }
.dash-server-off { opacity: 0.6; }
.dash-server-icon { width: 3rem; height: 3rem; border-radius: 12px; object-fit: cover; flex: none; font-size: 1.2rem; }
.dash-server-text { display: grid; min-width: 0; }
.dash-server-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-server-text span { color: var(--mist); font-size: 0.85rem; }
.dash-go { grid-column: 1 / -1; font-size: 0.88rem; color: #fff; font-weight: 500; }

.dash-editor { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 56rem) { .dash-editor { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; } .dash-side { position: sticky; top: calc(var(--header-h) + 1rem); } }
.dash-tabs { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
@media (min-width: 56rem) { .dash-tabs { flex-direction: column; overflow: visible; padding: 0; } }
.dash-tab { position: relative; flex: none; text-align: left; font: inherit; font-size: 0.95rem; color: var(--mist); background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 0.65rem 0.9rem; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.dash-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.dash-tab[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: var(--edge-strong); }
.dash-tab.is-dirty::after { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.55rem; border-radius: 50%; background: #fff; vertical-align: middle; }

.dash-main { min-width: 0; }
.dash-panel { display: grid; gap: 2.25rem; outline: none; }
.dash-panel-head h2 { font-size: 1.7rem; }
.dash-panel-head .lede { font-size: 1rem; margin-top: 0.4rem; }
.dash-group { display: grid; gap: 1.1rem; padding-top: 1.5rem; border-top: 1px solid var(--edge); max-width: 44rem; }
.dash-group > h3 { font-size: 1.1rem; }
.dash-hint { margin: 0; color: var(--mist); font-size: 0.85rem; line-height: 1.45; }
.dash-note:empty { display: none; }
.dash-field { display: grid; gap: 0.4rem; }
.dash-field > label { font-size: 0.92rem; font-weight: 500; }
.dash-input { width: 100%; font: inherit; font-size: 0.95rem; color: var(--bone); background: var(--panel); border: 1px solid var(--edge-strong); border-radius: 10px; padding: 0.65rem 0.8rem; }
.dash-input:hover { border-color: rgba(255, 255, 255, 0.4); }
.dash-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dash-input option { background: var(--deck); color: var(--bone); }
.dash-input:disabled { opacity: 0.5; }
.dash-number { max-width: 10rem; }
.dash-area { resize: vertical; min-height: 5rem; line-height: 1.5; }
.dash-area-wrap { position: relative; display: grid; }
.dash-count { justify-self: end; margin-top: 0.3rem; font-family: var(--mono); font-size: 0.72rem; color: var(--fog); }

.dash-toggle { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: start; position: relative; }
.dash-switch-input { position: absolute; opacity: 0; width: 2.6rem; height: 1.5rem; margin: 0; cursor: pointer; z-index: 1; }
.dash-switch { width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--panel-deep); border: 1px solid var(--edge-strong); position: relative; transition: background 0.2s var(--ease); margin-top: 0.1rem; }
.dash-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--mist); transition: transform 0.2s var(--ease), background 0.2s; }
.dash-switch-input:checked + .dash-switch { background: #fff; border-color: #fff; }
.dash-switch-input:checked + .dash-switch::after { transform: translateX(1.1rem); background: #111; }
.dash-switch-input:focus-visible + .dash-switch { outline: 2px solid #fff; outline-offset: 3px; }
.dash-toggle-text label { font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.dash-stack { display: grid; gap: 1.1rem; }

.dash-multi { display: grid; gap: 0.6rem; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 2rem; align-items: center; }
.dash-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.3rem 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--edge-strong); background: rgba(255, 255, 255, 0.07); font-size: 0.85rem; }
.dash-chip-x { font: inherit; line-height: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 0; background: transparent; color: var(--mist); cursor: pointer; }
.dash-chip-x:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.dash-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; }
.dash-empty { color: var(--fog); font-size: 0.88rem; margin: 0; }
.dash-add { display: flex; gap: 0.5rem; }

.dash-commands { display: grid; gap: 1.5rem; }
.dash-cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.dash-cmd-head h4 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.dash-cmd-actions { display: flex; gap: 0.4rem; }
.dash-cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.3rem 0.8rem; }
.dash-cmd { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.82rem; padding: 0.25rem 0.1rem; cursor: pointer; }
.dash-cmd input { accent-color: #fff; width: 1rem; height: 1rem; }

.dash-routes { display: grid; gap: 0.6rem; }
.dash-route { display: grid; gap: 0.4rem; padding: 0.7rem 0.9rem; border: 1px solid var(--edge); border-radius: 12px; }
@media (min-width: 40rem) { .dash-route { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1rem; } }
.dash-route-name { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; }
.dash-route-name input { accent-color: #fff; width: 1rem; height: 1rem; flex: none; }

.dash-rewards { display: grid; gap: 0.6rem; }
.dash-reward { display: grid; grid-template-columns: auto 5.5rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; }
.dash-reward label { font-size: 0.88rem; color: var(--mist); }
@media (max-width: 36rem) { .dash-reward { grid-template-columns: auto 1fr; } .dash-reward select { grid-column: 1 / -1; } }

.dash-savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; padding: 0.9rem 0; background: linear-gradient(180deg, transparent, var(--abyss) 35%); }
.dash-savemsg { margin: 0 auto 0 0; font-size: 0.9rem; color: var(--mist); }
.dash-savemsg.is-error { color: #fff; font-weight: 500; }
.dash-savebar .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

@media (prefers-reduced-motion: reduce) { .dash-server, .dash-switch, .dash-switch::after, .dash-tab { transition: none; } a.dash-server:hover { transform: none; } }

.dash [hidden] { display: none !important; }
