/* www.sherbabot.com: the same colours as the docs site, so the two feel like one place */
:root {
  --bg: #16171a;
  --panel: #1f2024;
  --panel-2: #26282d;
  --text: #dfe1e5;
  --heading: #ffffff;
  --muted: #9aa0a9;
  --accent: #6d7cff;
  --accent-2: #b86bff;
  --link: #8fb4ff;
  --border: #2f3137;
  --discord: #5865f2;
  --gold: #ffd36b;
  --radius: 16px;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 17px/1.65 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(109, 124, 255, 0.18), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(184, 107, 255, 0.12), transparent 60%),
    var(--bg);
}
::selection { background: rgba(109, 124, 255, 0.35); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); letter-spacing: -0.02em; line-height: 1.15; }
code { font: 0.86em var(--mono); padding: 2px 6px; border-radius: 6px; background: #111214; color: #f0b6ff; }
.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; color: #fff; background: var(--gradient); box-shadow: 0 6px 20px rgba(109, 124, 255, 0.35);
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.discord { background: var(--discord); box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.text-link { font-weight: 600; }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  background: rgba(22, 23, 26, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--heading); text-decoration: none; }

/* ---------- hero ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 72px 0 24px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { margin: 0 auto 18px; max-width: 14ch; font-size: clamp(40px, 7vw, 68px); }
.lede { max-width: 640px; margin: 0 auto 28px; font-size: 19px; color: #c9ccd3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.actions.left { justify-content: flex-start; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.window {
  margin: 48px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #0b1020;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1b1d22; border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d45; }
.window-bar i:first-child { background: #ff6b6e; }
.window-bar i:nth-child(2) { background: #ffcd4a; }
.window-bar i:nth-child(3) { background: #6be29a; }
.window-bar span { margin: 0 auto; padding: 2px 14px; border-radius: 8px; background: #111214; color: var(--muted); font: 13px var(--mono); }
.window canvas { display: block; width: 100%; aspect-ratio: 16 / 7; }

/* ---------- sections ---------- */
.section { padding: 88px 0 0; }
.section h2 { margin: 0 0 12px; font-size: clamp(30px, 4.5vw, 42px); }
.section-lede { margin: 0 0 32px; color: var(--muted); max-width: 680px; }
#features h2, #features .section-lede, #add h2 { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(109, 124, 255, 0.5); transform: translateY(-2px); }
.card .icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: rgba(109, 124, 255, 0.14); font-size: 24px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 14px; color: #b9bdc6; font-size: 15px; flex: 1; }
.card > code { align-self: flex-start; font-size: 13px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #c9ccd3; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks b { color: var(--heading); }

/* a catch, the way it looks in Discord */
.discord { display: grid; gap: 16px; }
.message {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: #313338; border: 1px solid #3f4147;
  font: 15px/1.45 "gg sans", "Noto Sans", var(--font); color: #dbdee1;
}
.message .avatar { border-radius: 50%; flex: none; }
.message p { margin: 0 0 3px; }
.message .who { margin-bottom: 4px; }
.message .who b { color: #fff; }
.message .tag { padding: 1px 5px; border-radius: 4px; background: var(--discord); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.message .when { color: #949ba4; font-size: 12px; margin-left: 4px; }
.message .mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
.message .small { font-size: 12.5px; color: #949ba4; }
.message .button { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.stats div { padding: 14px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); text-align: center; }
.stats dt { font-size: 28px; font-weight: 800; line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px auto 0; max-width: 760px; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 70px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); color: #c9ccd3;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 800;
}
.steps b { color: var(--heading); }
.note { max-width: 760px; margin: 18px auto 26px; color: var(--muted); font-size: 15px; text-align: center; }

.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 26px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; color: var(--heading); font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #b9bdc6; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1120px; margin: 96px auto 0;
  padding: 28px 24px max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.footer .brand { font-size: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: var(--muted); }
.footer p { margin: 0 0 0 auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .links { display: none; }
  .nav { gap: 12px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
  main { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .lede { font-size: 17px; }
  .window { margin-top: 36px; border-radius: 14px; }
  .window canvas { aspect-ratio: 4 / 5; }
  .section { padding-top: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .message { padding: 14px; }
  .steps li { padding-left: 62px; }
  .footer p { margin: 0; width: 100%; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .card .icon { grid-row: span 3; width: 40px; height: 40px; margin: 0; font-size: 20px; border-radius: 11px; }
  .card p { margin-bottom: 10px; }
  .card > code { justify-self: start; }
  .actions .btn { width: 100%; justify-content: center; }
  .actions.left { flex-direction: column; align-items: stretch; }
  .actions.left .text-link { text-align: center; }
}
