:root {
  color-scheme: dark;
  --bg: #030407;
  --bg-soft: #070911;
  --panel: rgba(13, 15, 24, 0.78);
  --panel-strong: rgba(19, 22, 34, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(142, 170, 255, 0.38);
  --text: #f5f7fb;
  --muted: #9aa2b6;
  --faint: #666f87;
  --accent: #83a3ff;
  --accent-hot: #f28bb7;
  --accent-green: #61dca3;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(131, 163, 255, 0.34);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(134, 160, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 12% 36%, rgba(73, 119, 255, 0.12), transparent 21rem),
    radial-gradient(circle at 90% 58%, rgba(242, 139, 183, 0.1), transparent 23rem),
    linear-gradient(180deg, #05060a 0%, #020306 42%, #030407 100%);
}

.ambient,
.noise,
.grid-fade,
.stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.ambient {
  filter: blur(70px);
  opacity: 0.48;
  transform: translateZ(0);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

.ambient-one {
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 111, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.08), transparent 16rem);
}

.ambient-two {
  background:
    radial-gradient(circle at 72% 70%, rgba(238, 92, 143, 0.12), transparent 18rem),
    radial-gradient(circle at 40% 80%, rgba(97, 220, 163, 0.08), transparent 16rem);
}

.noise {
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.grid-fade {
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(131, 163, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 12%, black, transparent 68%);
}

.stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  transform: rotate(45deg);
  opacity: 0.6;
  box-shadow: 0 0 18px rgba(131, 163, 255, 0.42);
  animation: pulse-star 4s ease-in-out infinite;
}

.stars span:nth-child(1) { left: 7%; top: 14%; }
.stars span:nth-child(2) { left: 20%; top: 29%; animation-delay: 0.6s; }
.stars span:nth-child(3) { left: 31%; top: 17%; animation-delay: 1.4s; }
.stars span:nth-child(4) { left: 46%; top: 35%; animation-delay: 0.9s; }
.stars span:nth-child(5) { left: 59%; top: 19%; animation-delay: 1.9s; }
.stars span:nth-child(6) { left: 73%; top: 42%; animation-delay: 0.3s; }
.stars span:nth-child(7) { left: 88%; top: 15%; animation-delay: 1.2s; }
.stars span:nth-child(8) { left: 94%; top: 61%; animation-delay: 2.1s; }
.stars span:nth-child(9) { left: 16%; top: 78%; animation-delay: 0.5s; }
.stars span:nth-child(10) { left: 36%; top: 67%; animation-delay: 1.8s; }
.stars span:nth-child(11) { left: 63%; top: 84%; animation-delay: 0.8s; }
.stars span:nth-child(12) { left: 82%; top: 76%; animation-delay: 1.6s; }
.stars span:nth-child(13) { left: 52%; top: 9%; animation-delay: 2.5s; }
.stars span:nth-child(14) { left: 11%; top: 51%; animation-delay: 1.1s; }
.stars span:nth-child(15) { left: 71%; top: 10%; animation-delay: 2.8s; }

@keyframes pulse-star {
  0%, 100% {
    opacity: 0.28;
    transform: rotate(45deg) scale(0.84);
  }
  50% {
    opacity: 0.84;
    transform: rotate(45deg) scale(1.18);
  }
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes liquid-shine {
  from {
    transform: translateX(-130%) skewX(-18deg);
  }
  to {
    transform: translateX(130%) skewX(-18deg);
  }
}

@keyframes soft-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes progress-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

@keyframes menu-drop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(3, 4, 7, 0.88), rgba(3, 4, 7, 0.58) 70%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #1d2438;
  box-shadow: 0 0 24px rgba(131, 163, 255, 0.3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a,
.ghost-link,
.mobile-menu a {
  color: #a4adc2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.ghost-link:hover,
.mobile-menu a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta,
.primary-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.35);
  transition:
    transform 250ms cubic-bezier(0.1, 0.4, 0.2, 1),
    border-color 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease,
    filter 250ms ease;
}

.nav-cta::before,
.primary-button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 42%, rgba(131, 163, 255, 0.13)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 2px 2px 0.5px -2px rgba(255, 255, 255, 0.9),
    inset -2px -2px 0.5px -2px rgba(255, 255, 255, 0.5),
    inset 0 0 14px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 255, 255, 0.08);
}

.nav-cta::after,
.primary-button::after,
.secondary-button::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -40%;
  z-index: -1;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
  transform: translateX(-130%) skewX(-18deg);
}

.nav-cta {
  min-height: 36px;
  padding: 0 20px;
  border-color: rgba(131, 163, 255, 0.24);
  background: rgba(131, 163, 255, 0.1);
  color: #c9d5ff;
}

.primary-button {
  padding: 0 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 36px rgba(0, 0, 0, 0.32);
}

.secondary-button {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7cede;
}

.nav-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(131, 163, 255, 0.44);
  box-shadow: 0 6px 22px rgba(131, 163, 255, 0.12);
  filter: brightness(1.08);
}

.nav-cta:hover::after,
.primary-button:hover::after,
.secondary-button:hover::after {
  opacity: 1;
  animation: liquid-shine 350ms ease-out;
}

.nav-cta:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.93);
}

.primary-button svg,
.secondary-button svg,
.eyebrow svg,
.menu-button svg {
  width: 17px;
  height: 17px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  z-index: 19;
  top: 76px;
  left: 24px;
  right: 24px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 17, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-menu.open {
  display: grid;
  animation: menu-drop 180ms ease-out both;
}

.mobile-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.section-pad {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.hero {
  display: grid;
  width: min(1360px, calc(100% - 128px));
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  padding-top: 116px;
  padding-bottom: 58px;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #aebdff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.compact {
  min-height: 28px;
  margin-bottom: 18px;
  color: #c3ccff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  display: block;
  margin-top: 46px;
  padding-bottom: 0.08em;
  font-size: clamp(3.8rem, 6.5vw, 6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff 4%, #dce2f7 47%, #7d8499 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 80px rgba(131, 163, 255, 0.2);
}

.tagline {
  margin-top: 28px;
  color: #d6dbe7;
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
}

.tagline::after {
  content: "";
  display: inline-block;
  width: 88px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(131, 163, 255, 0.8), transparent);
}

.hero-description {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-visual {
  min-width: 0;
  text-align: left;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  --preview-tilt-y: -20deg;
  --preview-shear: -6deg;
  --preview-scale: 0.98;
  --preview-offset-x: 0px;
  --preview-offset-y: 10px;
}

.desktop-frame {
  overflow: hidden;
  border: 1px solid rgba(184, 198, 235, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 28, 43, 0.9), rgba(10, 12, 20, 0.94));
  box-shadow:
    1px 1px 0 #30374a,
    2px 2px 0 #242a3a,
    3px 3px 0 #1b2030,
    4px 4px 0 #111624,
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26),
    0 84px 50px rgba(0, 0, 0, 0.15),
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform:
    translate3d(var(--preview-offset-x), var(--preview-offset-y), 0)
    skewX(var(--preview-shear))
    rotateY(var(--preview-tilt-y))
    scale(var(--preview-scale));
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.window-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.58);
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff6b81;
}

.window-topbar span:nth-child(2) {
  background: #ffd166;
}

.window-topbar span:nth-child(3) {
  background: #61dca3;
}

.window-topbar p {
  margin-left: 8px;
  color: #8e96aa;
  font-size: 0.76rem;
  font-weight: 800;
}

/* ── Discord Settings Mockup ────────────────────────────────────────────── */
.discord-settings {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
}

/* Sidebar */
.ds-sidebar {
  padding: 14px 8px 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 10, 0.64);
  overflow-y: auto;
  scrollbar-width: none;
}

.ds-sidebar::-webkit-scrollbar { display: none; }

.ds-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #a0a8bc;
  font-size: 0.74rem;
  font-weight: 700;
}

.ds-search svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ds-group {
  margin-bottom: 4px;
}

.ds-section-label {
  padding: 10px 10px 4px;
  color: #8a93a8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ds-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  color: #9aa2b6;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: default;
  transition: background 200ms ease, color 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ds-nitro-icon,
.ds-boost-icon {
  color: inherit;
}

.ds-item.ds-muted {
  color: #8b93a8;
}

.ds-item.ds-active {
  background: rgba(131, 163, 255, 0.18);
  color: #dce6ff;
}

/* animated cursor that cycles through moggcord sidebar items */
.ds-item.ds-nav-cursor {
  background: rgba(255, 255, 255, 0.07);
  color: #b8c0d4;
}

/* Main Content */
.ds-content {
  min-width: 0;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 80% 10%, rgba(131, 163, 255, 0.1), transparent 16rem),
    rgba(11, 13, 22, 0.6);
  overflow-y: auto;
  scrollbar-width: none;
}

.ds-content::-webkit-scrollbar { display: none; }

.ds-title {
  color: #eef1fa;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.ds-subtitle {
  margin-top: 4px;
  color: #9ba4b8;
  font-size: 0.72rem;
  line-height: 1.55;
  font-weight: 600;
}

/* Quick Action buttons */
.ds-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ds-action {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #b0b8cc;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: default;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  animation: ds-btn-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.ds-action:nth-child(1) { animation-delay: 0.05s; }
.ds-action:nth-child(2) { animation-delay: 0.10s; }
.ds-action:nth-child(3) { animation-delay: 0.15s; }
.ds-action:nth-child(4) { animation-delay: 0.20s; }
.ds-action:nth-child(5) { animation-delay: 0.25s; }

.ds-action svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* Toggle rows */
.ds-toggle-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ds-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ds-toggle-row:last-child {
  border-bottom: none;
}

.ds-toggle-text {
  flex: 1;
  min-width: 0;
}

.ds-toggle-text strong {
  display: block;
  color: #d4d9e8;
  font-size: 0.76rem;
  font-weight: 800;
}

.ds-toggle-text p {
  margin-top: 2px;
  color: #8993a9;
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Toggle switch pill */
.ds-switch {
  flex-shrink: 0;
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 350ms ease, border-color 350ms ease;
  cursor: default;
}

.ds-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #5a6272;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), background 350ms ease;
}

.ds-switch.ds-on {
  background: rgba(97, 220, 163, 0.22);
  border-color: rgba(97, 220, 163, 0.4);
}

.ds-switch.ds-on::after {
  transform: translateX(15px);
  background: #61dca3;
  box-shadow: 0 0 8px rgba(97, 220, 163, 0.5);
}

/* Keyframes */
@keyframes ds-btn-pop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes ds-sidebar-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 3px 0 0 rgba(131, 163, 255, 0.7); }
}

/* keep old .client-preview for backward compat if referenced elsewhere */
.client-preview {
  display: grid;
  grid-template-columns: 64px 154px 1fr;
  min-height: 462px;
}



.server-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  background: rgba(4, 5, 9, 0.72);
}

.server-dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(131, 163, 255, 0.45), rgba(242, 139, 183, 0.38)),
    #151929;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.server-dot.active {
  border-color: rgba(131, 163, 255, 0.68);
  box-shadow: 0 0 24px rgba(131, 163, 255, 0.32);
}

.server-dot.small {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.channel-list {
  padding: 20px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 20, 0.62);
}

.workspace-title {
  margin-bottom: 22px;
  color: #f4f6fb;
  font-size: 0.88rem;
  font-weight: 900;
}

.channel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: #8790a6;
  font-size: 0.77rem;
  font-weight: 800;
}

.channel + .channel {
  margin-top: 5px;
}

.channel svg {
  width: 15px;
  height: 15px;
}

.channel.active {
  background: rgba(131, 163, 255, 0.14);
  color: #dbe3ff;
}

.mod-panel {
  padding: 24px;
  background:
    radial-gradient(circle at 72% 12%, rgba(131, 163, 255, 0.14), transparent 15rem),
    rgba(12, 14, 24, 0.62);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-kicker {
  color: var(--accent-green);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin-top: 5px;
  font-size: 1.48rem;
  line-height: 1.15;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(97, 220, 163, 0.28);
  border-radius: 999px;
  background: rgba(97, 220, 163, 0.1);
  color: #9af0c6;
  font-size: 0.68rem;
  font-weight: 900;
}

.progress-card,
.message-preview,
.toggle-card,
.feature-card,
.stat-card,
.download-card,
.community-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.stat-card,
.feature-card,
.download-card,
.community-panel {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.stat-card:hover,
.feature-card:hover,
.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(131, 163, 255, 0.36);
  box-shadow:
    0 6px 20px rgba(131, 163, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reveal {
  opacity: 1;
}

.reveal.is-visible {
  animation: content-enter 220ms ease-out backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes content-enter {
  from { opacity: .72; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

.progress-card {
  padding: 18px;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #cbd2e2;
  font-size: 0.8rem;
  font-weight: 800;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 96%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  animation: progress-glow 2.6s ease-in-out infinite;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.toggle-card {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 8px;
  color: #9ba4b9;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.toggle-card svg {
  width: 20px;
  height: 20px;
}

.toggle-card.on {
  border-color: rgba(131, 163, 255, 0.32);
  background: rgba(131, 163, 255, 0.1);
  color: #dbe3ff;
}

.message-preview {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(131, 163, 255, 0.24);
}

.message-name {
  margin-bottom: 5px;
  color: #eef2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.message-name b {
  display: inline-flex;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(131, 163, 255, 0.18);
  color: #c9d5ff;
  font-size: 0.58rem;
}

.message-preview p {
  color: #9fa8bb;
  font-size: 0.8rem;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 18px 0 92px;
}

.stat-card {
  display: grid;
  min-height: 156px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.stat-card svg {
  width: 30px;
  height: 30px;
  color: #e4e8f5;
}

.stat-card strong {
  margin-top: 18px;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
}

.stat-card span {
  margin-top: 8px;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 800;
}

.plugin-library,
.feature-intro,
.download,
.faq,
.community {
  padding-bottom: 108px;
}

.plugin-library {
  scroll-margin-top: 92px;
}

.library-hero {
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(131, 163, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 15% 0%, rgba(242, 139, 183, 0.08), transparent 20rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.library-hero h2 {
  max-width: 720px;
  font-size: clamp(2.45rem, 6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
}

.library-hero p {
  max-width: 940px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  color: #aeb7ca;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-meta strong {
  color: #f7f9ff;
}

.library-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d5ff;
}

.library-meta svg {
  width: 16px;
  height: 16px;
}

.plugin-toolbar {
  margin-top: 22px;
}

.plugin-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.plugin-search-shell:focus-within {
  border-color: rgba(131, 163, 255, 0.42);
  background: rgba(131, 163, 255, 0.055);
  box-shadow:
    0 0 0 4px rgba(131, 163, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plugin-search-shell svg {
  width: 19px;
  height: 19px;
  color: #8f98ad;
}

.plugin-search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.plugin-search-shell input::placeholder {
  color: #798299;
}

.plugin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.plugin-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a7b0c4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.plugin-filters button:hover,
.plugin-filters button.active {
  transform: translateY(-1px);
  border-color: rgba(131, 163, 255, 0.38);
  background: rgba(131, 163, 255, 0.13);
  color: #dbe3ff;
}

.plugin-filters button.active { box-shadow: 0 0 14px #83a3ff12; }

.plugin-count {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.plugin-card {
  position: relative;
  min-height: 208px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 0%, rgba(131, 163, 255, 0.08), transparent 11rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    opacity 180ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.plugin-card.is-starred {
  border-color: rgba(255, 210, 92, 0.34);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 210, 92, 0.14), transparent 11rem),
    radial-gradient(circle at 10% 0%, rgba(131, 163, 255, 0.09), transparent 12rem),
    rgba(255, 255, 255, 0.04);
}

.plugin-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 14px rgba(97, 220, 163, 0.66);
  opacity: 0.78;
}

.plugin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(131, 163, 255, 0.36);
  background:
    radial-gradient(circle at 88% 0%, rgba(131, 163, 255, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 6px 20px rgba(131, 163, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.plugin-card.is-hidden {
  display: none;
}

.plugin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plugin-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe5f3;
}

.plugin-icon svg {
  width: 19px;
  height: 19px;
}

.plugin-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.plugin-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #aeb7ca;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plugin-badges .star-badge {
  border-color: rgba(255, 210, 92, 0.5);
  background: rgba(255, 210, 92, 0.16);
  color: #ffe08a;
  box-shadow: 0 0 16px rgba(255, 210, 92, 0.12);
}

.plugin-badges .star-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.plugin-card h3 {
  margin-top: 22px;
  color: #f7f9ff;
  font-size: 1rem;
  line-height: 1.22;
}

.plugin-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.plugin-empty {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.section-heading {
  max-width: 710px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 42px;
  max-width: none;
  align-items: end;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.04;
  font-weight: 900;
}

.section-heading p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.section-heading.split p {
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 214px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(10, 12, 20, 0.7);
}

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.feature-card h3,
.download-card h3,
.community-panel h2 {
  margin-top: 22px;
  color: #f7f9ff;
  font-size: 1.16rem;
  line-height: 1.25;
}

.feature-card p,
.download-card p,
.community-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
}

.download {
  scroll-margin-top: 116px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 368px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 65%), #0b0d15;
}

.download-card.platform-ready {
  border-color: rgba(131, 163, 255, 0.34);
  background:
    radial-gradient(circle at 84% 10%, rgba(131, 163, 255, 0.15), transparent 14rem),
    #0d101b;
}

.platform-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: #dce2ef;
  background: rgba(255, 255, 255, 0.035);
}

.platform-icon svg { width: 28px; height: 28px; }
.platform-icon-windows { color: #a5b9ff; border-color: rgba(131, 163, 255, 0.2); background: rgba(131, 163, 255, 0.09); }
.platform-icon-macos svg { width: 27px; height: 27px; }
.platform-icon-linux { color: #c7b6fa; }
.platform-icon-linux svg { width: 30px; height: 30px; }

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #a9b2c6;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.platform-status-ready { border-color: rgba(97, 220, 163, 0.2); color: #a2e2bd; background: rgba(97, 220, 163, 0.05); }
.platform-status-ready > span { width: 5px; height: 5px; border-radius: 50%; background: #76d7a2; box-shadow: 0 0 8px rgba(97, 220, 163, 0.3); }
.platform-card-footer [hidden] { display: none; }
.platform-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; min-height: 17px; font-size: .65rem; color: #aebee8; }
.platform-links a:hover { color: white; }
.platform-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.download-card h3 { margin: 24px 0 0; font-size: 1.5rem; letter-spacing: -0.035em; }
.download-card .version { margin: 6px 0 0; color: #9ba7c1; font-size: 0.76rem; font-weight: 600; }
.download-card.platform-ready .version { color: #abbffa; }
.download-card .platform-description { margin: 18px 0 28px; font-size: 0.82rem; line-height: 1.75; }

.platform-card-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.platform-card-footer .primary-button { min-height: 46px; padding: 12px 14px; font-size: 0.79rem; }

.platform-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #a7afc2;
  font-size: 0.79rem;
  font-weight: 600;
  opacity: 1;
  cursor: not-allowed;
}

.platform-unavailable svg { width: 15px; height: 15px; color: #8d96ad; }
.download-card .platform-note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; color: #8791a8; font-size: 0.65rem; line-height: 1.5; text-align: center; }

.platform-card-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 800px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .download-card { min-height: 340px; padding: 24px; }
}

.badge {
  border-color: rgba(131, 163, 255, 0.35);
  background: rgba(131, 163, 255, 0.12);
  color: #c9d5ff;
}

.badge.muted {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: #aab3c7;
}

.download-card .primary-button,
.download-card .secondary-button {
  width: 100%;
}

.faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  scroll-margin-top: 116px;
}

.faq-intro h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.faq-intro > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #bbc9f4;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.6;
  transition: color 180ms ease;
}

.faq-help:hover {
  color: #fff;
}

.faq-help span {
  transition: transform 220ms ease;
}

.faq-help:hover span {
  transform: translateX(4px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 23px 0;
  color: #c6cede;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
  color: #f5f7fb;
}

.faq-item summary > span:first-child {
  transition: transform 220ms ease;
}

.faq-item summary:hover > span:first-child {
  transform: translateX(4px);
}

.faq-item summary:focus-visible,
.faq-help:focus-visible,
.faq-answer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.faq-marker {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #939eb7;
  transition: transform 220ms ease, color 220ms ease;
}

.faq-item summary:hover .faq-marker {
  color: var(--accent);
  transform: scale(1.15);
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.faq-marker::after {
  transform: rotate(90deg);
  transition: transform 200ms ease, opacity 200ms ease;
}

.faq-item[open] .faq-marker::after {
  opacity: 0;
  transform: rotate(0);
}

.faq-answer {
  padding: 0 42px 25px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.faq-answer a {
  color: #c1cef5;
  text-decoration: underline;
  text-decoration-color: rgba(193, 206, 245, 0.35);
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

/* Native details keep keyboard controls and remain usable without this enhancement. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transform: translateY(-5px);
    transition:
      height 340ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
      content-visibility 340ms allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
    opacity: 1;
    transform: translateY(0);
  }
}

.community-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 139, 183, 0.12), transparent 18rem),
    radial-gradient(circle at 90% 0%, rgba(131, 163, 255, 0.16), transparent 20rem),
    rgba(13, 15, 24, 0.76);
}

.community-panel h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.community-panel p {
  max-width: 620px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 45px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 130px;
  gap: 40px;
  padding-bottom: 38px;
}
.footer-wordmark { justify-self: start; align-self: start; color: #747d94; font-size: 1.75rem; font-weight: 700; letter-spacing: -.075em; line-height: 1; }
.footer-wordmark span { color: #a3b5e7; }
.footer-wordmark:hover { color: #b6bfd4; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links h2 { margin: 0 0 5px; color: #656f86; font-size: .58rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: #959eb4; font-size: .71rem; font-weight: 500; }
.footer-links a span { color: #59657e; font-size: .8rem; }
.footer-links a:hover, .footer-links a:hover span { color: #d0dbfa; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; padding-top: 20px; border-top: 1px solid #ffffff07; color: #515d77; font-size: .6rem; }
.footer-bottom p { margin: 0; line-height: 1.6; }
.site-footer a:focus-visible { outline: 2px solid #a3b5e7; outline-offset: 5px; border-radius: 2px; }
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 25px; padding-bottom: 30px; }
  .footer-wordmark { grid-column: 1 / -1; font-size: 1.55rem; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 1020px) {
  :root {
    --container: min(100% - 38px, 780px);
  }

  .site-header {
    min-height: 76px;
    padding: 16px 24px;
  }

  .nav-links,
  .ghost-link {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    width: var(--container);
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 130px;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .desktop-frame {
    max-width: 720px;
    margin: 0 auto;
    transform: none;
    will-change: auto;
  }

  /* Settings mockup: hide sidebar on tablet, content fills full width */
  .discord-settings {
    grid-template-columns: 1fr;
  }

  .ds-sidebar {
    display: none;
  }

  .ds-quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats,
  .plugin-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .plugin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .section-heading.split p {
    margin: 0 auto;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 620px);
  }

  .site-header {
    padding: 14px;
  }

  .brand span:last-child {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    gap: 38px;
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(4rem, 14vw, 7.2rem);
    margin-top: 34px;
  }

  .tagline::after {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .client-preview {
    grid-template-columns: 54px 1fr;
    min-height: 540px;
  }

  .hero-visual {
    /* Hide the settings mockup on small phones — it's too tall stacked */
    display: none;
  }

  .channel-list {
    display: none;
  }

  .mod-panel {
    padding: 18px;
  }

  .panel-header,
  .community-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .plugin-grid,
  .toggle-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding-bottom: 72px;
  }

  .plugin-library,
  .feature-intro,
  .download,
  .faq,
  .community {
    padding-bottom: 76px;
  }

  .site-footer { padding-top: 32px; padding-bottom: 23px; }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1rem;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-menu {
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .eyebrow {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.25;
    padding: 8px 12px;
  }

  .window-topbar p {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-preview {
    grid-template-columns: 46px 1fr;
  }

  .ds-quick-grid {
    grid-template-columns: 1fr;
  }

  .server-dot {
    width: 32px;
    height: 32px;
  }

  .toggle-card {
    min-height: 74px;
  }

  .library-hero {
    padding: 24px;
  }

  .plugin-card {
    padding: 20px;
  }

  .plugin-card-top {
    align-items: flex-start;
  }
}

@media (hover: none) {
  .stat-card:hover, .feature-card:hover, .download-card:hover, .plugin-card:hover,
  .primary-button:hover, .secondary-button:hover, .nav-cta:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    translate: none;
    animation: none !important;
  }

  .stat-card:hover, .feature-card:hover, .download-card:hover, .plugin-card:hover,
  .primary-button:hover, .secondary-button:hover, .nav-cta:hover { transform: none; }

  .faq-item::details-content {
    transition: none !important;
  }

  .faq-item summary:hover > span:first-child,
  .faq-item summary:hover .faq-marker,
  .faq-help:hover span {
    transform: none;
  }

  .desktop-frame {
    transform: none !important;
  }
}

.installer-help { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-secondary, #a7aec3); }
.installer-help a, .installer-copy { color: #c8d1ff; text-decoration: underline; text-underline-offset: 3px; }
.installer-copy { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
