.showcase-home {
  display: grid;
  gap: 0;
}

.showcase-hero {
  padding-top: clamp(72px, 10vw, 120px);
}

.showcase-hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.showcase-hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
}

.hero-layer--base {
  inset: 10px 3% 10px 3%;
}

.hero-layer--tilt {
  width: min(420px, 42vw);
  height: 170px;
  top: -38px;
  right: 5%;
  transform: rotate(-13deg);
  opacity: 0.76;
}

.hero-layer--depth {
  width: min(320px, 32vw);
  height: 120px;
  bottom: -18px;
  left: 6%;
  transform: rotate(6deg);
  opacity: 0.62;
}

.showcase-hero-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 3vw, 34px);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
  box-shadow: var(--shadow-medium);
  padding: clamp(22px, 3.6vw, 42px);
}

.showcase-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.showcase-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.showcase-hero-stats {
  display: grid;
  gap: 10px;
  align-content: start;
}

.showcase-hero-stats article {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.showcase-hero-stats strong {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.showcase-hero-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.showcase-section-head {
  max-width: 860px;
  display: grid;
  gap: 10px;
  margin-bottom: clamp(18px, 2.8vw, 30px);
}

.interface-demo-window {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(var(--primary-rgb), 0.26);
  background: linear-gradient(180deg, rgba(5, 14, 26, 0.84), rgba(5, 12, 24, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 70px rgba(2, 8, 18, 0.42);
  padding: 12px;
  overflow: hidden;
}

.interface-demo-window::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(122, 186, 255, 0.2);
  box-shadow: 0 0 28px rgba(78, 146, 255, 0.14);
}

.interface-demo-shell {
  position: relative;
  min-height: clamp(620px, 78vh, 760px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(170, 208, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.94), rgba(7, 15, 26, 0.96));
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 72px;
}

.demo-topbar {
  display: grid;
  align-items: center;
  justify-items: center;
  border-bottom: 1px solid rgba(160, 198, 247, 0.2);
  background: rgba(7, 16, 28, 0.84);
}

.demo-topbar strong {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(221, 232, 247, 0.94);
}

.demo-content-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.demo-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease;
  padding: 10px;
  display: grid;
  min-height: 0;
}

.demo-pane.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.demo-home-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.demo-home-card {
  border: 1px solid rgba(162, 199, 248, 0.24);
  border-radius: 14px;
  background: rgba(8, 19, 34, 0.62);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.demo-home-card h3 {
  font-size: 0.9rem;
  color: rgba(238, 244, 255, 0.96);
}

.demo-home-card p {
  font-size: 0.77rem;
  color: rgba(194, 212, 234, 0.9);
  line-height: 1.46;
}

.demo-home-card-wide {
  grid-column: 1 / -1;
}

.demo-taskbar {
  position: relative;
  z-index: 6;
  border-top: 1px solid rgba(160, 198, 247, 0.2);
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.94), rgba(7, 13, 23, 0.98));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.demo-taskbar-left,
.demo-taskbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-taskbar-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-taskbar-center button,
.demo-taskbar-icon {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(8, 20, 34, 0.7);
  color: rgba(219, 232, 248, 0.95);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-taskbar-center button {
  min-width: 90px;
  padding: 0 12px;
}

.demo-taskbar-center button.is-active,
.demo-taskbar-icon.is-active {
  border-color: rgba(138, 191, 255, 0.58);
  background: rgba(77, 140, 214, 0.3);
  color: rgba(242, 248, 255, 0.98);
}

.demo-taskbar-icon {
  width: 38px;
  padding: 0;
  font-size: 0.73rem;
  font-weight: 700;
}

.demo-metrics-slideout {
  position: absolute;
  top: 44px;
  right: 10px;
  bottom: 84px;
  width: min(300px, calc(100% - 20px));
  border-radius: 14px;
  border: 1px solid rgba(160, 198, 247, 0.26);
  background: rgba(7, 16, 29, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  transform: translateX(118%);
  transition: transform 140ms ease;
  z-index: 8;
}

.demo-metrics-slideout.is-open {
  transform: translateX(0);
}

.demo-metrics-slideout header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(160, 198, 247, 0.2);
  padding-bottom: 8px;
}

.demo-metrics-slideout header strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.96);
}

.demo-metrics-slideout header span {
  font-size: 0.68rem;
  color: rgba(190, 212, 239, 0.92);
}

.demo-metrics-slideout header span[data-health="stable"] {
  color: rgba(129, 227, 181, 0.94);
}

.demo-metrics-slideout header span[data-health="warning"] {
  color: rgba(255, 212, 120, 0.96);
}

.demo-metrics-slideout header span[data-health="critical"] {
  color: rgba(255, 145, 169, 0.96);
}

.demo-metrics-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.demo-metrics-grid article {
  border: 1px solid rgba(160, 198, 247, 0.2);
  border-radius: 10px;
  background: rgba(9, 19, 34, 0.7);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-metrics-grid span {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(181, 204, 233, 0.84);
}

.demo-metrics-grid strong {
  font-size: 0.78rem;
  color: rgba(236, 244, 255, 0.96);
}

.demo-tray-menu {
  position: absolute;
  right: 12px;
  bottom: 82px;
  width: 240px;
  border-radius: 14px;
  border: 1px solid rgba(160, 198, 247, 0.28);
  background: rgba(7, 16, 29, 0.97);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 10;
}

.demo-tray-menu.is-hidden {
  display: none;
}

.demo-tray-quick-actions,
.demo-tray-toggles,
.demo-power-dropup {
  display: grid;
  gap: 6px;
}

.demo-tray-quick-actions button,
.demo-tray-toggles button,
.demo-tray-power > button,
.demo-power-dropup button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 19, 34, 0.72);
  color: rgba(222, 235, 250, 0.95);
  text-align: left;
  padding: 0 10px;
  font-size: 0.71rem;
  letter-spacing: 0.04em;
}

.demo-tray-power {
  border-top: 1px solid rgba(160, 198, 247, 0.2);
  padding-top: 8px;
  position: relative;
}

.demo-power-dropup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: 180px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(7, 16, 29, 0.98);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  padding: 6px;
}

.demo-power-dropup.is-hidden {
  display: none;
}

.demo-power-dropup button.is-danger {
  border-color: rgba(255, 143, 167, 0.36);
  color: rgba(255, 184, 199, 0.96);
}

.demo-context-menu {
  position: absolute;
  min-width: 190px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.3);
  background: rgba(7, 16, 29, 0.98);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 30;
}

.demo-context-menu.is-hidden {
  display: none;
}

.demo-context-menu button {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(220, 235, 255, 0.96);
  text-align: left;
  padding: 0 8px;
  font-size: 0.7rem;
}

.demo-context-menu button:hover {
  border-color: rgba(160, 198, 247, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.demo-toast-stack {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  z-index: 40;
  pointer-events: none;
}

.demo-toast {
  min-width: 220px;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.28);
  background: rgba(7, 16, 29, 0.92);
  color: rgba(226, 239, 255, 0.98);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  text-align: center;
}

.demo-chat-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 10px;
}

.demo-dm-sidebar,
.demo-chat-thread {
  border: 1px solid rgba(160, 198, 247, 0.22);
  border-radius: 12px;
  background: rgba(8, 19, 34, 0.62);
  min-height: 0;
}

.demo-dm-sidebar {
  position: relative;
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 8px;
}

.demo-dm-sidebar h3 {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 236, 252, 0.96);
}

.demo-dm-search-wrap input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(115, 167, 255, 0.42);
  background: rgba(44, 100, 202, 0.32);
  color: rgba(234, 244, 255, 0.98);
  padding: 0 10px;
  font-size: 0.72rem;
}

.demo-dm-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.demo-dm-shortcuts button {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.2);
  background: rgba(8, 19, 34, 0.62);
  color: rgba(216, 232, 251, 0.95);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.demo-dm-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 207, 233, 0.9);
}

.demo-plus-button {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.22);
  background: rgba(8, 19, 34, 0.64);
  color: rgba(236, 246, 255, 0.98);
  font-size: 0.94rem;
  line-height: 1;
  font-weight: 700;
}

.demo-dm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.demo-dm-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.demo-dm-item-main {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(214, 229, 248, 0.94);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  text-align: left;
}

.demo-dm-item-main.is-active,
.demo-dm-item-main:hover {
  border-color: rgba(160, 198, 247, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.demo-dm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(160, 198, 247, 0.26);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  background: rgba(7, 17, 30, 0.66);
}

.demo-dm-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.demo-dm-meta strong {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-dm-meta span {
  font-size: 0.62rem;
  color: rgba(172, 196, 225, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-dm-archive {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 146, 170, 0.26);
  background: rgba(66, 18, 28, 0.36);
  color: rgba(255, 179, 196, 0.92);
  font-size: 0.66rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.demo-dm-item:hover .demo-dm-archive {
  opacity: 1;
  pointer-events: auto;
}

.demo-add-friend-popover {
  position: absolute;
  top: 132px;
  right: 8px;
  width: min(236px, calc(100% - 16px));
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(8, 18, 32, 0.98);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 5;
}

.demo-add-friend-popover.is-hidden {
  display: none;
}

.demo-add-friend-popover strong {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(222, 237, 255, 0.96);
}

.demo-add-friend-popover input {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.2);
  background: rgba(7, 17, 30, 0.72);
  color: rgba(224, 238, 255, 0.97);
  padding: 0 8px;
  font-size: 0.68rem;
}

.demo-add-friend-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.demo-add-friend-actions button {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.68);
  color: rgba(224, 238, 255, 0.95);
  font-size: 0.68rem;
}

.demo-chat-thread {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

.demo-chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(160, 198, 247, 0.22);
}

.demo-chat-thread-head strong {
  display: block;
  font-size: 0.78rem;
  color: rgba(238, 246, 255, 0.97);
}

.demo-chat-thread-head span {
  font-size: 0.65rem;
  color: rgba(176, 200, 230, 0.9);
}

.demo-chat-head-actions {
  display: inline-flex;
  gap: 6px;
}

.demo-chat-head-actions button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.22);
  background: rgba(9, 20, 35, 0.66);
  color: rgba(220, 236, 255, 0.95);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-call-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(160, 198, 247, 0.22);
}

.demo-call-control.is-hidden {
  display: none;
}

.demo-call-meta {
  display: grid;
  gap: 1px;
}

.demo-call-meta strong {
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(220, 236, 255, 0.96);
}

.demo-call-meta span {
  font-size: 0.68rem;
  color: rgba(183, 205, 232, 0.92);
}

.demo-call-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-call-controls button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.68);
  color: rgba(220, 235, 255, 0.96);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-call-controls button.is-active {
  border-color: rgba(138, 191, 255, 0.56);
  background: rgba(77, 140, 214, 0.28);
}

.demo-call-controls button.is-danger {
  border-color: rgba(255, 146, 170, 0.34);
  color: rgba(255, 184, 199, 0.96);
  background: rgba(66, 18, 28, 0.42);
}

.demo-call-divider {
  width: 1px;
  height: 18px;
  background: rgba(160, 198, 247, 0.28);
}

.demo-chat-message-stream {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.demo-chat-group {
  width: min(72%, 580px);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}

.demo-chat-group.is-self {
  margin-left: auto;
}

.demo-chat-group:hover {
  border-color: rgba(160, 198, 247, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.demo-chat-group-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.demo-chat-group.is-self .demo-chat-group-head {
  grid-template-columns: auto minmax(0, 1fr) 22px;
}

.demo-chat-group.is-self .demo-chat-group-head .demo-chat-avatar {
  order: 3;
}

.demo-chat-group.is-self .demo-chat-group-head .demo-chat-author {
  justify-self: end;
  text-align: right;
}

.demo-chat-group.is-self .demo-chat-group-head .demo-chat-time {
  justify-self: start;
}

.demo-chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(160, 198, 247, 0.26);
  display: grid;
  place-items: center;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  background: rgba(7, 17, 30, 0.68);
  color: rgba(224, 238, 255, 0.96);
}

.demo-chat-author {
  min-width: 0;
  font-size: 0.64rem;
  color: rgba(232, 242, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-chat-time {
  font-size: 0.58rem;
  color: rgba(174, 198, 227, 0.88);
}

.demo-chat-lines {
  display: grid;
  gap: 3px;
  padding-left: 30px;
}

.demo-chat-group.is-self .demo-chat-lines {
  padding-left: 0;
  padding-right: 30px;
}

.demo-chat-line {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(215, 231, 251, 0.95);
}

.demo-chat-composer {
  border-top: 1px solid rgba(160, 198, 247, 0.2);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.demo-chat-input-wrap input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.72);
  color: rgba(232, 242, 255, 0.98);
  padding: 0 10px;
  font-size: 0.73rem;
}

.demo-chat-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-3px);
}

.demo-chat-tools button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.68);
  color: rgba(223, 237, 255, 0.95);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-server-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 62px 220px minmax(0, 1fr);
  gap: 10px;
}

.demo-server-rail,
.demo-channel-sidebar,
.demo-server-main {
  border: 1px solid rgba(160, 198, 247, 0.22);
  border-radius: 12px;
  background: rgba(8, 19, 34, 0.62);
  min-height: 0;
}

.demo-server-rail {
  padding: 8px 6px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.demo-server-rail button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.68);
  color: rgba(225, 238, 255, 0.96);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin: 0 auto;
}

.demo-server-rail button.is-active {
  border-color: rgba(138, 191, 255, 0.58);
  background: rgba(77, 140, 214, 0.3);
}

.demo-channel-sidebar {
  position: relative;
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.demo-server-name-button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.72);
  color: rgba(226, 239, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  font-size: 0.71rem;
  letter-spacing: 0.04em;
}

.demo-server-name-dropdown {
  position: absolute;
  top: 48px;
  left: 10px;
  right: 10px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(8, 18, 32, 0.98);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 4;
}

.demo-server-name-dropdown.is-hidden {
  display: none;
}

.demo-server-name-dropdown button {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(219, 234, 252, 0.96);
  text-align: left;
  padding: 0 8px;
  font-size: 0.68rem;
}

.demo-server-name-dropdown button:hover {
  border-color: rgba(160, 198, 247, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.demo-channel-sidebar-head {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(183, 206, 234, 0.88);
}

.demo-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.demo-channel-list button {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(214, 229, 248, 0.94);
  text-align: left;
  padding: 0 8px;
  font-size: 0.7rem;
}

.demo-channel-list button.is-active,
.demo-channel-list button:hover {
  border-color: rgba(160, 198, 247, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.demo-server-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
}

.demo-channel-header {
  border-bottom: 1px solid rgba(160, 198, 247, 0.24);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}

.demo-channel-header-main {
  display: grid;
  gap: 2px;
}

.demo-channel-header-main strong {
  font-size: 0.78rem;
  color: rgba(238, 246, 255, 0.97);
}

.demo-channel-header-main span {
  font-size: 0.64rem;
  color: rgba(177, 201, 231, 0.9);
}

.demo-server-message-stream {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.demo-server-message {
  width: min(78%, 620px);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}

.demo-server-message.is-self {
  margin-left: auto;
}

.demo-server-message:hover {
  border-color: rgba(160, 198, 247, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.demo-server-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-server-meta strong {
  font-size: 0.66rem;
  color: rgba(232, 242, 255, 0.96);
}

.demo-server-meta span {
  font-size: 0.58rem;
  color: rgba(176, 200, 230, 0.88);
}

.demo-server-text {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.42;
  color: rgba(215, 231, 251, 0.95);
}

.demo-server-actions {
  display: inline-flex;
  justify-content: flex-end;
}

.demo-server-actions button {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid rgba(160, 198, 247, 0.22);
  background: rgba(9, 20, 35, 0.64);
  color: rgba(211, 228, 250, 0.95);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.demo-server-actions button:disabled {
  opacity: 0.46;
}

.demo-server-composer {
  border-top: 1px solid rgba(160, 198, 247, 0.22);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.demo-server-composer input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.72);
  color: rgba(232, 242, 255, 0.98);
  padding: 0 10px;
  font-size: 0.73rem;
}

.demo-server-composer button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(77, 140, 214, 0.26);
  color: rgba(239, 247, 255, 0.97);
  padding: 0 12px;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-server-delete-rule {
  margin: 0;
  border-top: 1px solid rgba(160, 198, 247, 0.22);
  padding: 7px 10px;
  font-size: 0.62rem;
  color: rgba(182, 205, 233, 0.9);
}

.demo-settings-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 10px;
}

.demo-settings-categories,
.demo-settings-workspace {
  border: 1px solid rgba(160, 198, 247, 0.22);
  border-radius: 12px;
  background: rgba(8, 19, 34, 0.62);
  min-height: 0;
}

.demo-settings-categories {
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: auto;
}

.demo-settings-category {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(213, 229, 248, 0.94);
  text-align: left;
  padding: 0 8px;
  font-size: 0.69rem;
}

.demo-settings-category.is-active,
.demo-settings-category:hover {
  border-color: rgba(160, 198, 247, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.demo-settings-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.demo-settings-head {
  padding: 10px;
  border-bottom: 1px solid rgba(160, 198, 247, 0.22);
  display: grid;
  gap: 3px;
}

.demo-settings-head strong {
  font-size: 0.8rem;
  color: rgba(236, 246, 255, 0.97);
}

.demo-settings-head span {
  font-size: 0.66rem;
  color: rgba(177, 201, 231, 0.9);
}

.demo-settings-controls {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.demo-setting-row {
  border: 1px solid rgba(160, 198, 247, 0.2);
  border-radius: 10px;
  background: rgba(9, 20, 35, 0.64);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.demo-setting-row label {
  font-size: 0.67rem;
  color: rgba(226, 238, 255, 0.95);
}

.demo-setting-row small {
  font-size: 0.6rem;
  color: rgba(175, 199, 229, 0.86);
}

.demo-setting-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-setting-toggle {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(10, 22, 38, 0.72);
  position: relative;
}

.demo-setting-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(220, 236, 255, 0.94);
  transition: transform 120ms ease;
}

.demo-setting-toggle.is-on {
  background: rgba(77, 140, 214, 0.34);
}

.demo-setting-toggle.is-on::after {
  transform: translateX(18px);
}

.demo-setting-range {
  width: 160px;
}

.demo-setting-select,
.demo-setting-device {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(160, 198, 247, 0.24);
  background: rgba(9, 20, 35, 0.72);
  color: rgba(223, 237, 255, 0.95);
  padding: 0 8px;
  font-size: 0.64rem;
}

.demo-simple-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.demo-simple-grid article {
  border: 1px solid rgba(160, 198, 247, 0.22);
  border-radius: 12px;
  background: rgba(8, 19, 34, 0.62);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.demo-simple-grid h3 {
  font-size: 0.88rem;
  color: rgba(236, 246, 255, 0.96);
}

.demo-simple-grid p {
  font-size: 0.75rem;
  color: rgba(187, 210, 236, 0.92);
  line-height: 1.45;
}

.showcase-feature-grid,
.showcase-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ecosystem-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showcase-feature-grid article,
.showcase-tech-grid article,
.ecosystem-map-grid article {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.showcase-feature-grid h3,
.showcase-tech-grid h3,
.ecosystem-map-grid h3 {
  font-size: 1rem;
}

.showcase-feature-grid p,
.showcase-tech-grid p,
.ecosystem-map-grid p {
  font-size: 0.95rem;
}

.ecosystem-map-grid a {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.showcase-download-card {
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: var(--shadow-medium);
  padding: clamp(18px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1320px) {
  .interface-demo-shell {
    min-height: 680px;
  }

  .demo-taskbar-center button {
    min-width: 78px;
    font-size: 0.68rem;
  }

  .demo-chat-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .demo-server-layout {
    grid-template-columns: 56px 200px minmax(0, 1fr);
  }

  .demo-settings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .showcase-hero {
    padding-top: clamp(52px, 8vw, 74px);
  }

  .showcase-hero-layers {
    display: none;
  }

  .showcase-hero-shell,
  .showcase-feature-grid,
  .showcase-tech-grid,
  .ecosystem-map-grid,
  .showcase-download-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .showcase-download-card {
    justify-items: start;
  }

  .interface-demo-shell {
    min-height: 760px;
    grid-template-rows: 34px minmax(0, 1fr) 132px;
  }

  .demo-taskbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .demo-taskbar-left,
  .demo-taskbar-right {
    justify-content: center;
  }

  .demo-pane {
    padding: 8px;
  }

  .demo-chat-layout,
  .demo-server-layout,
  .demo-settings-layout {
    grid-template-columns: 1fr;
  }

  .demo-chat-layout,
  .demo-server-layout,
  .demo-settings-layout,
  .demo-chat-thread,
  .demo-server-main,
  .demo-settings-workspace {
    min-height: 0;
  }

  .demo-dm-sidebar,
  .demo-channel-sidebar,
  .demo-settings-categories {
    max-height: 210px;
  }

  .demo-server-rail {
    grid-auto-flow: column;
    grid-auto-columns: 46px;
    overflow-x: auto;
    align-content: center;
    justify-content: start;
  }

  .demo-server-rail button {
    margin: 0;
  }

  .demo-metrics-slideout {
    left: 8px;
    right: 8px;
    width: auto;
    transform: translateY(112%);
    top: auto;
    bottom: 140px;
    max-height: 300px;
  }

  .demo-metrics-slideout.is-open {
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .interface-demo-window {
    padding: 8px;
    border-radius: 18px;
  }

  .interface-demo-shell {
    min-height: 800px;
    border-radius: 14px;
  }

  .demo-taskbar-center {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .demo-taskbar-center button {
    min-width: 0;
    width: 100%;
  }

  .demo-chat-group,
  .demo-server-message {
    width: min(100%, 620px);
  }

  .demo-chat-group.is-self,
  .demo-server-message.is-self {
    margin-left: 0;
  }

  .demo-chat-group.is-self .demo-chat-group-head {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .demo-chat-group.is-self .demo-chat-group-head .demo-chat-avatar {
    order: 1;
  }

  .demo-chat-group.is-self .demo-chat-group-head .demo-chat-author {
    justify-self: start;
    text-align: left;
  }

  .demo-chat-group.is-self .demo-chat-group-head .demo-chat-time {
    justify-self: end;
  }

  .demo-chat-group.is-self .demo-chat-lines {
    padding-right: 0;
    padding-left: 30px;
  }

  .demo-tray-menu {
    left: 8px;
    right: 8px;
    width: auto;
  }
}
