/* Shared design system for the website and the dashboard (dark, purple accent like the stats cards). */

@font-face {
  font-family: "Inter";
  src: url("../../assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0910;
  --bg-soft: #100d17;
  --panel: #16121e;
  --panel-2: #1c1726;
  --panel-3: #241e31;
  --inset: #110e18;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.17);
  --text: #f3f1f8;
  --subtle: #c0b9d2;
  --muted: #8d869f;
  --faint: #665f76;
  --accent: #a574f4;
  --accent-strong: #8f5bef;
  --accent-soft: rgba(165, 116, 244, 0.13);
  --accent-line: rgba(165, 116, 244, 0.42);
  --accent-text: #cfb6ff;
  --red: #f55367;
  --approve: #a4eb78;
  --warn: #fac863;
  --deny: #ff6464;
  --discord: #5865f2;
  --embed: #201b2b;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d869f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: var(--mono); }
img { max-width: 100%; }
button { font: inherit; }
::selection { background: rgba(165, 116, 244, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.icon { flex: none; display: block; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 600 14px/1 var(--font); letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .2s ease, opacity .15s ease;
}
.btn:hover { border-color: var(--line-3); background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, #b38af8 0%, #9462ee 100%);
  border-color: rgba(255, 255, 255, 0.16); color: #fff;
  box-shadow: 0 10px 28px -12px rgba(165, 116, 244, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #bd98fa 0%, #9f6ff2 100%); border-color: rgba(255, 255, 255, 0.24); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.045); }
.btn-danger { background: linear-gradient(180deg, #f76c7e 0%, #e2425a 100%); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-danger:hover { background: linear-gradient(180deg, #f97d8d 0%, #e85068 100%); }
.btn-discord { background: var(--discord); border-color: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: 0 10px 28px -12px rgba(88, 101, 242, 0.9); }
.btn-discord:hover { background: #6974f4; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.icon-button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* ------------------------------------------------------------------ inputs */

.input, .select {
  width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--inset); color: var(--text);
  font: 14px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .input:focus-within {
  outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(165, 116, 244, 0.16);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.select option, .select optgroup { background: #17131f; color: var(--text); }
.select-sm { min-height: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
textarea.input { padding: 10px 12px; resize: vertical; line-height: 1.5; font-family: var(--mono); font-size: 13px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--subtle); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-accent { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-line); }

/* ------------------------------------------------------------------ discord messages (dashboard output + website preview) */

.dc-message { display: grid; gap: 8px; color: #dcd8e6; font-size: 14.5px; line-height: 1.45; min-width: 0; }
.dc-content { overflow-wrap: anywhere; }
.dc-embed {
  max-width: 580px; background: var(--embed); border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 4px solid #3b3449; border-radius: 6px; padding: 10px 14px 12px 12px; display: grid; gap: 6px; min-width: 0;
}
.dc-embed-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.dc-embed-main { display: grid; gap: 6px; min-width: 0; align-content: start; }
.dc-embed-author { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #f2f0f7; }
.dc-embed-author-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dc-embed-title { font-weight: 700; color: #f2f0f7; font-size: 15px; }
.dc-embed-description { font-size: 14px; overflow-wrap: anywhere; }
.dc-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 14px; margin-top: 2px; }
.dc-field { min-width: 0; }
.dc-field-name { font-size: 13px; font-weight: 700; color: #f2f0f7; margin-bottom: 2px; }
.dc-field-value { font-size: 13.5px; overflow-wrap: anywhere; }
.dc-embed-thumbnail { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; }
.dc-embed-image { max-width: 100%; border-radius: 6px; margin-top: 4px; display: block; }
.dc-embed-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a9a2bb; margin-top: 2px; }
.dc-embed-footer-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-files { display: grid; gap: 8px; justify-items: start; }
.dc-attachment { max-width: min(100%, 640px); border-radius: 10px; display: block; border: 1px solid var(--line); }
.dc-textfile { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; width: min(100%, 580px); }
.dc-textfile-name { font-size: 12px; padding: 6px 10px; background: var(--panel-2); color: var(--subtle); font-family: var(--mono); }
.dc-textfile .md-pre { margin: 0; border: 0; border-radius: 0; max-height: 300px; overflow: auto; }
.dc-file { font-size: 13px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--subtle); }
.dc-components { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #fff; background: #4e4a5a;
}
.dc-button .md-emoji { width: 18px; height: 18px; vertical-align: 0; }
.dc-primary { background: #5865f2; }
.dc-success { background: #248046; }
.dc-danger { background: #da373c; }
.dc-link:hover { background: #5c5869; }
.dc-button.disabled { opacity: .5; }
.dc-select { min-width: 220px; padding: 7px 12px; border-radius: 6px; background: #17131f; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.dc-container-text { padding: 2px 0; }
.dc-poll { display: grid; gap: 6px; max-width: 460px; padding: 12px; border-radius: 10px; background: var(--embed); border: 1px solid var(--line); }
.dc-poll-question { font-weight: 700; }
.dc-poll-answer { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.dc-pager { display: flex; align-items: center; gap: 8px; }
.dc-pager-button {
  width: 32px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--text); cursor: pointer; font-size: 17px; line-height: 1;
}
.dc-pager-button:hover { border-color: var(--line-3); }
.dc-pager-label { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }

.md-p { white-space: pre-wrap; overflow-wrap: anywhere; }
.md-gap { height: .55em; }
.md-h { font-weight: 700; color: #f2f0f7; line-height: 1.3; margin: 4px 0 2px; }
.md-h1 { font-size: 20px; }
.md-h2 { font-size: 17px; }
.md-h3 { font-size: 15px; }
.md-sub { font-size: 12px; color: var(--muted); }
.md-li { padding-left: 16px; position: relative; white-space: pre-wrap; }
.md-li::before { content: "\2022"; position: absolute; left: 4px; color: var(--muted); }
.md-quote { margin: 2px 0; padding: 0 0 0 12px; border-left: 4px solid #4a4458; white-space: pre-wrap; }
.md-code { background: rgba(0, 0, 0, 0.32); border-radius: 4px; padding: 1px 5px; font-size: .86em; }
.md-pre {
  margin: 4px 0; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px;
  padding: 9px 11px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.md-link { color: #6cb6ff; }
.md-link:hover { text-decoration: underline; }
.md-mention { background: rgba(88, 101, 242, 0.28); color: #cdd1fb; border-radius: 4px; padding: 0 3px; font-weight: 500; }
.md-emoji { width: 1.35em; height: 1.35em; vertical-align: -0.33em; object-fit: contain; }
.md-time { background: rgba(255, 255, 255, 0.07); border-radius: 4px; padding: 0 4px; }
.md-spoiler { background: #0e0c13; color: transparent; border-radius: 4px; cursor: pointer; }
.md-spoiler.shown { color: inherit; background: rgba(255, 255, 255, 0.08); }

/* ================================================================== website */

.site { overflow-x: hidden; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.glow {
  position: absolute; inset: 0 0 auto; height: 980px; pointer-events: none; z-index: 0; overflow: hidden;
}
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.glow::before { width: 720px; height: 520px; left: 50%; top: -220px; transform: translateX(-62%); background: radial-gradient(closest-side, rgba(165, 116, 244, 0.55), transparent); }
.glow::after { width: 520px; height: 420px; left: 50%; top: -120px; transform: translateX(18%); background: radial-gradient(closest-side, rgba(245, 83, 103, 0.28), transparent); }
.grid-lines {
  position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
}
.site main, .site header, .site footer { position: relative; z-index: 1; }

.site-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); background: rgba(11, 9, 16, 0.7); border-bottom: 1px solid var(--line); }
.site-nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-avatar { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #b38af8, #7b4fe0 60%, #f55367 140%); box-shadow: 0 6px 20px -8px rgba(165, 116, 244, 0.9);
}
.brand-mark.big { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
.site-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 500; }
.site-links a:hover { color: var(--text); }
.site-nav .nav-actions { margin-left: auto; display: flex; gap: 10px; }
.brand { min-width: 0; }
.brand [data-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the dashboard previews open the real dashboard when the bot serves the page */
.preview-link { position: relative; cursor: pointer; }
.preview-hint {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 9px 16px; border-radius: 999px; pointer-events: none;
  background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(165, 116, 244, 0.9);
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
}
.preview-link:hover .preview-hint { opacity: 1; transform: none; }

.hero { text-align: center; padding: 92px 0 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--subtle);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px);
}
.hero-badge .live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(164, 235, 120, 0.12); color: var(--approve); font-weight: 600; font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--approve); box-shadow: 0 0 0 0 rgba(164, 235, 120, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(164, 235, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(164, 235, 120, 0); } }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  margin: 26px auto 20px; max-width: 920px;
}
.gradient-text {
  background: linear-gradient(100deg, #e3d4ff 0%, #a574f4 45%, #f55367 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 640px; margin: 0 auto; color: var(--subtle); font-size: 1.13rem; line-height: 1.6; }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hint { margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.hint code, .kbd-code { color: var(--text); background: var(--panel-2); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12.5px; }

/* dashboard preview in the hero */
.shot { margin: 64px auto 0; max-width: 1060px; position: relative; }
.shot::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(165, 116, 244, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.window {
  border-radius: 22px; overflow: hidden; background: #0f0c16; text-align: left;
  box-shadow: 0 40px 120px -40px rgba(165, 116, 244, 0.45), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #13101b; }
.window-bar > span { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #2c2638; }
.window-url { min-width: 0; margin-left: 14px; height: 24px; line-height: 24px; padding: 0 12px; border-radius: 7px; background: #1a1624; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 430px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 3px; background: #110e18; }
.mock-guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.mock-guild-icon { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #6a4bc4, #f55367); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mock-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.mock-item.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.mock-item .icon { color: currentColor; }
.mock-heading { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 12px 10px 6px; font-weight: 700; }
.mock-main { padding: 24px 26px; display: grid; gap: 16px; align-content: start; }
.mock-title { display: flex; align-items: center; gap: 12px; }
.mock-title-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.mock-title b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.mock-title small { color: var(--muted); font-size: 12.5px; }
.mock-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.mock-card { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock-card-title { font-size: 12.5px; font-weight: 600; color: var(--subtle); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 9px; background: var(--inset); border: 1px solid var(--line); }
.mock-row span:first-child { color: var(--subtle); }
.mock-toggle { width: 30px; height: 17px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.mock-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.mock-toggle.off { background: #352f44; }
.mock-toggle.off::after { right: auto; left: 2px; background: #8d869f; }
.mock-input { height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--inset); display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.mock-input b { color: var(--accent-text); font-weight: 600; margin-right: 6px; }
.mock-run { display: flex; gap: 8px; }
.mock-run .mock-input { flex: 1; }
.mock-seg { display: inline-flex; justify-self: start; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--inset); font-size: 12.5px; font-weight: 600; }
.mock-seg span { padding: 5px 14px; border-radius: 7px; color: var(--muted); }
.mock-seg .on { color: #e4ffd3; background: rgba(164, 235, 120, 0.16); box-shadow: inset 0 0 0 1px rgba(164, 235, 120, 0.45); }
.mock-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-pair .mock-input { font-family: var(--font); }
.mock-saved { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); color: var(--subtle); font-size: 13px; }
.mock-saved svg { color: var(--approve); flex: none; }
.mock-button { height: 34px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #b38af8, #9462ee); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 72px auto 0; max-width: 920px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats:not(.is-live) { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
.stat { background: rgba(22, 18, 30, 0.92); padding: 22px 24px; text-align: left; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -0.03em; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* sections */
.section { padding: 96px 0 0; }
.section-intro { max-width: 680px; margin-bottom: 40px; }
.section-intro.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 14px; font-weight: 780; }
.section-intro p { color: var(--subtle); margin: 0; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  position: relative; background: linear-gradient(180deg, rgba(28, 23, 38, 0.9), rgba(20, 16, 28, 0.9)); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); margin-bottom: 16px; }
.feature-icon.red { background: rgba(245, 83, 103, 0.12); color: #ff9aa8; box-shadow: inset 0 0 0 1px rgba(245, 83, 103, 0.38); }
.feature h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature .cmds { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature .cmds code { background: var(--inset); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--subtle); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--subtle); }
.checks b { color: var(--text); display: block; margin-bottom: 2px; }
.check-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.panel-demo { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.demo-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.demo-head .badge { margin-left: auto; }
.demo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.demo-chat { border-radius: 14px; background: #120f19; border: 1px solid var(--line); padding: 14px; }

.discord { background: #15121c; border-radius: 18px; padding: 20px 20px 8px; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); font-size: 14.5px; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-bottom: 18px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-avatar.user { background: linear-gradient(135deg, #5f74f0, #9d7cf2); }
.msg-avatar.bot { background: linear-gradient(135deg, #b38af8, #7b4fe0 60%, #f55367 140%); }
.msg-author { font-weight: 600; margin-right: 6px; }
.msg-tag { font-size: 10px; font-weight: 700; background: var(--discord); color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; }
.msg-time { color: var(--faint); font-size: 12px; margin-left: 6px; }
.msg-text { color: #dcd8e6; }
.msg .dc-embed { margin-top: 6px; }
.status-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; display: inline-block; }

/* command browser */
.browser { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.browser-side { position: sticky; top: 86px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.cat-button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 9px;
  border: 0; background: transparent; color: var(--muted); font-size: 13.5px; text-align: left; cursor: pointer;
}
.cat-button:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.cat-button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cat-button .count { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.browser-main { min-width: 0; }
.searchbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--panel); margin-bottom: 18px; }
.searchbar:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(165, 116, 244, 0.14); }
.searchbar input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.searchbar .icon { color: var(--faint); }
.kbd { color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.result-count { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.category-block { margin-bottom: 30px; }
.category-block h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 4px; letter-spacing: -0.01em; }
.category-block > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.row-cmd { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; margin-bottom: 7px; transition: border-color .15s ease; }
.row-cmd:hover { border-color: var(--line-2); }
.row-cmd summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; }
.row-cmd summary::-webkit-details-marker { display: none; }
.row-cmd[open] { border-color: var(--line-2); }
.row-cmd-name { font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.row-cmd-desc { color: var(--muted); font-size: 14px; }
.perm { font-size: 11.5px; color: var(--warn); border: 1px solid rgba(250, 200, 99, 0.3); background: rgba(250, 200, 99, 0.07); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.row-cmd-body { padding: 0 16px 16px; display: grid; gap: 8px; font-size: 13.5px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.kv span { color: var(--faint); }
.kv code { background: var(--inset); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; overflow-wrap: anywhere; color: var(--subtle); }
.empty-note { color: var(--muted); text-align: center; padding: 40px 0; }

.cta-band {
  margin-top: 110px; border-radius: 26px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(165, 116, 244, 0.3), transparent 60%), var(--panel);
  border: 1px solid var(--accent-line);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; margin: 0 0 12px; }
.cta-band p { color: var(--subtle); margin: 0 auto; max-width: 520px; }

.site-footer { margin-top: 90px; border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a:hover { color: var(--text); }

/* ================================================================== legal pages */

.site-links a[aria-current="page"] { color: var(--text); }
.legal { padding: 64px 0 0; }
.legal-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.legal-head h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.legal-head p { margin: 0; color: var(--muted); font-size: 14px; }
.legal-tabs { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.legal-tabs a { padding: 9px 18px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.legal-tabs a:hover { color: var(--text); }
.legal-tabs a[aria-current="page"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: 1060px; margin: 0 auto; align-items: start; }
.legal-toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 13.5px; }
.legal-toc b { padding: 0 10px 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.legal-toc a { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.legal-toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.legal-body { min-width: 0; color: var(--subtle); font-size: 15.5px; line-height: 1.7; }
.legal-body section { scroll-margin-top: 90px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 12px; color: var(--text); font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.02em; }
.legal-body h2 .num {
  flex: none; min-width: 30px; height: 26px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transform: translateY(-2px);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 7px 0; padding-left: 4px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--accent-text); }
.legal-body code { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: 13px; white-space: nowrap; }
.legal-summary {
  padding: 22px 26px 8px; border-radius: 18px; border: 1px solid var(--accent-line);
  background: radial-gradient(120% 160% at 0% 0%, rgba(165, 116, 244, 0.16), transparent 60%), var(--panel);
}
.legal-summary b { display: block; margin-bottom: 6px; color: var(--text); font-size: 15px; }
.data-table { width: 100%; margin: 6px 0 20px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; font-size: 14px; line-height: 1.55; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.data-table td { background: rgba(255, 255, 255, 0.015); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { width: 24%; color: var(--text); font-weight: 600; }
.contact-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 6px; }
.legal-body .contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.legal-body .contact-item:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.contact-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.contact-text { display: grid; min-width: 0; }
.contact-text b { font-size: 14.5px; }
.contact-text small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.contact-fallback { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-3); color: var(--muted); }

@media (max-width: 1000px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .window-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .browser { grid-template-columns: 1fr; }
  .browser-side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-button { width: auto; height: 32px; border: 1px solid var(--line-2); border-radius: 999px; }
  .cat-button .count { margin-left: 4px; }
}
@media (max-width: 900px) {
  .site-links .legal-link { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-links { display: none; }
  .legal { padding-top: 44px; }
  .legal-body { font-size: 15px; }
  .legal-tabs a { padding: 8px 12px; font-size: 13.5px; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: auto; }
  .data-table tr { border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td, .data-table tr:last-child td { padding: 3px 14px; border-bottom: 0; }
  .data-table td:first-child { width: auto; padding-top: 14px; }
  .data-table td:last-child { padding-bottom: 14px; color: var(--muted); }
  .site-nav-inner { gap: 12px; }
  .site-nav .nav-actions { gap: 8px; }
  .hero { padding-top: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .mock-grid, .demo-fields { grid-template-columns: 1fr; }
  .row-cmd summary { grid-template-columns: 1fr; gap: 4px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kbd { display: none; }
  .cta-band { padding: 40px 22px; }
  .section { padding-top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
