:root {
  --bg: #070711;
  --bg-soft: #0d1020;
  --panel: rgba(18, 20, 36, 0.78);
  --panel-strong: rgba(22, 25, 46, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(167, 139, 250, 0.28);
  --text: #f5f7ff;
  --muted: #a8b0c7;
  --muted-2: #7f88a8;
  --accent: #9b5cff;
  --accent-2: #6f3cff;
  --accent-3: #c38cff;
  --mint: #38f2d1;
  --danger: #ff7b9d;
  --warning: #ffcf70;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --container: 1240px;
}

* {
  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 top left, rgba(116, 62, 255, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(30, 225, 183, 0.1), transparent 22%),
    linear-gradient(180deg, #06070f 0%, #090b15 35%, #06070f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.05));
  pointer-events: none;
  z-index: -2;
}

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

img {
  max-width: 100%;
}

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

/* ===== базовая шапка для остальных страниц ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 16, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(163, 95, 255, 0.9), rgba(94, 55, 255, 0.9));
  box-shadow:
    0 12px 30px rgba(109, 66, 255, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.22s ease;
}

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

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

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 18px;
}

/* ===== buttons ===== */

.btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  color: white;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(112, 60, 255, 0.36);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(112, 60, 255, 0.46);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.075);
}

/* ===== hero ===== */

.hero {
  padding: 72px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: stretch;
}

.hero-card,
.panel,
.band,
.feature-card,
.timeline-card,
.job-card,
.rank-card,
.plugin-card,
.guide-card,
.command-group,
.faq-item,
.rules-card,
.mini-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 104, 255, 0.24), transparent 60%);
  pointer-events: none;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 18px 0 20px;
  max-width: 9ch;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d5beff 42%, #9e68ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 740px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hero-meta.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  min-height: 120px;
  min-width: 0;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.stat strong {
  display: block;
  max-width: 100%;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat.is-ip strong {
  font-size: clamp(16px, 1.7vw, 28px);
  line-height: 1.15;
}

.stat.is-text strong {
  font-size: clamp(16px, 1.7vw, 26px);
  line-height: 1.12;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.side-panel {
  border-radius: 30px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.92), rgba(10, 12, 24, 0.78)),
    radial-gradient(circle at top right, rgba(53, 216, 190, 0.14), transparent 34%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.side-panel h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.side-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.side-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(56, 242, 209, 0.1);
  color: var(--mint);
  font-weight: 800;
  font-size: 13px;
}

.server-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.server-row small {
  display: block;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 6px;
}

.server-row strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

/* ===== sections ===== */

.section {
  padding: 38px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

.band {
  border-radius: 30px;
  padding: 28px 28px;
  min-width: 0;
}

.band-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.band h3 {
  margin: 10px 0 12px;
  font-size: 36px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(163,95,255,0.22), rgba(111,60,255,0.22));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  border: 1px solid var(--line-strong);
}

.step h4 {
  margin: 2px 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ===== cards ===== */

.feature-card,
.timeline-card,
.job-card,
.rank-card,
.plugin-card,
.guide-card,
.command-group,
.rules-card,
.mini-card,
.panel {
  border-radius: 28px;
  padding: 26px;
  min-width: 0;
}

.feature-card h3,
.timeline-card h3,
.job-card h3,
.rank-card h3,
.plugin-card h3,
.guide-card h3,
.command-group h3,
.rules-card h3,
.mini-card h3 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.feature-card p,
.timeline-card p,
.job-card p,
.rank-card p,
.plugin-card p,
.guide-card p,
.command-group p,
.rules-card p,
.mini-card p,
.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(180deg, rgba(159, 109, 255, 0.16), rgba(47, 28, 97, 0.12));
  border: 1px solid var(--line-strong);
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.highlight-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.highlight-item b {
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-mark {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(162, 95, 255, 0.18), rgba(111, 60, 255, 0.08));
  border: 1px solid var(--line-strong);
  font-size: 28px;
  font-weight: 900;
}

.warehouse-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(107, 60, 255, 0.16), rgba(56, 242, 209, 0.06));
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.warehouse-ribbon strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

/* ===== metrics ===== */

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

.metric {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  min-width: 0;
}

.metric span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.metric strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metrics .metric p {
  margin-top: 8px;
  font-size: 15px;
}

.metrics-home {
  margin-top: 6px;
}

.metrics-home .metric strong {
  font-size: clamp(24px, 3vw, 34px);
}

/* ===== grids ===== */

.job-grid,
.plugin-grid,
.rank-grid,
.command-grid,
.guide-grid,
.rules-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.job-card code,
.command-group code,
.guide-card code {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: #e8deff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  margin: 4px 6px 0 0;
}

.job-card ul,
.command-group ul,
.rules-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-ladder {
  display: grid;
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
}

.rank-level {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: white;
  background: linear-gradient(180deg, rgba(155,92,255,0.24), rgba(111,60,255,0.12));
  border: 1px solid var(--line-strong);
}

.rank-role {
  color: var(--muted);
  line-height: 1.65;
}

.rank-tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

/* ===== guides ===== */

.search-panel {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-input {
  flex: 1 1 320px;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  color: white;
  font: inherit;
  padding: 0 18px;
  outline: none;
}

.search-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(111, 60, 255, 0.14);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  color: white;
  border-color: var(--line-strong);
  background: rgba(155, 92, 255, 0.14);
}

/* ===== faq ===== */

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 26px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== cta ===== */

.cta {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(111,60,255,0.2), rgba(56,242,209,0.06));
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  min-width: 0;
}

.cta h3 {
  margin: 6px 0 8px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ===== footer ===== */

.footer {
  padding: 34px 0 50px;
}

.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer-copy {
  max-width: 720px;
  line-height: 1.7;
}

.footer-box--social {
  align-items: center;
}

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

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  transition: 0.22s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.085);
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.social-icon--twitch:hover {
  box-shadow: 0 14px 30px rgba(145, 70, 255, 0.28);
}

.social-icon--telegram:hover {
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.28);
}

.social-icon--tiktok:hover {
  box-shadow: 0 14px 30px rgba(255, 0, 128, 0.20);
}

/* ===== homepage clean header ===== */

.header-clean {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 16, 0.92) 0%,
    rgba(7, 8, 18, 0.84) 100%
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-clean::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(155,92,255,0.28),
    transparent
  );
  pointer-events: none;
}

.header-shell {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 30px rgba(0,0,0,0.16);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: all 0.22s ease;
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.header-nav a.active {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(155,92,255,0.24), rgba(111,60,255,0.15));
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 24px rgba(111,60,255,0.18);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-clean .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.header-clean .brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(163,95,255,0.98), rgba(98,56,255,0.98));
  box-shadow:
    0 12px 30px rgba(111,60,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 22px;
  flex: 0 0 auto;
}

.header-clean .brand span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-clean .brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.header-clean .nav-ip-btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 30px rgba(0,0,0,0.18);
}

.header-clean .nav-ip-btn:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
}

/* ===== helpers ===== */

.online-good {
  color: var(--mint);
}

.online-bad {
  color: var(--danger);
}

.hide {
  display: none !important;
}

/* ===== responsive ===== */

@media (max-width: 1100px) {
  .hero-grid,
  .band-grid,
  .split,
  .job-grid,
  .plugin-grid,
  .rank-grid,
  .command-grid,
  .guide-grid,
  .rules-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 76px 1fr;
  }

  .rank-tag {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .header-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .header-cta {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .navbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

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

@media (max-width: 780px) {
  .hero-meta,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-meta.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-box--social {
    align-items: flex-start;
  }

  .social-links {
    margin-top: 8px;
  }
}

@media (max-width: 700px) {
  .header-clean .brand small {
    display: none;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .hero {
    padding-top: 42px;
  }

  .hero-card,
  .panel,
  .band,
  .feature-card,
  .timeline-card,
  .job-card,
  .rank-card,
  .plugin-card,
  .guide-card,
  .command-group,
  .rules-card,
  .mini-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-meta,
  .hero-meta.is-compact,
  .metrics {
    grid-template-columns: 1fr;
  }

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

  .timeline-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .stat strong,
  .metric strong {
    font-size: 28px;
  }

  .hero-text {
    font-size: 17px;
  }

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

@media (max-width: 560px) {
  .brand small {
    display: none;
  }
}

/* ===== unified header fix ===== */

.navbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.16);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-actions {
  justify-content: flex-end;
}

.feature-grid-3,
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.donate-card {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
  cursor: pointer;
}

.donate-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.donate-card.is-selected {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(155,92,255,0.14), rgba(255,255,255,0.02));
}

.donate-card h3 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.donate-card p,
.donate-card li {
  color: var(--muted);
  line-height: 1.75;
}

.donate-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

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

.donate-top strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.donate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(56, 242, 209, 0.1);
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.donate-builder {
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  color: white;
  font: inherit;
  padding: 0 16px;
  outline: none;
}

.field input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(111, 60, 255, 0.14);
}

.field-full {
  grid-column: 1 / -1;
}

.donate-summary-box {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.summary-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.summary-output {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-weight: 700;
  line-height: 1.7;
  min-height: 112px;
}

.note-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .feature-grid-3,
  .donate-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .navbar {
    grid-template-columns: auto auto;
  }

  .brand {
    min-width: 0;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    order: 2;
  }

  .nav-links {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 10px;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .feature-grid-3,
  .donate-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-output {
    min-height: 0;
  }
}


@media (max-width: 1480px) and (min-width: 921px) {
  .navbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 12px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .nav-links {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 8px;
  }

  .nav-actions {
    grid-area: actions;
    justify-content: flex-end;
  }
}


/* ===== robust dropdown header remake ===== */
.site-header {
  overflow: visible;
}

.navbar {
  position: relative;
  min-height: 86px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  min-width: 0;
  max-width: 100%;
}

.brand span:last-child {
  min-width: 0;
}

.brand:not(.header-clean .brand) {
  overflow: hidden;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand > span:last-child:not(.brand-badge) {
  overflow: hidden;
}

.brand small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-actions {
  width: auto !important;
  grid-column: auto !important;
  justify-content: flex-end;
  flex-shrink: 0;
}

.nav-actions .btn {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  white-space: nowrap;
}

.nav-links {
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 16, 31, 0.98), rgba(11, 13, 25, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  overflow: visible !important;
}

.nav-links.open {
  display: grid !important;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(180deg, rgba(155,92,255,0.22), rgba(111,60,255,0.12));
  border-color: rgba(167,139,250,0.24);
}

@media (max-width: 1200px) {
  .nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .navbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-actions {
    grid-column: 1 / -1 !important;
    justify-content: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .navbar {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
  }

  .mobile-toggle,
  .nav-actions,
  .nav-actions .btn {
    width: 100%;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }
}


/* ===== refined elegant header ===== */
.header-refined {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(6, 7, 16, 0.92), rgba(7, 8, 18, 0.84));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-refined::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,92,255,0.26), transparent);
  pointer-events: none;
}

.header-bar {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.header-refined .brand {
  min-width: 0;
  max-width: 100%;
}

.header-refined .brand > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-refined .brand small {
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.16);
}

.top-nav a,
.more-panel a,
.mobile-nav a {
  color: var(--muted);
  font-weight: 800;
  transition: 0.22s ease;
}

.top-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1;
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(155,92,255,0.24), rgba(111,60,255,0.15));
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px rgba(111,60,255,0.18);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.header-mini-btn,
.header-menu-btn {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 30px rgba(0,0,0,0.18);
}

.header-mini-btn {
  padding: 0 18px;
}

.header-mini-btn.active,
.header-mini-btn:hover,
.header-menu-btn:hover {
  background: linear-gradient(180deg, rgba(155,92,255,0.22), rgba(111,60,255,0.12));
  border-color: rgba(167,139,250,0.22);
}

.header-copy-btn {
  min-height: 52px;
  padding-inline: 18px;
  border-radius: 18px;
  white-space: nowrap;
}

.header-menu-btn {
  display: none;
  width: 52px;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.more-wrap {
  position: relative;
}

.more-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14,16,31,0.98), rgba(11,13,25,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
}

.more-wrap.open .more-panel {
  display: grid;
}

.more-panel a,
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 1.2;
}

.more-panel a:hover,
.more-panel a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(155,92,255,0.24), rgba(111,60,255,0.15));
  border-color: rgba(167,139,250,0.22);
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav.open {
  display: grid;
}

@media (max-width: 1240px) {
  .top-nav a {
    padding-inline: 12px;
    font-size: 13px;
  }

  .header-bar {
    gap: 12px;
  }
}

@media (max-width: 1120px) {
  .top-nav,
  .more-wrap {
    display: none;
  }

  .header-menu-btn {
    display: inline-flex;
  }

  .header-bar {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 700px) {
  .header-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-tools {
    width: 100%;
    justify-content: stretch;
  }

  .header-copy-btn {
    flex: 1 1 auto;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }
}


/* ===== publish polish ===== */
.hero-card--page .hero-title {
  max-width: 11ch;
  font-size: clamp(40px, 6vw, 74px);
}

.hero-card--page .hero-text {
  max-width: 860px;
}

@media (max-width: 680px) {
  .hero-card--page .hero-title {
    max-width: 100%;
  }
}
