﻿@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #060911;
  --bg-alt: #090c1c;
  --card: #0d1126;
  --card-2: #0c1024;
  --muted: #8e99c0;
  --text: #e8ecff;
  --accent: #5865F2;
  --accent-2: #7289da;
  --highlight: #7983f5;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

html {
  scroll-padding-top: 24px;
}

body {
  background: radial-gradient(ellipse at 30% 0%, rgba(88, 101, 242, 0.12), transparent 50%), radial-gradient(ellipse at 80% 15%, rgba(114, 137, 218, 0.08), transparent 45%), #060911;
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: clip;
}

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

img {
  display: block;
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 4px 4px;
  opacity: 0.4;
  z-index: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 28px;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
  animation: navbar-appear 0.5s ease both;
}

@keyframes navbar-appear {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar.scrolled {
  background: rgba(6, 9, 17, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled .brand {
  margin-right: auto;
  margin-left: auto;
}

.navbar.scrolled .nav-cta,
.navbar.scrolled .server-pill {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 960px) {
  .navbar.scrolled .brand {
    margin-left: 0;
    margin-right: auto;
  }

  .navbar.scrolled .nav-cta {
    opacity: 1;
    max-width: 200px;
    padding-left: 18px;
    padding-right: 18px;
    margin: initial;
    pointer-events: auto;
  }
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  transition: margin 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand strong {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
  border: 1px solid rgba(88, 101, 242, 0.4);
  overflow: hidden;
  max-width: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.9s ease, max-width 1s cubic-bezier(0.22, 1, 0.36, 1), padding 0.9s ease, margin 0.9s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.45);
  filter: brightness(1.08);
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  max-width: 300px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.9s ease, max-width 1s cubic-bezier(0.22, 1, 0.36, 1), padding 0.9s ease, margin 0.9s ease;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.18);
  position: relative;
}

.server-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.28);
}

.dot,
.status-dot,
.meta-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8aa0c1;
}

.online {
  background: #5ef29c !important;
}

.pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pill-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-value {
  font-weight: 700;
}

.pill-icon {
  font-size: 18px;
  opacity: 0.85;
}

.pill-hint {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 8px;
}

.server-pill.copied .pill-hint {
  opacity: 1;
  transform: translateY(-6px);
}

.hero {
  position: relative;
  min-height: 80vh;
  padding: 120px 28px 100px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: transparent;
  overflow: hidden;
}

.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(520px, 85vw, 1440px);
  height: auto;
  opacity: 0.02;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: blur(1px);
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(120deg, rgba(5, 13, 31, 0.55) 0%, rgba(5, 13, 31, 0.1) 55%, rgba(5, 13, 31, 0.8) 100%); */
  z-index: 0;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 30%, rgba(88, 101, 242, 0.18), transparent 55%), radial-gradient(ellipse at 72% 70%, rgba(114, 137, 218, 0.1), transparent 52%);
  z-index: 1;
}

/* ===== DISCORD WINDOW MOCKUP ===== */

.hero-showcase {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.discord-window {
  background: #313338;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.4);
  max-width: 400px;
  width: 100%;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(88, 101, 242, 0.14),
    0 36px 80px rgba(88, 101, 242, 0.1);
}

.discord-titlebar {
  background: #2b2d31;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 14px 14px 0 0;
}

.discord-dots {
  display: flex;
  gap: 6px;
}

.discord-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.discord-dots span:nth-child(1) { background: #ff5f57; }
.discord-dots span:nth-child(2) { background: #ffbd2e; }
.discord-dots span:nth-child(3) { background: #28c940; }

.discord-channel-name {
  font-size: 13px;
  font-weight: 600;
  color: #e3e5e8;
}

.discord-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dc-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  position: relative;
}

.dc-user-av {
  background: #5865f2;
}

.dc-bot-av {
  background: transparent;
  overflow: visible;
}

.dc-bot-av img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

.dc-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #23a55a;
  border: 2px solid #313338;
  box-shadow: 0 0 6px rgba(35, 165, 90, 0.5);
}

.dc-msg-right {
  flex: 1;
  min-width: 0;
}

.dc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.dc-name {
  font-size: 13px;
  font-weight: 600;
  color: #e3e5e8;
}

.dc-app-tag {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #5865f2;
  padding: 1px 4px 1px 3px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dc-verified {
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.dc-time {
  font-size: 11px;
  color: #87898c;
}

.dc-text {
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.45;
}

.dc-slash {
  color: #c9cdfb;
  font-weight: 600;
}

.dc-embed {
  display: flex;
  margin-top: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #2b2d31;
}

.dc-embed-bar {
  width: 3px;
  background: #5865f2;
  flex-shrink: 0;
}

.dc-embed-inner {
  padding: 10px 12px;
  flex: 1;
}

.dc-embed-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.dc-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dc-line {
  font-size: 12px;
  color: #dbdee1;
  line-height: 1.5;
}

.dc-line strong {
  color: #e3e5e8;
}

.dc-line-gap {
  height: 5px;
}

.dc-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

.dc-ping-dots {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  vertical-align: middle;
}

.dc-ping-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dc-ping-dots span:nth-child(1) { background: #ed4245; }
.dc-ping-dots span:nth-child(2) { background: #faa81a; }
.dc-ping-dots span:nth-child(3) { background: #23a55a; }

/* Dropdown */
.dc-dropdown-wrap {
  position: relative;
  margin-top: 7px;
}

.dc-dropdown {
  width: 100%;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: #87898c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  text-align: left;
}

.dc-dropdown-label {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
  min-height: 16px;
}

.dc-selected-pill {
  background: #4e5058;
  color: #dbdee1;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.dc-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.15s ease;
  font-size: 11px;
}

.dc-dropdown.open .dc-dropdown-arrow {
  transform: rotate(180deg);
}

.dc-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  display: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.dc-dropdown-menu.open {
  display: block;
}

.dc-dropdown-item {
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #dbdee1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.1s;
}

.dc-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dc-item-selected {
  background: rgba(88, 101, 242, 0.15);
}

.dc-item-selected::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5865f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  flex-shrink: 0;
}

.dc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 -14px;
}

.dc-divider--spaced {
  margin: 6px -14px;
}

.dc-wumpus-av {
  background: transparent;
  overflow: visible;
}

.dc-wumpus-av img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

.dc-embed--grey {
  background: #2b2d31;
}

.dc-embed-bar--grey {
  background: #4e5058;
}

.dc-wumpus-name {
  color: #c084fc;
}

.dc-field-inline {
  display: inline-flex;
  margin-right: 16px;
}

@keyframes bot-float {
  0%   { transform: translateY(0px)   rotateX(3deg)  rotateY(-3deg); }
  25%  { transform: translateY(-7px)  rotateX(-1deg) rotateY(3deg);  }
  50%  { transform: translateY(-12px) rotateX(3deg)  rotateY(1deg);  }
  75%  { transform: translateY(-5px)  rotateX(-1deg) rotateY(-3deg); }
  100% { transform: translateY(0px)   rotateX(3deg)  rotateY(-3deg); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-copy--centered {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.hero-copy--centered .hero-subtitle {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy--centered .hero-actions {
  justify-content: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-family: var(--font-title);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  color: #d7e5ff;
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
  font-size: 15px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 30px rgba(88, 101, 242, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.45);
}

.btn.ghost {
  background: rgba(14, 16, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  color: #eaf3ff;
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  filter: brightness(1.08);
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #dce8ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.hero-showcase {
  position: relative;
}

.glass-card {
  background: rgba(8, 18, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.glass-card.compact .card-body {
  padding: 12px;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
}

.value-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
}

.value-list {
  display: grid;
  gap: 10px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dfe7fb;
}

.value-item i {
  font-size: 18px;
  color: var(--accent);
}

.pill.inline {
  width: fit-content;
  margin-top: 4px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.status-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ping {
  font-weight: 700;
  color: var(--accent);
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.55);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 14px 6px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-weight: 800;
  font-size: 18px;
}

.stat-value.accent {
  color: var(--accent);
}

.card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #dfe9ff;
}

.pill.mini {
  font-size: 13px;
}

.floating-pill {
  position: absolute;
  top: -14px;
  right: -10px;
  background: rgba(88, 101, 242, 0.22);
  color: #e9f5ff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, 0.4);
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.24);
}

.floating-pill.secondary {
  top: auto;
  bottom: -16px;
  right: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--muted);
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-family: var(--font-title);
  text-transform: uppercase;
}

.features {
  padding: 90px 28px 70px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100px, var(--bg-alt) 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  /* background: linear-gradient(to right, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent); */
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  --mx: 50%;
  --my: 50%;
  padding: 28px 22px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: #dfe7fb;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx) var(--my),
    rgba(88, 101, 242, 0.13),
    transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 22px rgba(88, 101, 242, 0.08);
}

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

.feature-card.highlight {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.14), rgba(10, 13, 30, 0.95));
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 20px 44px rgba(88, 101, 242, 0.14);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card p {
  color: #c9daf7;
  line-height: 1.5;
}

.icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.07);
  border: 1px solid rgba(88, 101, 242, 0.18);
}

.icon svg {
  overflow: visible;
  width: 40px;
  height: 40px;
}

.icon path,
.icon circle,
.icon rect {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dashoffset: 1;
  transition: stroke 0.3s ease;
}

.feature-card:hover .icon path,
.feature-card:hover .icon circle,
.feature-card:hover .icon rect {
  stroke: var(--highlight);
}

.feature-card.aos-animate .icon path,
.feature-card.aos-animate .icon circle,
.feature-card.aos-animate .icon rect {
  animation: draw-icon 2s ease forwards;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* Bento: wide cards (Auto Role + Reaction Roles) */
.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  text-align: left;
  gap: 6px 22px;
}

.feature-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.09) 0%, var(--card-2) 55%);
  border-color: rgba(88, 101, 242, 0.2);
}

.feature-card:nth-child(1) .icon,
.feature-card:nth-child(4) .icon {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 76px;
  height: 76px;
}

.feature-card:nth-child(1) .icon svg,
.feature-card:nth-child(4) .icon svg {
  width: 48px;
  height: 48px;
}

.feature-card:nth-child(1) h3,
.feature-card:nth-child(4) h3 { grid-column: 2; grid-row: 1; margin-top: 2px; }

.feature-card:nth-child(1) p,
.feature-card:nth-child(4) p { grid-column: 2; grid-row: 2; }

.feature-card:nth-child(1) .command-chip,
.feature-card:nth-child(4) .command-chip { grid-column: 2; grid-row: 3; }

.flow {
  padding: 90px 28px 70px;
  background: linear-gradient(to bottom, var(--bg-alt) 0%, var(--bg) 100px, var(--bg) 100%);
  position: relative;
}

.flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  /* background: linear-gradient(to right, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent); */
}

.flow-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.flow-card {
  --mx: 50%;
  --my: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.flow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx) var(--my),
    rgba(88, 101, 242, 0.11),
    transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.flow-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 22px rgba(88, 101, 242, 0.08);
}

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

.badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.flow-card:hover .badge {
  transform: scale(1.15);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
}

.command-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #dfe7fb;
  font-weight: 700;
  width: fit-content;
}

.faq {
  padding: 90px 28px 90px;
  background: var(--bg-alt);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  /* background: linear-gradient(to right, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent); */
}

.faq-grid {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 38px;
}

.faq-item {
  background: none;
  border: none;
  border-radius: 0;
}

.faq-item:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  width: 60%;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, transparent);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-toggle {
  font-weight: 800;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: #c7d7f2;
  padding: 0 18px;
  line-height: 1.55;
  transition: max-height 0.25s ease, padding 0.2s ease;
}

.faq-item.open .faq-answer {
  padding: 0 18px 16px;
  max-height: 200px;
}

.support-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.support-cta h3 {
  font-size: 22px;
  font-family: var(--font-title);
  margin-top: 6px;
}

.support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 26px 28px 30px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.footer-title {
  font-family: var(--font-title);
  font-size: 17px;
}

.footer-sub {
  color: var(--muted);
  font-size: 14px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

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

.sticky-cta {
  position: fixed;
  top: 75px;
  right: 24px;
  transform: translateY(-12px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 9, 17, 0.96);
  border: 1px solid rgba(88, 101, 242, 0.28);
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: 200ms;
  white-space: nowrap;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding-left: 6px;
}

.sticky-cta .btn {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  width: auto;
}

.modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(9, 12, 28, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  color: #dfe6fb;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body h3 {
  margin: 12px 0 6px;
  font-family: var(--font-title);
}

.modal-body p,
.modal-body li {
  color: #c7d7f2;
  line-height: 1.6;
}

.modal-body ul {
  padding-left: 18px;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px 6px;
}

.free-section {
  padding: 90px 28px 70px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100px, var(--bg-alt) 100%);
  position: relative;
}

.free-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  /* background: linear-gradient(to right, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent); */
}

.free-section-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.6;
  font-size: 15px;
  text-align: center;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.free-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.free-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.free-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.free-icon svg {
  overflow: visible;
  width: 100%;
  height: 100%;
}

.free-icon path,
.free-icon circle {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dashoffset: 1;
}

.free-card.aos-animate .free-icon path,
.free-card.aos-animate .free-icon circle {
  animation: draw-icon 2s ease forwards;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

@keyframes draw-icon {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.free-card h3 {
  font-family: var(--font-title);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.free-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 960px) {
  .sticky-cta {
    display: none;
  }

  .server-pill {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    align-items: center;
  }

  .hero-subtitle,
  .hero-meta,
  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-showcase {
    justify-content: center;
  }

  .discord-window {
    max-width: 360px;
  }

  .glass-card {
    margin-top: 10px;
  }

  .support-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .features::before,
  .flow::before,
  .free-section::before,
  .faq::before,
  .faq-item:not(:last-child)::after {
    width: 80%;
  }

  .brand-text strong {
    display: none;
  }

  .brand-eyebrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .hero {
    padding: 100px 18px 70px;
  }

  .btn {
    width: 100%;
  }

  .support-actions {
    width: 100%;
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-card:nth-child(1) .icon,
  .feature-card:nth-child(4) .icon {
    grid-column: auto;
    grid-row: auto;
    width: 60px;
    height: 60px;
    align-self: auto;
  }

  .feature-card:nth-child(1) .icon svg,
  .feature-card:nth-child(4) .icon svg {
    width: 40px;
    height: 40px;
  }

  .feature-card:nth-child(1) h3,
  .feature-card:nth-child(1) p,
  .feature-card:nth-child(1) .command-chip,
  .feature-card:nth-child(4) h3,
  .feature-card:nth-child(4) p,
  .feature-card:nth-child(4) .command-chip {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ================================
   INVITE CTA SECTION
   ================================ */

.invite-cta {
  padding: 90px 28px 100px;
  position: relative;
  overflow: hidden;
}

.invite-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.1) 70%, transparent);
}

.invite-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18) 0%, rgba(88, 101, 242, 0.08) 50%, rgba(10, 13, 30, 0.7) 100%);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 28px;
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(88, 101, 242, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.invite-cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.15), transparent 70%);
  pointer-events: none;
}

.invite-cta-text {
  position: relative;
  z-index: 1;
}

.invite-cta-heading {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}

.invite-cta-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

.invite-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.invite-cta-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: visible;
}

@media (max-width: 860px) {
  .invite-cta-inner {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    gap: 36px;
    text-align: center;
  }

  .invite-cta-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .invite-cta-actions {
    justify-content: center;
  }

  .invite-cta-art {
    order: -1;
  }

  .invite-svg {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .invite-cta {
    padding: 60px 16px 70px;
  }

  .invite-cta-inner {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .invite-cta-heading {
    font-size: 1.75rem;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 16, 26, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, box-shadow 0.2s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(88, 101, 242, 0.7);
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.25);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.back-to-top svg path {
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.back-to-top.visible svg path {
  animation: draw-icon 0.5s 0.15s ease forwards;
}

/* ===== SITE NAV (shared across main + docs) ===== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(5px) saturate(10%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.site-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav-link:hover {
  color: var(--text);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  overflow: visible;
}

.nav-icon path {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* Home icon — roof then walls */
.home-icon path:nth-child(1) { animation: draw-icon 0.5s 0.1s ease forwards; }
.home-icon path:nth-child(2) { animation: draw-icon 0.7s 0.4s ease forwards; }

/* Docs icon — outline, fold, then lines */
.docs-icon path:nth-child(1) { animation: draw-icon 0.9s 0.1s ease forwards; }
.docs-icon path:nth-child(2) { animation: draw-icon 0.4s 0.5s ease forwards; }
.docs-icon path:nth-child(3) { animation: draw-icon 0.35s 0.7s ease forwards; }
.docs-icon path:nth-child(4) { animation: draw-icon 0.35s 0.85s ease forwards; }
.docs-icon path:nth-child(5) { animation: draw-icon 0.35s 1.0s ease forwards; }

/* ===== COMMAND PREVIEW SECTION ===== */

.cmd-section {
  padding: 90px 28px 100px;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}

.cmd-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 48px auto 0;
  align-items: start;
}

.cmd-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-tab {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cmd-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cmd-tab.active {
  background: rgba(88, 101, 242, 0.025);
  border-color: rgba(88, 101, 242, 0.1);
}

.cmd-tab-bar {
  width: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.cmd-tab-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--accent);
  border-radius: 99px;
}

@keyframes fill-progress {
  from { height: 0% }
  to   { height: 100% }
}

.cmd-tab.active .cmd-tab-fill {
  animation: fill-progress 7.5s linear forwards;
}

.cmd-tab-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-tab-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cmd-tab code {
  font-size: 13px;
  font-weight: 700;
  color: #c9cdfb;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-body);
}

.cmd-tab.active code {
  color: #a5b4fc;
}

.cmd-tab span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.cmd-preview {
  perspective: 1000px;
}

.cmd-preview .discord-window {
  max-width: 100%;
  width: 100%;
}

#cmdBody {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(0);
  min-height: 336px;
}

@media (max-width: 480px) {
  #cmdBody {
    min-height: 380px;
  }
}

#cmdBody.cmd-fade {
  opacity: 0;
  transform: translateY(10px);
}

.dc-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-left: 2px solid #4e5058;
  padding: 5px 10px;
  margin: 6px 0;
  font-size: 12px;
  color: #b5bac1;
  line-height: 1.45;
}

.dc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: #4e5058;
  border-radius: 4px;
  font-size: 12px;
  color: #dbdee1;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dc-link-btn:hover {
  background: #6d6f78;
  transform: translateY(-1px);
}

.dc-ext-icon {
  font-size: 11px;
  color: #87898c;
}

.dc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dc-chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: #dbdee1;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dc-chip:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dc-chip.dc-chip-on {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.55);
  color: #c9cdfb;
}

.dc-chip.dc-chip-on:hover {
  background: rgba(88, 101, 242, 0.3);
}

@media (max-width: 960px) {
  .cmd-layout {
    grid-template-columns: 1fr;
  }

  .cmd-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
  }

  .cmd-tab {
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cmd-tab-bar {
    display: none;
  }

  .cmd-tab-text {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .cmd-tab span {
    display: none;
  }
}

/* ===== DOCS PAGE LAYOUT ===== */

.doc-page {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  min-height: 100vh;
  background: var(--bg);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: calc(100vh - 64px);
}

.doc-sidebar {
  padding: 36px 24px 36px 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-section {
  margin-bottom: 28px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}

.sidebar-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 10px;
}

.sidebar-link {
  display: block;
  padding: 6px 10px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: var(--text);
  background: rgba(88, 101, 242, 0.12);
}

.doc-content {
  padding: 44px 0 60px 48px;
  max-width: 720px;
}

.doc-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.doc-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.doc-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.doc-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.doc-body p {
  line-height: 1.75;
  color: rgba(232, 236, 255, 0.82);
  margin-bottom: 16px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 16px 24px;
  line-height: 1.75;
  color: rgba(232, 236, 255, 0.82);
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: rgba(88, 101, 242, 0.1);
  color: var(--highlight);
  padding: 1px 6px;
  border-radius: 4px;
}

.doc-body pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.doc-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.875rem;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.doc-body th {
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.doc-body td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 255, 0.82);
}

.doc-body a {
  color: var(--highlight);
  text-decoration: underline;
  text-decoration-color: rgba(121, 131, 245, 0.3);
}

.doc-body a:hover {
  text-decoration-color: var(--highlight);
}

.doc-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 0 0 20px;
  background: rgba(88, 101, 242, 0.06);
  border-radius: 0 6px 6px 0;
  color: rgba(232, 236, 255, 0.7);
}

.doc-body blockquote strong {
  color: var(--text);
}

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

.doc-index-page .doc-index-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.doc-index-header {
  margin-bottom: 48px;
}

.doc-index-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.doc-index-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

.doc-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.doc-index-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-index-card:hover {
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.doc-index-card h2 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.doc-index-link {
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.15s ease;
}

.doc-index-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.doc-index-link-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.doc-index-link-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

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

.doc-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}

.doc-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
  }

  .doc-content {
    padding: 32px 0;
  }

  .doc-index-grid {
    grid-template-columns: 1fr;
  }
}
