:root {
  --bg: #070912;
  --bg-2: #0b1020;

  --card: rgba(255, 255, 255, 0.07);
  --card-hover: rgba(255, 255, 255, 0.105);
  --card-border: rgba(255, 255, 255, 0.12);

  --text: #f5f7ff;
  --muted: #aab2d5;

  --primary: #6c63ff;
  --primary-2: #00d4ff;
  --danger: #ff4d6d;
  --warning: #ffc107;

  --radius: 22px;
  --card-padding: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  margin: 18px 0;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
}

/* ===========================
   BACKGROUND
=========================== */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.25), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.22), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  opacity: .35;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
}

.glow-one {
  top: 10%;
  left: -120px;
  background: var(--primary);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

.glow-two {
  right: -140px;
  bottom: 10%;
  background: var(--primary-2);
  animation: glowPulse 9s ease-in-out infinite alternate-reverse;
}

.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 220px;
  border-radius: 50%;
  opacity: 0.18;
}

.wave-one {
  top: 420px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: waveMove 11s ease-in-out infinite alternate;
}

.wave-two {
  top: 500px;
  background: linear-gradient(90deg, transparent, var(--primary-2), transparent);
  animation: waveMoveReverse 14s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 212, 255, .9);
  box-shadow: 0 0 30px rgba(0, 212, 255, .9);
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-one {
  top: 22%;
  left: 16%;
}

.orb-two {
  top: 58%;
  left: 82%;
  animation-delay: -4s;
}

.orb-three {
  top: 78%;
  left: 28%;
  animation-delay: -8s;
}

/* ===========================
   GLOBAL STRUCTURE
=========================== */

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.container {
  max-width: 850px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* ===========================
   GRIDS
=========================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.stats {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.commands-stack,
.docs-main,
.docs-left,
.docs-right {
  display: grid;
  gap: 24px;
}

.grid > .animate,
.grid-2 > .animate,
.stats > .animate {
  display: flex;
  min-width: 0;
}

.grid > .animate > .card,
.grid-2 > .animate > .card,
.stats > .animate > .card {
  width: 100%;
  height: 100%;
}

.grid > .card,
.grid-2 > .card,
.stats > .card {
  height: 100%;
}

/* ===========================
   CARDS
=========================== */

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: var(--card-padding);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at 20% 0%, rgba(108, 99, 255, 0.12), transparent 40%),
    var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  translate: 0 0;
  scale: 1;
  transition:
    translate .45s cubic-bezier(.22,1,.36,1),
    scale .45s cubic-bezier(.22,1,.36,1),
    box-shadow .45s cubic-bezier(.22,1,.36,1),
    border-color .45s cubic-bezier(.22,1,.36,1),
    background .45s cubic-bezier(.22,1,.36,1);
  will-change: translate, scale;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--card-x, 50%) var(--card-y, 0%),
    rgba(0, 212, 255, .16),
    transparent 42%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card:hover {
  translate: 0 -6px;
  scale: 1.006;
  border-color: rgba(0, 212, 255, 0.42);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.13), transparent 42%),
    var(--card-hover);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, .24),
    0 8px 22px rgba(0, 212, 255, .08);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.footer-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(108, 99, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.12), transparent 42%),
    rgba(4, 7, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.09);
}

.footer-dark:hover {
  background:
    radial-gradient(circle at 15% 0%, rgba(108, 99, 255, 0.18), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.14), transparent 42%),
    rgba(4, 7, 16, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 45px rgba(0,0,0,.35),
    0 8px 22px rgba(0,212,255,.06);
}

.card-kicker,
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(108, 99, 255, 0.45);
  background: rgba(108, 99, 255, 0.12);
  color: #d8d5ff;
  font-size: 13px;
  font-weight: 800;
}

.card-kicker {
  margin-bottom: 16px;
}

.badge {
  font-weight: 700;
}

.card-title {
  margin: 0 0 10px;
}

.card-text {
  margin: 0;
}

.card-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(108, 99, 255, 0.28);
  transform: translateY(0);
  transition:
    transform 0.25s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.25s cubic-bezier(.2, .8, .2, 1),
    filter 0.25s cubic-bezier(.2, .8, .2, 1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 212, 255, 0.32);
  filter: brightness(1.08);
}

.btn-small {
  padding: 10px 15px;
  font-size: 14px;
}

.btn-ghost,
.login-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-border);
  box-shadow: none;
}

/* ===========================
   NAVBAR
=========================== */

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 18px;
  z-index: 20;
  animation: navDrop 0.7s ease both;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  display: flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.lang-pill a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lang-pill a.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.lang-switch {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.lang-switch:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.soon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.soon-link span {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: #d8d5ff;
  background: rgba(108,99,255,.18);
  border: 1px solid rgba(108,99,255,.35);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: white;
  font-size: 22px;
  transition:
    transform .24s cubic-bezier(.22,1,.36,1),
    background .24s ease,
    border-color .24s ease;
}

.mobile-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.095);
  border-color: rgba(0,212,255,.28);
}

.mobile-toggle.is-open {
  background: rgba(0,212,255,.12);
  border-color: rgba(0,212,255,.35);
  transform: rotate(90deg);
}

.mobile-only,
.login-btn,
.user-menu,
.mobile-login-link {
  display: none !important;
}

/* ===========================
   HERO
=========================== */

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto 40px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.hero-content {
  animation: fadeUp 0.9s ease both;
}

.hero-content p {
  font-size: 19px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-card {
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(0, 212, 255, 0.45));
  animation: floatIn 1.1s ease both, floating 5s ease-in-out infinite;
  transition:
    transform 0.28s cubic-bezier(.2, .8, .2, 1),
    filter 0.28s cubic-bezier(.2, .8, .2, 1);
}

.hero-card:hover {
  transform: translateY(-10px) scale(1.015);
  filter: brightness(1.08);
}

.discord-window {
  border-radius: 30px;
  background: rgba(9, 13, 26, 0.92);
  border: 1px solid var(--card-border);
  padding: 20px;
  min-height: 420px;
  backdrop-filter: blur(20px);
}

.discord-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.discord-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.discord-message {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  margin-bottom: 16px;
  transform: translateX(0);
  transition:
    transform 0.25s cubic-bezier(.2, .8, .2, 1),
    background 0.25s ease,
    border-color 0.25s ease;
}

.discord-message:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(0, 212, 255, 0.35);
}

.discord-message strong {
  color: white;
}

.discord-message p {
  margin-bottom: 0;
}

.discord-message.accent {
  background: rgba(108, 99, 255, 0.16);
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-head span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,212,255,.12);
  color: #bdf4ff;
  border: 1px solid rgba(0,212,255,.25);
  font-size: 11px;
  font-weight: 800;
}

.message-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.message-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 12px;
}

/* ===========================
   STATS
=========================== */

.stats .card strong {
  display: block;
  font-size: 34px;
}

.stats .card span {
  color: white;
  font-weight: 700;
}

.stats .card p {
  margin-bottom: 0;
}

/* ===========================
   COMMANDS
=========================== */

.commands-search-card {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.commands-search-content {
  min-width: 0;
}

.commands-search-zone {
  display: grid;
  gap: 14px;
}

.commands-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.commands-search-icon {
  position: absolute;
  left: 18px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.commands-search {
  width: 100%;
  padding: 16px 48px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
  font: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.commands-search::placeholder {
  color: var(--muted);
}

.commands-search:focus {
  border-color: rgba(0, 212, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.commands-search-clear {
  position: absolute;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.commands-search-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  transform: scale(1.04);
}

.commands-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.commands-filter {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.commands-filter:hover {
  transform: translateY(-2px);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.commands-filter.active {
  color: white;
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.12);
}

.command-category {
  display: grid;
  gap: 18px;
}

.command-category[hidden],
.command-item[hidden],
.no-commands-result[hidden] {
  display: none !important;
}

.command-category-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.command-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.command-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(0);
  transition:
    transform 0.25s cubic-bezier(.2, .8, .2, 1),
    background 0.25s ease,
    border-color 0.25s ease;
}

.command-item:hover {
  transform: translateX(8px);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(255, 255, 255, 0.085);
}

.command-item code {
  display: inline-flex;
  margin-bottom: 7px;
  color: #d8d5ff;
  font-size: 16px;
  font-weight: 900;
}

.command-item p {
  margin: 0;
}

.command-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.command-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: #d8d5ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.command-count {
  color: var(--muted);
  font-size: 14px;
}

.no-commands-result {
  margin-top: 22px;
}

.no-commands-result .btn {
  margin-top: 18px;
}

/* ===========================
   DOCS
=========================== */

.docs-layout {
  width: min(1380px, calc(100% - 32px));
  margin: 70px auto 120px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.docs-left,
.docs-right {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow: visible;
}

.docs-left *,
.docs-right * {
  max-width: 100%;
}

.docs-menu {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.docs-menu-group h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-menu-group a,
.docs-toc-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.docs-menu-group a:hover,
.docs-menu-group a.active,
.docs-toc-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(4px);
}

.docs-page-card h1 {
  font-size: clamp(38px, 6vw, 74px);
}

.docs-page-card p {
  max-width: 760px;
  font-size: 18px;
}

.docs-section {
  scroll-margin-top: 120px;
}

.docs-section h2 {
  margin-bottom: 18px;
}

.docs-block {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.045);
  margin-top: 14px;
}

.docs-block strong {
  color: white;
}

.docs-block ul,
.docs-block ol {
  color: var(--muted);
  line-height: 1.9;
  padding-left: 22px;
}

.docs-block pre {
  padding: 16px;
  border-radius: 16px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-block code {
  color: #d8d5ff;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 14px;
}

.docs-block.info {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

.docs-block.warning {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.08);
}

.docs-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.docs-prev-next .right {
  text-align: right;
}

.docs-prev-next span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.docs-prev-next strong {
  color: white;
}

/* ===========================
   LEGAL / DASHBOARD
=========================== */

.legal-card {
  margin-top: 28px;
}

.legal-card ul {
  color: var(--muted);
  line-height: 1.9;
}

.dashboard-actions {
  margin-top: 18px;
}

/* ===========================
   FOOTER
=========================== */

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto 30px;
  color: var(--muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1.15fr;
  gap: 28px;
}

.footer-logo {
  width: fit-content;
  margin-bottom: 18px;
}

.footer-group,
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-group a {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.footer-group a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
}

.footer-lang {
  width: fit-content;
}

/* ===========================
   ANIMATIONS
=========================== */

.animate {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1),
    filter .75s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0ms);
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floating {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waveMove {
  from {
    transform: translateX(-80px) rotate(-4deg);
  }

  to {
    transform: translateX(80px) rotate(-2deg);
  }
}

@keyframes waveMoveReverse {
  from {
    transform: translateX(80px) rotate(4deg);
  }

  to {
    transform: translateX(-80px) rotate(2deg);
  }
}

@keyframes glowPulse {
  from {
    transform: scale(1);
    opacity: 0.35;
  }

  to {
    transform: scale(1.25);
    opacity: 0.6;
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
    opacity: .45;
  }

  50% {
    transform: translate3d(40px,-45px,0) scale(1.35);
    opacity: 1;
  }
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 260px 1fr;
  }

  .docs-right {
    display: none;
  }
}

@media (max-width: 900px) {
  .navbar {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
    top: 10px;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }

  .invite-desktop {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  .mobile-only {
    display: block;
  }

  .nav-links {
    order: 4;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transform: translateY(-14px) scale(.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
      max-height .48s cubic-bezier(.22,1,.36,1),
      opacity .32s ease,
      transform .42s cubic-bezier(.22,1,.36,1),
      padding .32s ease;
  }

  .nav-links.mobile-open {
    max-height: 620px;
    opacity: 1;
    padding: 16px 0 4px;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links a {
    position: relative;
    padding: 14px 16px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 0% 0%, rgba(108,99,255,.12), transparent 45%),
      rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity .34s ease,
      transform .34s cubic-bezier(.22,1,.36,1),
      background .22s ease,
      border-color .22s ease,
      color .22s ease;
  }

  .nav-links.mobile-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.mobile-open a:nth-child(1) { transition-delay: .03s; }
  .nav-links.mobile-open a:nth-child(2) { transition-delay: .06s; }
  .nav-links.mobile-open a:nth-child(3) { transition-delay: .09s; }
  .nav-links.mobile-open a:nth-child(4) { transition-delay: .12s; }
  .nav-links.mobile-open a:nth-child(5) { transition-delay: .15s; }
  .nav-links.mobile-open a:nth-child(6) { transition-delay: .18s; }
  .nav-links.mobile-open a:nth-child(7) { transition-delay: .21s; }

  .nav-links a:hover,
  .nav-links a.active {
    color: white;
    background:
      radial-gradient(circle at 0% 0%, rgba(0,212,255,.16), transparent 45%),
      rgba(255,255,255,.08);
    border-color: rgba(0,212,255,.22);
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .grid,
  .grid-2,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .commands-search-card {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .docs-left {
    position: relative;
    top: 0;
    max-height: none;
  }

  .docs-menu {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  h2 {
    font-size: clamp(26px, 9vw, 38px);
  }

  .section {
    margin: 80px auto;
  }

  .hero {
    min-height: auto;
  }

  .grid,
  .grid-2,
  .stats,
  .docs-menu,
  .docs-prev-next {
    grid-template-columns: 1fr;
  }

  .docs-prev-next .right {
    text-align: left;
  }

  .command-item-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-pill {
    white-space: normal;
  }
}

/* ===========================
   ACCESSIBILITY
=========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}

.account-trigger img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
}

.account-trigger span {
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.account-trigger b {
  color: var(--muted);
  transition: transform .2s ease;
}

.account-menu:hover .account-trigger b {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: rgba(8,12,24,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 80;
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.account-dropdown a:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.server-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 900;
}

.server-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-line > div {
  min-width: 0;
}

.server-line h3 {
  margin: 0 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.server-line p {
  margin: 0;
}

@media (max-width: 900px) {
  .account-menu {
    display: none;
  }
}