:root {
  --bg: #111214;
  --bg-2: #17181b;
  --card: #1e1f22;
  --embed: #2b2d31;
  --line: #2e3035;
  --line-2: #3a3c42;
  --text: #f2f3f5;
  --muted: #a3a6ad;
  --dim: #6d7078;
  --ok: #57f287;
  --warn: #f0b232;
  --bad: #ed4245;
  --radius: 14px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { /* soft light from the top, no colour */
  content: ""; position: fixed; inset: 0 0 auto 0; height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.07), transparent 70%);
}
a { color: inherit; text-decoration: none; }
code, kbd, .mono { font-family: var(--mono); }
::selection { background: #fff; color: #000; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(17,18,20,.72); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img, .brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--embed); display: grid; place-items: center; font-size: 14px; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); transition: transform .15s, background .15s, border-color .15s; cursor: pointer; }
.btn:hover { background: var(--embed); border-color: #4a4d55; }
.btn:active { transform: scale(.97); }
.btn.primary { background: #f2f3f5; color: #111214; border-color: #f2f3f5; }
.btn.primary:hover { background: #fff; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.menu-btn { display: none; }

/* hero */
.hero { padding: 88px 0 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; background: var(--bg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(87,242,135,.12); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 750; }
h1 .soft { color: var(--dim); }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* fake discord preview */
.preview { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.preview-top { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.preview-top b { color: var(--muted); font-weight: 600; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 8px 4px; }
.msg .av { width: 40px; height: 40px; border-radius: 50%; background: #3a3c42; display: grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; }
.msg .av img { width: 100%; height: 100%; object-fit: cover; }
.msg .who { font-weight: 600; font-size: 14px; }
.msg .who .tag { font-size: 10px; font-weight: 700; background: #f2f3f5; color: #111; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.msg .who time { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
.msg .txt { color: #dbdee1; font-size: 14.5px; }
.msg .txt code { background: #111214; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.embed { margin-top: 6px; background: var(--embed); border-left: 4px solid var(--bar, #3f4147); border-radius: 4px; padding: 10px 14px; font-size: 14px; color: #dbdee1; max-width: 430px; }
.embed.ok { --bar: var(--ok); } .embed.warn { --bar: var(--warn); }
.embed .ttl { font-weight: 700; color: #fff; margin-bottom: 2px; }
.embed .meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.typing { color: var(--dim); font-size: 12.5px; padding: 6px 4px 0 56px; height: 22px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.stat { padding: 24px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--dim); font-size: 13px; }

/* sections */
section { padding: 96px 0 0; }
.eyebrow { color: var(--dim); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 14px; }
.sub { color: var(--muted); max-width: 560px; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--embed); display: grid; place-items: center; font-size: 18px; margin-bottom: 16px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .cmds { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.feature.big { grid-column: span 2; }

.band { margin-top: 96px; border: 1px solid var(--line); border-radius: 20px; padding: 56px; text-align: center; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.band h2 { margin-top: 0; }
.band .cta { justify-content: center; }

footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a:hover { color: var(--text); }

/* commands page */
.cmd-head { padding: 64px 0 28px; }
.cmd-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 10px; }
.searchbar { position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: 12px 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; transition: border-color .15s; }
.search:focus-within { border-color: #565a63; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--dim); }
kbd { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 1px 6px; border-radius: 5px; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: 18px; }
.cats { position: sticky; top: 140px; align-self: start; max-height: calc(100vh - 160px); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 6px; }
.cat { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; cursor: pointer; border: 0; background: none; text-align: left; font-family: inherit; }
.cat:hover { background: var(--bg-2); color: var(--text); }
.cat.on { background: var(--card); color: var(--text); }
.cat span { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.count-line { color: var(--dim); font-size: 13px; margin: 0 0 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.cmd { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cmd > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; cursor: pointer; }
.cmd > button:hover { background: rgba(255,255,255,.02); }
.cmd > button:focus-visible { outline: 2px solid #8a8e97; outline-offset: -2px; border-radius: 12px; }
.cmd .nm { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.cmd .ds { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd .pm { font-size: 12px; color: var(--dim); white-space: nowrap; }
.cmd .body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--line); }
.cmd.open .body { display: block; }
.cmd.open .ds { white-space: normal; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; padding-top: 16px; font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.copy { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--text); }
.copy:hover { border-color: var(--line-2); }
.copy.done::after { content: "copied"; color: var(--ok); font-family: var(--font); font-size: 12px; }
.empty { text-align: center; padding: 60px 0; color: var(--dim); }
.skeleton { height: 52px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-2), var(--card), var(--bg-2)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
mark { background: rgba(255,255,255,.16); color: #fff; border-radius: 3px; padding: 0 1px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .feature.big { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .layout { grid-template-columns: 1fr; }
  .cats { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .cat { white-space: nowrap; gap: 8px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .feature.big { grid-column: auto; }
  .band { padding: 36px 22px; }
  .cmd > button { grid-template-columns: 1fr; gap: 4px; }
  .cmd .pm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* dark scrollbars everywhere */
html, .cats { scrollbar-color: #3a3c42 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3c42; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4a4d55; }
/* inline code in text */
p code, .sub code { background: var(--card); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .9em; color: var(--text); }
