:root {
  --bg: #070712;
  --panel: rgba(17, 19, 35, 0.82);
  --panel-soft: rgba(11, 13, 25, 0.92);
  --panel-elevated: rgba(19, 23, 40, 0.92);
  --card: linear-gradient(180deg, rgba(10, 12, 24, .96), rgba(6, 8, 18, .96));
  --line: rgba(122, 91, 255, .18);
  --line-strong: rgba(151, 99, 255, .36);
  --text: #ffffff;
  --muted: #b8bbcc;
  --muted-2: #8f93a7;
  --purple: #8c4dff;
  --purple-2: #6f3ef0;
  --green: #1fd877;
  --blue: #4aa3ff;
  --gold: #ebaa45;
  --shadow: 0 24px 64px rgba(0,0,0,.44);
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(106, 48, 255, .18), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(86, 44, 222, .14), transparent 22%),
    linear-gradient(180deg, #05060d 0%, #070914 30%, #05070d 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }

.background-glow,
.flying-birds {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.background-glow {
  z-index: -3;
  filter: blur(86px);
  opacity: .5;
}
.glow-left {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 30px;
  background: radial-gradient(circle, rgba(121, 67, 255, .34), rgba(121, 67, 255, 0));
}
.glow-right {
  width: 540px;
  height: 540px;
  right: -180px;
  top: -30px;
  background: radial-gradient(circle, rgba(80, 40, 224, .28), rgba(80, 40, 224, 0));
}
.flying-birds {
  z-index: -1;
  overflow: hidden;
}
.bird {
  position: absolute;
  width: 38px;
  height: 22px;
  opacity: .24;
  animation: birdFly linear infinite;
}
.bird::before,
.bird::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 18px;
  height: 12px;
  border-top: 3px solid rgba(214, 204, 255, .82);
}
.bird::before {
  left: 0;
  border-radius: 100% 0 0 0;
  transform: rotate(10deg);
}
.bird::after {
  right: 0;
  border-radius: 0 100% 0 0;
  transform: rotate(-10deg);
}
.bird-1 { top: 9%; left: -5%; animation-duration: 22s; animation-delay: -2s; }
.bird-2 { top: 20%; left: -8%; animation-duration: 28s; animation-delay: -8s; }
.bird-3 { top: 42%; left: -7%; animation-duration: 24s; animation-delay: -13s; }
.bird-4 { top: 58%; left: -6%; animation-duration: 30s; animation-delay: -16s; }
.bird-5 { top: 74%; left: -10%; animation-duration: 34s; animation-delay: -6s; }
.bird-6 { top: 86%; left: -6%; animation-duration: 26s; animation-delay: -11s; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 18px 0 0;
}
.topbar {
  min-height: 66px;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 13, 25, .98), rgba(8, 10, 20, .96));
  box-shadow: 0 18px 48px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(130%);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  font-size: 14px;
}
.nav a {
  color: #f5f4ff;
  opacity: .92;
}
.nav a.active,
.nav a:hover { color: var(--purple); }
.join-button {
  min-width: 180px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(151, 99, 255, .38);
  background: linear-gradient(180deg, rgba(23, 19, 48, .92), rgba(13, 15, 29, .96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  font-weight: 700;
}
.join-button svg {
  width: 18px;
  height: 18px;
  fill: #b692ff;
}
.join-button:hover { transform: translateY(-1px); }

.hero {
  padding: 34px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 620px);
  align-items: center;
  gap: 30px;
}
.hero-copy { padding: 16px 0 24px; }
.hero-label,
.small-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 26, 19, .9);
  color: #f3a12b;
  font-size: 12px;
  font-weight: 700;
}
.hero h1,
.section-heading h2,
.dev-copy h2,
.download-heading h2,
.help-hero h2 {
  margin: 22px 0 0;
  font-size: clamp(58px, 7vw, 86px);
  line-height: .95;
  letter-spacing: -.08em;
}
.hero h1 span { color: var(--purple); }
.hero-text {
  max-width: 580px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.74;
}
.hero-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(14, 16, 28, .92);
  border: 1px solid rgba(255,255,255,.05);
  color: #f2f2fa;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.badge-dot.bolt { background: #f8c03f; }
.badge-dot.lock { background: var(--green); }
.badge-dot.heart { background: #ff4f87; }
.badge-dot.users { background: var(--purple); }
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cta-primary,
.cta-secondary,
.download-button {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: white;
}
.cta-primary,
.download-button {
  background: linear-gradient(180deg, #9b59ff 0%, #7443ef 100%);
  box-shadow: 0 18px 34px rgba(121,67,255,.28);
}
.cta-secondary {
  background: rgba(13, 16, 30, .9);
  border: 1px solid rgba(124, 88, 255, .25);
}
.cta-primary:hover,
.cta-secondary:hover,
.download-button:hover,
.help-category:hover { transform: translateY(-1px); }
.windows-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.windows-icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
}
.hero-version {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
}
.visual-bg {
  position: absolute;
  inset: 24px 0 14px 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 18%, rgba(121, 67, 255, .28), transparent 32%),
    radial-gradient(circle at 30% 30%, rgba(48, 26, 136, .25), transparent 44%),
    linear-gradient(180deg, rgba(8, 10, 24, .88), rgba(7, 8, 18, .9));
  box-shadow: var(--shadow);
}
.visual-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .35;
}
.interface-window {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-left: 34px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(134, 103, 255, .24);
  background: linear-gradient(180deg, rgba(11, 13, 25, .96), rgba(8, 10, 20, .98));
  box-shadow: 0 28px 70px rgba(0,0,0,.46);
}
.window-toolbar {
  min-height: 52px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.02);
}
.toolbar-left,
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.toolbar-dot,
.toolbar-actions span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.toolbar-title {
  color: #eff0ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.app-layout {
  min-height: 470px;
  display: grid;
  grid-template-columns: 72px 185px 1fr 195px;
}
.server-rail {
  padding: 16px 14px;
  background: rgba(255,255,255,.015);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.server-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #9a58ff, #6f3ef0);
  font-weight: 800;
}
.server-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.server-icon.active {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #9a58ff, #6d37d8);
  box-shadow: 0 0 0 6px rgba(121,67,255,.16);
}
.channel-list {
  padding: 16px 14px 14px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
}
.channel-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.channel-header strong { font-size: 14px; }
.channel-header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.channel-header button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.channel-group { margin-top: 16px; }
.channel-group small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.channel-group a {
  display: block;
  margin-top: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: #d8daea;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.channel-group a.selected,
.channel-group a:hover {
  background: rgba(131, 93, 255, .14);
  color: #fff;
}
.profile-mini {
  margin-top: auto;
  min-height: 62px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.profile-avatar,
.avatar,
.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
}
.profile-avatar { background: linear-gradient(180deg, #9a58ff, #6f3ef0); }
.profile-mini strong,
.profile-mini span { display: block; }
.profile-mini span { margin-top: 3px; color: var(--muted-2); font-size: 11px; }
.profile-toggles { display: flex; gap: 6px; }
.profile-toggles i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}
.chat-panel {
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}
.chat-header {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-header strong,
.chat-header span { display: block; }
.chat-header strong { font-size: 14px; }
.chat-header span { margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.chat-header-actions {
  display: flex;
  gap: 8px;
}
.chat-header-actions span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  margin-top: 0;
}
.chat-feed {
  display: grid;
  align-content: start;
  gap: 12px;
}
.message-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.avatar.amber { background: linear-gradient(180deg, #f0b860, #db8d34); }
.avatar.violet { background: linear-gradient(180deg, #9a58ff, #6d37d8); }
.avatar.blue { background: linear-gradient(180deg, #55b0ff, #2f7ee9); }
.message-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.message-bubble.compact { background: rgba(121, 67, 255, .1); }
.message-bubble.soft { background: rgba(72, 165, 255, .08); }
.message-bubble strong { font-size: 13px; }
.message-bubble p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.composer-bar {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.composer-field { color: var(--muted-2); font-size: 13px; }
.composer-icons { display: flex; gap: 8px; }
.composer-icons span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.members-panel {
  padding: 16px 14px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.members-header strong { font-size: 14px; }
.members-header span { color: var(--muted-2); font-size: 12px; }
.member-card {
  min-height: 50px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.member-card.primary { background: rgba(121, 67, 255, .1); }
.member-avatar.dark { background: linear-gradient(180deg, #2d3248, #1b1f30); }
.member-avatar.pink { background: linear-gradient(180deg, #ff7ac4, #de4ea8); }
.member-card strong,
.member-card small { display: block; }
.member-card small { margin-top: 3px; color: var(--muted-2); }
.member-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.member-status.online { background: var(--green); box-shadow: 0 0 0 4px rgba(31,216,119,.14); }
.member-status.idle { background: #f0c84f; box-shadow: 0 0 0 4px rgba(240,200,79,.14); }
.voice-preview {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 19, 52, .8), rgba(12, 14, 26, .95));
  border: 1px solid rgba(151, 99, 255, .18);
}
.voice-badge {
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  color: #bf9fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.voice-preview strong {
  display: block;
  margin-top: 12px;
}
.voice-users {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.voice-users span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9a58ff, #6d37d8);
}
.voice-users span:nth-child(2) { background: linear-gradient(180deg, #55b0ff, #2f7ee9); }
.voice-users span:nth-child(3) { background: linear-gradient(180deg, #f0b860, #db8d34); }
.voice-users span:nth-child(4) { background: linear-gradient(180deg, #31d27c, #1b9d5e); }

.hero-stats {
  position: absolute;
  right: -10px;
  top: 120px;
  width: 190px;
  display: grid;
  gap: 12px;
  z-index: 3;
}
.hero-stats div {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: rgba(19, 23, 40, .86);
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
  font-size: 14px;
}
.hero-stats i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.hero-stats .green { background: var(--green); }
.hero-stats .purple { background: var(--purple); }
.hero-stats .blue { background: var(--blue); }

.ticker {
  margin-top: 8px;
  border-top: 1px solid rgba(111, 84, 255, .16);
  border-bottom: 1px solid rgba(111, 84, 255, .16);
  overflow: hidden;
}
.ticker-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
}
.ticker-track {
  flex: 0 0 auto;
  min-width: max-content;
  display: flex;
  gap: 14px;
  padding: 14px 28px 14px 0;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
}
.ticker-track:last-child {
  position: absolute;
  left: 100%;
  top: 0;
}
.ticker-track i { color: #7a79aa; font-style: normal; }

.section { padding: 58px 0 0; }
.section-heading.center {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-heading h2,
.dev-copy h2,
.download-heading h2,
.help-hero h2 { font-size: clamp(36px, 5vw, 58px); }
.section-heading p,
.dev-copy p,
.download-heading p,
.help-hero p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  min-height: 292px;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 26px rgba(0,0,0,.26);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}
.feature-icon.purple { background: linear-gradient(180deg, #9a58ff, #6d37d8); }
.feature-icon.blue { background: linear-gradient(180deg, #449cff, #2769e1); }
.feature-icon.green { background: linear-gradient(180deg, #18d278, #14945b); }
.feature-icon.gold { background: linear-gradient(180deg, #eda938, #b86c1f); }
.feature-card h3 {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.3;
}
.feature-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.feature-card a {
  display: inline-flex;
  margin-top: 18px;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #f1f1fb;
  font-size: 13px;
}

.dev-banner {
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(41,24,68,.8), rgba(16,18,38,.96));
  border: 1px solid rgba(140,77,255,.22);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
}
.dev-copy h2 { margin-top: 16px; }
.dev-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.dev-item { padding: 14px 12px; }
.dev-item b { display: block; font-size: 15px; }
.dev-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.download-panel {
  padding: 26px 26px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7,9,20,.94), rgba(8,10,20,.98));
  border: 1px solid rgba(118, 79, 255, .18);
}
.download-heading { margin-bottom: 28px; }
.download-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(19,22,40,.94), rgba(18,17,36,.88));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.download-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.download-logo {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #9a58ff, #6d37d8);
  box-shadow: 0 18px 34px rgba(121,67,255,.2);
}
.download-left strong,
.download-left span,
.download-left small { display: block; }
.download-left strong { font-size: 28px; letter-spacing: -.04em; }
.download-left span { margin-top: 6px; color: var(--muted); font-size: 14px; }
.download-left small { margin-top: 8px; color: var(--muted-2); font-size: 13px; }
.download-right {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.download-right em {
  color: var(--muted-2);
  font-style: normal;
  font-size: 13px;
}
.download-extra {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
  color: var(--muted-2);
  font-size: 14px;
}
.download-extra b { color: #e8e8f8; }
.download-note {
  min-height: 20px;
  margin-top: 14px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
.download-note.is-visible { color: #d8b76a; }

.help-center { padding-bottom: 20px; }
.help-hero {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(118, 79, 255, .16);
  background: linear-gradient(180deg, rgba(10, 12, 24, .96), rgba(8, 10, 20, .98));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: end;
}
.help-search {
  min-height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-search svg {
  width: 20px;
  height: 20px;
  stroke: #9f8af3;
  fill: none;
  stroke-width: 2;
}
.help-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
}
.help-search input::placeholder { color: var(--muted-2); }
.help-categories {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.help-category {
  min-height: 102px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(118, 79, 255, .12);
  background: linear-gradient(180deg, rgba(10, 12, 24, .94), rgba(7, 9, 18, .98));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.help-category span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: #c2a6ff;
}
.help-category b,
.help-category small { display: block; text-align: left; }
.help-category small { color: var(--muted-2); }
.help-category.active {
  border-color: rgba(151, 99, 255, .42);
  background: linear-gradient(180deg, rgba(42, 24, 76, .94), rgba(11, 13, 25, .98));
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.faq-grid details {
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 14, 26, .95), rgba(9, 11, 20, .98));
  border: 1px solid rgba(118, 79, 255, .12);
}
.faq-grid details.is-hidden { display: none; }
.faq-grid summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary span {
  color: var(--purple);
  font-size: 18px;
  transition: transform .18s ease;
}
.faq-grid details[open] summary span {
  transform: rotate(45deg);
}
.faq-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer {
  padding: 38px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: start;
}
.footer-brand strong,
.footer-brand span { display: block; }
.footer-brand strong { font-size: 18px; }
.footer-brand span { margin-top: 8px; color: var(--muted-2); }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 34px;
}
.footer-columns b,
.footer-columns a { display: block; }
.footer-columns b { margin-bottom: 10px; }
.footer-columns a {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 14px;
}
.footer-end { text-align: right; }
.footer-end small,
.footer-end span { display: block; color: var(--muted-2); }
.footer-end small { margin-top: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(16,18,34,.96);
  border: 1px solid rgba(118, 79, 255, .18);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes birdFly {
  0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
  10%, 85% { opacity: .22; }
  50% { transform: translateX(56vw) translateY(-18px) scale(1); }
  100% { transform: translateX(112vw) translateY(-36px) scale(1); opacity: 0; }
}

@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 900px; width: 100%; margin: 0 auto; }
  .hero-stats { right: 10px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-banner { grid-template-columns: 1fr; }
  .help-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .nav { justify-content: center; }
  .join-button { align-self: center; }
  .app-layout { grid-template-columns: 64px 170px 1fr; }
  .members-panel { display: none; }
  .help-hero,
  .download-box,
  .footer { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: stretch; }
  .download-right { justify-items: stretch; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-end { text-align: left; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .header-wrap { padding-top: 14px; }
  .nav { gap: 12px 18px; font-size: 13px; }
  .join-button { display: none; }
  .hero h1 { font-size: clamp(52px, 15vw, 70px); }
  .hero-text,
  .section-heading p,
  .dev-copy p,
  .download-heading p,
  .help-hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .cta-primary,
  .cta-secondary,
  .download-button { width: 100%; }
  .hero-visual { min-height: auto; }
  .visual-bg { inset: 14px 0 12px 0; }
  .interface-window { margin: 24px 0 0; }
  .app-layout { grid-template-columns: 56px 1fr; }
  .channel-list { display: none; }
  .hero-stats {
    position: static;
    width: 100%;
    margin-top: 14px;
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .help-categories,
  .footer-columns { grid-template-columns: 1fr; }
  .dev-items { grid-template-columns: 1fr; }
  .download-left { flex-direction: column; align-items: flex-start; }
  .download-left strong { font-size: 24px; }
}

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


/* V4.2 final visual corrections after Chromium review */
@media (min-width: 1201px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(560px, 660px); }
  .hero-stats { right: -44px; top: 136px; width: 174px; }
  .hero-stats div { min-height: 52px; font-size: 13px; }
}

@media (max-width: 760px) {
  .hero-visual {
    position: relative;
    height: 430px;
    min-height: 430px;
    overflow: hidden;
    border-radius: 26px;
  }
  .visual-bg { inset: 12px 0 18px 0; border-radius: 24px; }
  .interface-window {
    position: absolute;
    left: 16px;
    top: 24px;
    width: 720px;
    margin: 0;
    transform: scale(.465);
    transform-origin: top left;
  }
  .hero-stats {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    top: auto;
    width: auto;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    z-index: 4;
  }
  .hero-stats div {
    min-height: 42px;
    padding: 0 10px;
    gap: 7px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.2;
  }
  .hero-stats i { width: 7px; height: 7px; flex: 0 0 auto; }
}

/* V4.3 — compact server preview, clean help hub and site auth */
.registration-button {
  min-width: 154px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(151, 99, 255, .34);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(33, 24, 66, .92), rgba(14, 16, 31, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.registration-button svg {
  width: 17px;
  height: 17px;
  fill: #b793ff;
}
.registration-button:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 119, 255, .58);
  background: linear-gradient(180deg, rgba(43, 29, 82, .96), rgba(17, 19, 36, .99));
}

/* The hero now shows only the server rail, server overview and channels. */
.hero-visual {
  min-height: 470px;
}
.visual-bg {
  inset: 26px 0 26px 22px;
}
.interface-window.compact-server-preview {
  width: 100%;
  margin-left: 30px;
}
.server-preview-layout {
  height: 382px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 176px;
  overflow: hidden;
}
.server-rail.compact {
  padding: 15px 12px;
  gap: 15px;
  background: rgba(255,255,255,.014);
}
.server-rail.compact .server-logo {
  width: 42px;
  height: 42px;
}
.server-home-panel {
  position: relative;
  min-width: 0;
  background: rgba(255,255,255,.018);
  overflow: hidden;
}
.server-banner-preview {
  position: relative;
  height: 105px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(140,77,255,.58), transparent 26%),
    radial-gradient(circle at 24% 58%, rgba(65,111,225,.28), transparent 31%),
    linear-gradient(125deg, #16142d 0%, #231943 44%, #101324 100%);
}
.server-banner-preview::before,
.server-banner-preview::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  filter: blur(.2px);
}
.server-banner-preview::before {
  width: 170px;
  height: 2px;
  left: 30px;
  bottom: 24px;
  transform: rotate(-12deg);
}
.server-banner-preview::after {
  width: 110px;
  height: 2px;
  right: 26px;
  top: 35px;
  transform: rotate(17deg);
}
.banner-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -35px;
  top: -68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,83,255,.42), transparent 68%);
}
.server-home-content {
  position: relative;
  padding: 38px 19px 16px;
}
.server-avatar-preview {
  position: absolute;
  top: -27px;
  left: 18px;
  width: 56px;
  height: 56px;
  border: 5px solid #0c0e1b;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #9a58ff, #6534db);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  font-size: 20px;
  font-weight: 900;
}
.server-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.server-title-row strong,
.server-title-row span { display: block; }
.server-title-row strong {
  font-size: 17px;
  letter-spacing: -.03em;
}
.server-title-row span {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}
.server-online {
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
}
.server-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31,216,119,.1);
}
.server-description {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}
.achievement-label {
  margin-top: 19px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.achievement-row {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.achievement-card {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(151,99,255,.1);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}
.achievement-card b,
.achievement-card span { display: block; }
.achievement-card b {
  color: #b995ff;
  font-size: 16px;
}
.achievement-card span {
  margin-top: 9px;
  color: #d7d9e9;
  font-size: 9px;
  line-height: 1.25;
}
.channel-list.compact-channels {
  padding: 14px 12px 12px;
  background: rgba(255,255,255,.028);
}
.compact-channels .channel-header { min-height: 34px; }
.compact-channels .channel-group { margin-top: 12px; }
.compact-channels .channel-group a {
  min-height: 30px;
  margin-top: 5px;
  padding: 0 8px;
  font-size: 11px;
}
.compact-profile {
  min-height: 52px;
  padding: 8px;
}
.compact-profile .profile-avatar {
  width: 30px;
  height: 30px;
}
.compact-profile strong { font-size: 11px; }
.compact-profile span { font-size: 9px; }

/* Help center: no pre-expanded question cards, only categories and support entry. */
.help-hero.help-hero-simple {
  grid-template-columns: minmax(0,1fr) 265px;
  align-items: center;
}
.help-support-link {
  min-height: 76px;
  padding: 15px 18px;
  border: 1px solid rgba(151,99,255,.18);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(43,27,78,.62), rgba(17,19,35,.92));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.help-support-link span {
  color: var(--muted-2);
  font-size: 11px;
}
.help-support-link b {
  color: #cfb9ff;
  font-size: 14px;
}
.help-categories.help-categories-clean {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.help-categories-clean .help-category {
  text-decoration: none;
}
.faq-simple {
  margin-top: 18px;
}

/* Website authentication mirrors the in-app LoginScreen proportions. */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2,3,9,.78);
  backdrop-filter: blur(14px);
  cursor: default;
}
.site-auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 30px 24px;
  border: 1px solid rgba(151,99,255,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(121,67,255,.15), transparent 28%),
    linear-gradient(180deg, #10121f, #0b0d18);
  box-shadow: 0 32px 90px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.035);
  text-align: center;
}
.site-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
}
.site-auth-close:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.site-auth-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.site-auth-heading {
  display: grid;
  gap: 6px;
}
.site-auth-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.035em;
}
.site-auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.site-auth-tabs {
  width: min(250px, 100%);
  margin: 16px auto 0;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(96px,1fr));
  gap: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.site-auth-tabs button {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted-2);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.site-auth-tabs button:hover {
  color: #fff;
  background: rgba(255,255,255,.045);
}
.site-auth-tabs button.active {
  color: #fff;
  background: rgba(139,77,255,.16);
}
.site-auth-form {
  width: 100%;
  margin-top: 16px;
  display: grid;
  gap: 11px;
  text-align: left;
}
.site-auth-form.is-hidden { display: none; }
.site-auth-field {
  display: grid;
  gap: 6px;
}
.site-auth-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.site-auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.04);
  font: inherit;
}
.site-auth-field input:focus {
  border-color: rgba(140,77,255,.72);
  box-shadow: 0 0 0 3px rgba(140,77,255,.11);
}
.site-auth-hint {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}
.site-auth-remember {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.site-auth-remember-custom input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.site-auth-checkmark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(151,99,255,.22);
  background: rgba(255,255,255,.04);
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.site-auth-checkmark::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: transparent;
  transition: background .16s ease;
}
.site-auth-remember-custom input:checked + .site-auth-checkmark {
  border-color: rgba(151,99,255,.42);
  background: rgba(140,77,255,.16);
  box-shadow: 0 0 0 4px rgba(140,77,255,.08);
}
.site-auth-remember-custom input:checked + .site-auth-checkmark::after {
  background: #f4efff;
}
.site-auth-primary {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(151,99,255,.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(140,77,255,.16);
  cursor: pointer;
  font-weight: 700;
}
.site-auth-primary:hover { background: rgba(140,77,255,.23); }
.site-auth-primary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.site-auth-message {
  margin: 13px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(151,99,255,.15);
  border-radius: 10px;
  color: #d4c4ff;
  background: rgba(140,77,255,.07);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}
.site-auth-connection {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
}
.site-auth-connection i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74778b;
}
body.auth-open { overflow: hidden; }

@media (min-width: 1201px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(540px,620px); }
  .hero-stats { display: none; }
}

@media (max-width: 980px) {
  .registration-button { align-self: center; }
  .help-hero.help-hero-simple { grid-template-columns: 1fr; }
  .help-categories.help-categories-clean { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .registration-button { display: none; }
  .hero-visual {
    height: 330px;
    min-height: 330px;
  }
  .interface-window.compact-server-preview {
    left: 13px;
    top: 20px;
    width: 690px;
    transform: scale(.49);
  }
  .server-preview-layout { height: 382px; }
  .hero-stats { display: none; }
  .help-categories.help-categories-clean { grid-template-columns: 1fr; }
  .auth-modal { padding: 10px; }
  .site-auth-card {
    width: min(100%, 420px);
    max-height: calc(100vh - 20px);
    padding: 24px 20px 20px;
    border-radius: 18px;
  }
}

/* Website Functionality V1 */
.release-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 16px;
  color: var(--muted-2);
  font-size: 11px;
}
.release-meta span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.025);
}
.release-meta b { color: #c8cad9; font-weight: 650; }
.release-meta i {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-style: normal;
}
.release-meta .release-hash { max-width: 330px; }

.updates-section { padding-top: 58px; }
.updates-panel {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(122,91,255,.17);
  background:
    radial-gradient(circle at 90% 8%, rgba(121,67,255,.1), transparent 26%),
    linear-gradient(180deg, rgba(9,11,22,.96), rgba(7,9,17,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.updates-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) 180px;
  gap: 28px;
  align-items: end;
}
.updates-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: -.065em;
}
.updates-heading p {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.updates-current {
  min-height: 110px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(151,99,255,.16);
  background: rgba(255,255,255,.035);
}
.updates-current span,
.updates-current strong,
.updates-current small { display: block; }
.updates-current span {
  color: var(--muted-2);
  font-size: 11px;
}
.updates-current strong {
  margin-top: 8px;
  color: #fff;
  font-size: 31px;
  letter-spacing: -.055em;
}
.updates-current small {
  margin-top: 6px;
  color: #b69cff;
}
.changelog-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.changelog-entry {
  padding: 18px 20px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.025);
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 20px;
}
.changelog-entry.loading {
  display: block;
  color: var(--muted-2);
}
.changelog-version strong,
.changelog-version span,
.changelog-version time { display: block; }
.changelog-version strong {
  font-size: 18px;
  letter-spacing: -.04em;
}
.changelog-version span {
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #cdb9ff;
  background: rgba(140,77,255,.11);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.changelog-version time {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
}
.changelog-body h3 {
  margin: 0;
  font-size: 15px;
}
.changelog-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.changelog-body li + li { margin-top: 4px; }

.site-auth-tabs.is-hidden,
.site-auth-account.is-hidden,
.site-auth-form.is-hidden { display: none; }
.site-auth-verify-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(140,77,255,.07);
  border: 1px solid rgba(151,99,255,.12);
  text-align: center;
}
.site-auth-verify-note span,
.site-auth-verify-note strong { display: block; }
.site-auth-verify-note span {
  color: var(--muted-2);
  font-size: 10px;
}
.site-auth-verify-note strong {
  margin-top: 4px;
  font-size: 12px;
}
.site-auth-code-field input {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .34em;
}
.site-auth-inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.site-auth-inline-actions button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10.5px;
  cursor: pointer;
}
.site-auth-inline-actions button:hover { color: #fff; }
.site-auth-inline-actions button:disabled {
  opacity: .45;
  cursor: default;
}
.site-auth-primary.is-busy {
  opacity: .65;
  pointer-events: none;
}
.site-auth-primary.is-busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .75s linear infinite;
}
.site-auth-primary.is-busy svg { display: none; }
.site-auth-account {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.site-auth-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#9a58ff,#6e3be1);
  box-shadow: 0 14px 28px rgba(121,67,255,.22);
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}
.site-auth-account > strong {
  margin-top: 4px;
  font-size: 17px;
}
.site-auth-account > span {
  color: var(--muted-2);
  font-size: 11px;
}
.site-auth-account p {
  max-width: 280px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.site-auth-secondary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  color: #e4e5ef;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.site-auth-secondary:hover { background: rgba(255,255,255,.07); }
.site-auth-connection.online i {
  background: var(--green);
  box-shadow: 0 0 8px rgba(31,216,119,.4);
}
.site-auth-connection.offline i { background: #d05a70; }
.site-auth-message.error {
  border-color: rgba(211,80,100,.2);
  color: #f2a5b0;
  background: rgba(211,80,100,.07);
}
.site-auth-message.success {
  border-color: rgba(31,216,119,.18);
  color: #8fe4b5;
  background: rgba(31,216,119,.06);
}
.registration-button.authenticated {
  border-color: rgba(31,216,119,.2);
  background: linear-gradient(180deg, rgba(21,50,40,.72), rgba(12,23,24,.94));
}
.registration-button.authenticated svg { fill: #71e6aa; }

@keyframes authSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .updates-panel { padding: 22px 18px; }
  .updates-heading { grid-template-columns: 1fr; }
  .updates-current { min-height: auto; }
  .changelog-entry { grid-template-columns: 1fr; gap: 12px; }
  .release-meta { justify-content: flex-start; }
  .release-meta span { width: 100%; }
  .site-auth-inline-actions { flex-direction: column; align-items: flex-start; }
}

/* Prevent nested version span from inheriting the card-label styles. */
.updates-current > span,
.updates-current > strong,
.updates-current > small { display: block; }
.updates-current > span {
  color: var(--muted-2);
  font-size: 11px;
}
.updates-current > strong {
  margin-top: 8px;
  color: #fff;
  font-size: 31px;
  letter-spacing: -.055em;
}
.updates-current > small {
  margin-top: 6px;
  color: #b69cff;
}
.updates-current > strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 760px) {
  .registration-button {
    display: inline-flex;
    width: 100%;
    align-self: stretch;
  }
}


/* V6 — mobile-native layout + SmartCaptcha */
.site-captcha-block {
  min-height: 118px;
  padding: 8px 0 0;
}
.site-smartcaptcha {
  min-height: 100px;
  overflow: hidden;
  border-radius: 12px;
}
.site-captcha-status {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.35;
}
.site-captcha-status.success { color: #8fe4b5; }
.site-captcha-status.error { color: #f2a5b0; }

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  body { background: #070712; }

  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-wrap { padding-top: 10px; }
  .topbar {
    min-height: 58px;
    padding: 8px 9px 8px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 17px;
  }
  .topbar::before {
    content: 'Кукушка';
    color: #f8f7ff;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.035em;
  }
  .nav { display: none; }
  .registration-button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 13px;
    align-self: auto;
    border-radius: 11px;
    font-size: 12px;
  }
  .registration-button svg { width: 15px; height: 15px; }

  .hero {
    padding-top: 42px;
    gap: 26px;
  }
  .hero-copy {
    padding: 0;
    text-align: left;
  }
  .hero-label {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 9px;
    line-height: 1.2;
  }
  .hero h1 {
    margin: 0;
    max-width: 350px;
    font-size: clamp(44px, 13vw, 58px);
    line-height: .94;
    letter-spacing: -.075em;
  }
  .hero-text {
    max-width: 355px;
    margin-top: 19px;
    font-size: 15px;
    line-height: 1.62;
  }
  .hero-badges {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-badges span {
    min-height: 34px;
    justify-content: flex-start;
    padding-inline: 11px;
    font-size: 10px;
  }
  .hero-actions {
    margin-top: 20px;
    gap: 9px;
  }
  .cta-primary,
  .cta-secondary {
    min-height: 48px;
    border-radius: 13px;
  }
  .hero-version {
    margin-top: 12px;
    font-size: 10px;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(151,99,255,.14);
    border-radius: 23px;
    background:
      radial-gradient(circle at 72% 4%, rgba(120,72,255,.2), transparent 32%),
      linear-gradient(180deg, rgba(15,15,31,.98), rgba(8,9,18,.99));
  }
  .visual-bg { display: none; }
  .interface-window.compact-server-preview {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0;
    transform: none;
    border-radius: 16px;
  }
  .window-toolbar {
    min-height: 32px;
    padding-inline: 11px;
  }
  .window-toolbar .toolbar-title { font-size: 8px; }
  .server-preview-layout {
    height: 300px;
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .server-rail.compact {
    padding: 11px 8px;
    gap: 10px;
  }
  .server-rail.compact .server-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .server-home-panel { min-width: 0; }
  .server-banner-preview { height: 82px; }
  .server-home-content { padding: 31px 14px 13px; }
  .server-avatar-preview {
    top: -23px;
    left: 13px;
    width: 48px;
    height: 48px;
    border-width: 4px;
    border-radius: 16px;
  }
  .server-title-row {
    align-items: flex-start;
    gap: 8px;
  }
  .server-title-row strong { font-size: 15px; }
  .server-title-row span { font-size: 9px; }
  .server-online {
    min-height: 24px;
    padding: 0 7px;
    font-size: 8px;
  }
  .server-description {
    margin-top: 11px;
    font-size: 10px;
    line-height: 1.5;
  }
  .achievement-label { margin-top: 13px; font-size: 8px; }
  .achievement-row { margin-top: 7px; gap: 6px; }
  .achievement-card {
    min-height: 58px;
    padding: 8px;
    border-radius: 10px;
  }
  .achievement-card b { font-size: 13px; }
  .achievement-card span { margin-top: 6px; font-size: 7.5px; }
  .channel-list.compact-channels { display: none; }

  .ticker { margin-top: 34px; }
  section:not(.hero) { scroll-margin-top: 82px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2,
  .download-heading h2,
  .help-hero h2,
  .updates-heading h2 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.02;
  }
  .section-heading p,
  .dev-copy p,
  .download-heading p,
  .help-hero p { font-size: 14px; line-height: 1.6; }
  .feature-grid { gap: 10px; }
  .feature-card { min-height: 0; padding: 18px; border-radius: 17px; }
  .dev-banner,
  .download-box,
  .updates-panel,
  .help-hero,
  .help-category,
  .faq-item { border-radius: 18px; }
  .updates-section { padding-top: 40px; }
  .updates-panel { padding: 20px 16px; }
  .changelog-entry { padding: 15px; border-radius: 14px; }
  .help-categories.help-categories-clean { gap: 10px; }
  .footer { gap: 24px; padding-bottom: 28px; }

  .auth-modal {
    align-items: flex-end;
    padding: 0;
  }
  .site-auth-card {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    padding: 24px 18px max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .site-auth-heading h2 { font-size: 25px; }
  .site-auth-tabs { margin-top: 16px; }
  .site-auth-form { gap: 10px; }
  .site-auth-field input { min-height: 44px; }
  .site-captcha-block { min-height: 112px; }
  .site-smartcaptcha { min-height: 100px; }
}

@media (max-width: 390px) {
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(40px, 13vw, 51px); }
  .hero-badges { grid-template-columns: 1fr 1fr; }
  .server-preview-layout { height: 286px; }
  .server-online { display: none; }
  .achievement-card span { font-size: 7px; }
}
