:root {
  color-scheme: dark;
  --bg: #0f1117;
  --panel: #171a23;
  --panel-2: #1f2430;
  --text: #f4f6fb;
  --muted: #a9b0c3;
  --line: #303747;
  --brand: #7c5cff;
  --brand-2: #35c2ff;
  --green: #55d68b;
  --yellow: #ffd166;
  --red: #ff647c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(53, 194, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 17, 23, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 56px 0 72px;
}

.page-hero {
  padding: 82px 0 44px;
}

.page-hero.compact {
  padding-bottom: 30px;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.quick-links a:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.7);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lede {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--text);
  color: #11131a;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.discord-preview,
.feature-grid article,
.feature-card,
.command-grid article,
.setup-grid article,
.command-category,
.log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.discord-preview {
  padding: 18px;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(85, 214, 139, 0.1);
}

.message {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.message p {
  margin: 3px 0 0;
  color: var(--muted);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  font-weight: 900;
}

.card-message {
  display: block;
}

.embed {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #11141d;
}

.embed-line {
  width: 4px;
  border-radius: 99px;
  background: var(--yellow);
}

.command-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
}

.command-row span,
code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: 7px;
  background: rgba(124, 92, 255, 0.12);
  color: #dcd5ff;
  font: 0.88rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.starter-section,
.example-section {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  margin-bottom: 80px;
}

.starter-section h2,
.example-section h2 {
  max-width: 10ch;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.starter-grid {
  display: grid;
  gap: 12px;
}

.starter-grid a,
.guide-strip,
.example-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.starter-grid a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.starter-grid a:hover {
  border-color: rgba(124, 92, 255, 0.7);
}

.starter-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #11131a;
  font-weight: 900;
}

.starter-grid strong {
  display: block;
  margin-bottom: 4px;
}

.starter-grid p {
  margin: 0;
  color: var(--muted);
}

.guide-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 0 26px;
  background: var(--line);
}

.guide-strip div {
  padding: 18px;
  background: rgba(23, 26, 35, 0.96);
}

.guide-strip strong {
  display: block;
  margin-bottom: 6px;
}

.guide-strip span,
.guide-strip a {
  color: var(--muted);
}

.guide-strip a {
  text-decoration: underline;
  text-decoration-color: rgba(124, 92, 255, 0.7);
  text-underline-offset: 3px;
}

.example-list {
  padding: 10px 18px;
}

.example-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.example-list div:last-child {
  border-bottom: 0;
}

.example-list span {
  color: var(--muted);
}

.metrics div {
  min-height: 118px;
  padding: 24px;
  background: rgba(23, 26, 35, 0.92);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.feature-grid,
.command-grid,
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.command-grid article,
.setup-grid article {
  min-height: 210px;
  padding: 24px;
}

.feature-grid p,
.command-grid p,
.setup-grid p,
.feature-card p,
.split-section p {
  color: var(--muted);
}

.feature-card {
  display: block;
  min-height: 210px;
  padding: 24px;
}

.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.7);
  transform: translateY(-2px);
}

.icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.shield {
  clip-path: polygon(50% 0, 88% 14%, 80% 74%, 50% 100%, 20% 74%, 12% 14%);
}

.coin {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #f39f5a);
}

.pulse {
  background: linear-gradient(135deg, var(--green), var(--brand-2));
}

.chat {
  border-radius: 8px 8px 8px 2px;
}

.music {
  border-radius: 50% 50% 8px 50%;
  background: linear-gradient(135deg, #ff70a6, var(--brand));
}

.ticket {
  background: linear-gradient(135deg, var(--red), var(--yellow));
}

.command-grid article {
  min-height: 170px;
  padding: 22px;
}

.command-category {
  margin-bottom: 18px;
  padding: 26px;
  scroll-margin-top: 96px;
}

.command-category h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.command-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.command-list div {
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.command-list dt {
  color: #dcd5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.command-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 88px 0;
}

.log-panel {
  padding: 16px;
}

.log-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.log-panel div:last-child {
  border-bottom: 0;
}

.log-panel span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.log-panel strong {
  color: var(--green);
}

.setup-grid article span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #11131a;
  font-weight: 900;
}

.page-cards {
  padding: 20px 0 88px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .starter-section,
  .example-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    max-width: 9ch;
  }

  .metrics,
  .feature-grid,
  .command-grid,
  .setup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .metrics,
  .feature-grid,
  .command-grid,
  .setup-grid,
  .guide-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .command-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .command-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .example-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  footer {
    flex-direction: column;
  }
}
