:root {
  --bg: #0e0e10;
  --bg-2: #131316;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --line: #2a2a2f;
  --line-2: #3a3a41;
  --text: #ededef;
  --muted: #a1a1aa;
  --faint: #71717a;
  --brand: #e5484d;
  --brand-2: #f07579;
  --brand-ink: #18181b;
  --good: #46c77f;
  --warn: #f2b33d;
  --bad: #ff5f57;
  --radius: 8px;
  --radius-sm: 6px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .35em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(14 14 16 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font: 600 1.1rem var(--display); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 1.2rem; margin-left: auto; align-items: center; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .93rem; }
.nav__links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 1.1rem; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 .93rem var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: #ec5f63; border-color: #ec5f63; }
.btn--lg { height: 48px; padding: 0 1.4rem; font-size: 1rem; border-radius: 6px; }
.btn--sm { height: 34px; padding: 0 .8rem; font-size: .85rem; border-radius: 8px; }
.btn--danger { color: #ffd6d7; border-color: #5c2a2d; background: #2a1517; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- landing ---- */
.hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 600; letter-spacing: -.025em; margin-bottom: 1.2rem; max-width: 14ch; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.8rem; }
.cta { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.fine { margin-top: 1.1rem; font-size: .85rem; color: var(--faint); }
.stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; font-family: var(--mono); }
.stats b { display: block; font-size: 1.4rem; font-weight: 600; color: var(--text); }
.stats span { color: var(--muted); font-size: .8rem; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); vertical-align: middle; }
.dot--off { background: var(--faint); }

/* A Securly alert as Discord shows it. */
.dmsg { background: #313338; color: #dbdee1; border-radius: 10px; padding: 1rem 1.1rem 1.1rem; font: 15px/1.375 'gg sans', 'Noto Sans', var(--font); box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.dmsg__chan { font-size: .8rem; color: #949ba4; margin: -.2rem 0 .8rem; padding-bottom: .7rem; border-bottom: 1px solid #3f4147; font-weight: 600; }
.dmsg__row { display: flex; gap: .9rem; }
.dmsg__av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #1e1f22; display: grid; place-items: center; }
.dmsg__av img { width: 26px; height: 26px; }
.dmsg__who { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.dmsg__who b { color: #f2f3f5; font-weight: 600; }
.dmsg__app { background: #5865f2; color: #fff; font-size: .62rem; font-weight: 700; padding: .05rem .3rem; border-radius: 3px; }
.dmsg__time { color: #949ba4; font-size: .75rem; }
.dmsg__box { border-left: 4px solid var(--bad); background: #2b2d31; border-radius: 4px; padding: .75rem .9rem; font-size: .88rem; }
.dmsg__box h4 { margin: 0 0 .4rem; color: #f2f3f5; font-size: 1rem; }
.dmsg__box ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.dmsg__box li { margin: .15rem 0; }
.dmsg__box p { margin: 0; }
.dmsg__mention { color: #c9cdfb; background: rgb(88 101 242 / .3); border-radius: 3px; padding: 0 .15rem; }
.dmsg__small { color: #949ba4; font-size: .75rem; margin-top: .45rem; }

.section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: .5rem; }
.section__intro { color: var(--muted); max-width: 38rem; margin-bottom: 2.2rem; }
.side-by-side { display: grid; grid-template-columns: 17rem 1fr; gap: 3rem; }
.side-by-side > div:first-child p { color: var(--muted); }

.things { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.thing { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); }
.thing h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .35rem; display: flex; gap: .6rem; align-items: baseline; }
.thing h3 small { font: 500 .75rem var(--mono); color: var(--brand); }
.thing p { color: var(--muted); font-size: .94rem; margin: 0; }

.limits-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.limits-table td { padding: .55rem 0; border-top: 1px solid var(--line); }
.limits-table td:last-child { text-align: right; font-family: var(--mono); font-size: .85rem; color: var(--text); white-space: nowrap; }
.limits-table td:first-child { color: var(--muted); }

.setup-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1.3rem; }
.setup-steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .3rem 0; }
.setup-steps li::before { content: counter(s); font: 600 .85rem var(--mono); color: var(--brand); padding-top: .15rem; }
.setup-steps b { display: block; }
.setup-steps span { grid-column: 2; color: var(--muted); font-size: .94rem; }

.qa { display: grid; gap: 1.6rem; max-width: 44rem; }
.qa h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; }
.qa p { color: var(--muted); margin: 0; }

.band { padding: 4rem 0; }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 600; margin: 0; }

.footer { padding: 2.2rem 0; color: var(--faint); font-size: .85rem; }
.footer__in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---- docs / legal ---- */
.doc { padding: 3.5rem 0 5rem; }
.doc__grid { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
.doc__toc { position: sticky; top: 88px; align-self: start; display: grid; gap: .35rem; font-size: .92rem; }
.doc__toc a { color: var(--muted); }
.doc article { max-width: 48rem; }
.doc h1 { font-size: 2.3rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.6rem; padding-top: .4rem; }
.doc h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.doc th, .doc td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc td:first-child { white-space: nowrap; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: .3rem 0; }
.callout { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1rem 0; }

/* ---- dashboard ---- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 1.2rem .8rem; background: var(--bg-2); }
.side__guild { display: flex; gap: .7rem; align-items: center; padding: .3rem .5rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.side__guild b { display: block; font-size: .95rem; line-height: 1.3; }
.side a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.side a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side a.on { background: var(--panel-2); color: var(--text); }
.side a svg { width: 18px; height: 18px; flex: none; }
.side .back { margin-top: 1rem; font-size: .85rem; }
.main { padding: 2rem 2.2rem 4rem; min-width: 0; }
.main__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.6rem; }
.main__head h1 { font-size: 1.7rem; margin: 0; }
.main__head p { margin: .3rem 0 0; }

.gicon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gcard { display: flex; gap: .9rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--text); }
.gcard:hover { border-color: var(--line-2); text-decoration: none; }
.gcard b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard div { min-width: 0; flex: 1; }
.gcard--off { opacity: .75; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.card h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.card > p.muted { font-size: .9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.score { display: flex; gap: 1.4rem; align-items: center; }
.ring { --p: 0; --c: var(--good); width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); flex: none; }
.ring div { width: 86px; height: 86px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 700 1.6rem var(--display); }
.ring small { display: block; font: 500 .7rem var(--font); color: var(--muted); text-align: center; margin-top: -.4rem; }
.modlist { display: grid; gap: .5rem; }
.mod { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.mod b { flex: 1; font-weight: 600; font-size: .93rem; }
.pill { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.pill--on { color: var(--good); border-color: rgb(47 191 113 / .45); background: rgb(47 191 113 / .08); }
.pill--off { color: var(--faint); }
.pill--bad { color: var(--bad); border-color: rgb(239 91 95 / .45); background: rgb(239 91 95 / .08); }
.alert { padding: .8rem 1rem; border-radius: 10px; border: 1px solid rgb(245 165 36 / .4); background: rgb(245 165 36 / .08); margin-bottom: .6rem; font-size: .92rem; }
.alert--bad { border-color: rgb(239 91 95 / .45); background: rgb(239 91 95 / .08); }

.form { display: grid; gap: 1.1rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > div:first-child { min-width: 0; }
.row b { display: block; font-weight: 600; font-size: .95rem; }
.row span.muted { font-size: .85rem; }
.ctl { display: flex; gap: .5rem; align-items: center; flex: none; }
.input, select.input { height: 38px; padding: 0 .7rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 500 .9rem var(--font); min-width: 0; }
.input:focus { outline: 2px solid rgb(229 72 77 / .5); outline-offset: 1px; border-color: var(--brand); }
.input--num { width: 76px; }
select.input { padding-right: 1.8rem; }
textarea.input { height: auto; padding: .6rem .7rem; width: 100%; resize: vertical; font-family: var(--mono); font-size: .85rem; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .5; }

.limits { width: 100%; border-collapse: collapse; }
.limits td { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.limits td:last-child { text-align: right; white-space: nowrap; }
.limits tr:last-child td { border-bottom: 0; }

.savebar { position: sticky; bottom: 1rem; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: .8rem; margin-top: 1rem; padding: .6rem .7rem .6rem 1rem; background: rgb(31 31 35 / .94); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.savebar .note { font-size: .88rem; color: var(--muted); }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); padding: .7rem 1.1rem; border-radius: 10px; font-size: .9rem; z-index: 50; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.toast--bad { border-color: rgb(239 91 95 / .5); }

.list { display: grid; }
.list__item { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.list__item:last-child { border-bottom: 0; }
.list__item code { font-size: .8rem; }
.tag { font: 500 .75rem var(--mono); padding: .15rem .45rem; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.mods-badge { font: 600 .72rem var(--mono); padding: .15rem .45rem; border-radius: 5px; text-transform: uppercase; }
.m-antinuke { color: #ff9ea1; background: rgb(239 91 95 / .1); }
.m-antiraid { color: #ffc56b; background: rgb(245 165 36 / .1); }
.m-automod { color: #9fb6ff; background: rgb(229 72 77 / .1); }
.m-verification { color: #7fe0ab; background: rgb(47 191 113 / .1); }
.m-lockdown, .m-backups, .m-quarantine { color: var(--muted); background: var(--panel-2); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.lock { font-size: .85rem; color: var(--warn); margin: .2rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; padding: .25rem .4rem .25rem .6rem; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .2rem; }

@media (max-width: 900px) {
  .hero__grid, .doc__grid, .side-by-side { grid-template-columns: 1fr; gap: 2rem; }
  .things { grid-template-columns: 1fr; }
  .doc__toc { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: .3rem; padding: .6rem; }
  .side__guild, .side .back { display: none; }
  .side a { flex: none; }
  .main { padding: 1.4rem 16px 4rem; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 2.8rem 0 3rem; }
  .row { flex-direction: column; align-items: flex-start; }
  .ctl { flex-wrap: wrap; }
  .score { flex-direction: column; align-items: flex-start; }
}
