:root {
  --bg: #0f1117;
  --bg-elevated: #161b22;
  --bg-card: #1a1f2e;
  --border: #2a3142;
  --text: #e8eaed;
  --text-muted: #9aa3b2;
  --accent: #5865f2;
  --ember: #f97316;
  --ember-soft: #fb923c;
  --link: #a5b4fc;
  --focus: #818cf8;
  --radius: 12px;
  --max: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88, 101, 242, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(249, 115, 22, 0.08), transparent),
    var(--bg);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ember-soft);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 2.5rem 0 4rem;
}

.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.hero img:not(.hero-banner) {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.25);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lead {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4752c4);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--link);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 1rem 0;
}

.card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--ember-soft);
}

.card p,
.card ol,
.card ul {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.card ol,
.card ul {
  padding-left: 1.25rem;
}

.card li + li {
  margin-top: 0.35rem;
}

.card :last-child {
  margin-bottom: 0;
}

.legal h1 {
  margin-bottom: 0.35rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--ember-soft);
}

.legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal p,
.legal ul,
.legal ol {
  color: var(--text-muted);
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--link);
}

@media (max-width: 520px) {
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -- Install / Setup extras -- */

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  border-color: transparent;
  min-width: 12rem;
}

.btn-discord:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

.btn-disabled:hover,
.btn[aria-disabled="true"]:hover {
  filter: none;
  color: #fff;
}

.hero-compact {
  padding-bottom: 1rem;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text);
}

.callout-warn {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.35);
}

.callout-info {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.35);
}

.invite-url-box .invite-url-text {
  word-break: break-all;
  font-size: 0.85rem;
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.checklist > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.checklist > li:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.checklist p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.check-mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), #4752c4);
  color: #fff;
}

.muted {
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.fineprint {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}


.hero-banner {
  display: block;
  width: min(100%, 640px);
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.28), 0 4px 16px rgba(249, 115, 22, 0.12);
  border: 1px solid var(--border);
  object-fit: cover;
}
