:root {
  --hb-bg-0: #05090f;
  --hb-bg-1: #0a1320;
  --hb-bg-2: #0d2236;
  --hb-bg-3: #142a42;
  --hb-surface: rgba(8, 16, 26, 0.9);
  --hb-surface-2: rgba(10, 20, 34, 0.78);
  --hb-surface-3: rgba(4, 10, 18, 0.62);
  --hb-stroke: rgba(110, 160, 220, 0.22);
  --hb-stroke-strong: rgba(120, 190, 255, 0.34);
  --hb-ink: #f2f6ff;
  --hb-ink-dim: rgba(242, 246, 255, 0.72);
  --hb-ink-muted: rgba(242, 246, 255, 0.46);
  --hb-accent: #4cc6ff;
  --hb-accent-2: #2f8bff;
  --hb-ok: #43d19d;
  --hb-warn: #f2c36f;
  --hb-bad: #ff6f7d;
  --hb-radius: 18px;
  --hb-radius-lg: 24px;
  --hb-shadow: 0 22px 48px rgba(2, 6, 14, 0.56);
  --hb-mono: "JetBrains Mono", "Segoe UI", monospace;
}

.site-page,
.site-page * {
  box-sizing: border-box;
}

.site-page {
  color: var(--hb-ink);
  background:
    radial-gradient(720px 520px at 12% 10%, rgba(76, 198, 255, 0.18), transparent 62%),
    radial-gradient(640px 420px at 88% 0%, rgba(47, 139, 255, 0.18), transparent 58%),
    linear-gradient(145deg, var(--hb-bg-0) 0%, var(--hb-bg-1) 42%, var(--hb-bg-2) 76%, var(--hb-bg-3) 100%);
  overflow-x: hidden;
}

.site-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px);
  opacity: 0.68;
}

.site-page .bg {
  z-index: 0;
}

.site-page :focus-visible {
  outline: 2px solid rgba(76, 198, 255, 0.95);
  outline-offset: 3px;
}

.site-page a {
  text-underline-offset: 3px;
}

.site-page .top,
.site-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(5, 10, 18, 0.9);
  box-shadow: 0 14px 30px rgba(2, 6, 14, 0.34);
  backdrop-filter: blur(14px);
}

.site-page .shell {
  width: 100%;
  max-width: 1320px;
  padding: 0 24px 56px;
}

.site-page .brand {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: var(--hb-ink);
  text-decoration: none;
}

.site-page .logo,
.site-page .brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #031422;
  background: linear-gradient(135deg, #7ed8ff, #2a74de);
  box-shadow: 0 18px 36px rgba(39, 90, 170, 0.42);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-page .brand h1,
.site-page .brand-copy strong {
  color: var(--hb-ink);
  font-size: 18px;
  line-height: 1.15;
}

.site-page .brand p,
.site-page .brand-copy span {
  color: var(--hb-ink-dim);
  font-size: 12px;
}

.site-page .tabs,
.site-page .site-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  max-width: 100%;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 230, 0.16);
  background: rgba(10, 20, 32, 0.78);
  box-shadow: inset 0 0 0 1px rgba(76, 198, 255, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.site-page .tabs::-webkit-scrollbar,
.site-page .site-tabs::-webkit-scrollbar {
  display: none;
}

.site-page .tab {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--hb-ink-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-page .tab.is-active,
.site-page .tab[aria-current="page"] {
  color: var(--hb-ink);
  background: linear-gradient(135deg, rgba(76, 198, 255, 0.28), rgba(47, 139, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(76, 198, 255, 0.36);
}

.site-page .tab[data-external="true"]::after,
.site-page .tab[data-tab-external]::after {
  content: "external";
  margin-left: 6px;
  color: var(--hb-ink-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.site-page .controls {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
}

.site-page .discord-link,
.site-page .icon-link {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 230, 0.16);
  background: rgba(10, 20, 32, 0.78);
}

.site-page .discord-glyph {
  color: #f7f9ff;
}

.site-page .wrap {
  width: 100%;
  max-width: 1320px;
}

.site-page .card,
.site-page .panel,
.site-page .fact-box,
.site-page .value-box,
.site-page .note,
.site-page .exp-card,
.site-page .check-card,
.site-page .timeline-card,
.site-page .market-card,
.site-page .plain-card,
.site-page .walk-card,
.site-page .step-card,
.site-page .summary-item,
.site-page .kpi-card,
.site-page .stat-block,
.site-page .height-card {
  border-color: var(--hb-stroke);
  background-color: var(--hb-surface);
  box-shadow: var(--hb-shadow);
}

.site-page .card,
.site-page .panel {
  border-radius: var(--hb-radius-lg);
}

.site-page .label,
.site-page .kpi-label,
.site-page .field-label {
  color: var(--hb-ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-page .mono,
.site-page code,
.site-page pre {
  font-family: var(--hb-mono);
}

.site-page .btn,
.site-page .copy-btn,
.site-page button,
.site-page select,
.site-page input,
.site-page textarea {
  font: inherit;
}

.site-page .btn,
.site-page .copy-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.site-page .btn:hover,
.site-page .copy-btn:hover {
  transform: translateY(-1px);
}

.site-page .copy-btn,
.site-page .btn.ghost {
  color: var(--hb-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 14, 24, 0.74);
  box-shadow: none;
}

.site-page .copy-btn.is-copied,
.site-page .btn.is-copied {
  border-color: rgba(67, 209, 157, 0.42);
  background: rgba(67, 209, 157, 0.18);
  color: #d8f8ed;
}

.site-page .copy-btn.is-copy-error,
.site-page .btn.is-copy-error {
  border-color: rgba(255, 111, 125, 0.38);
  background: rgba(255, 111, 125, 0.14);
  color: #ffd8df;
}

.site-page input,
.site-page select,
.site-page textarea {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(6, 14, 24, 0.88);
  color: var(--hb-ink);
}

.site-page input::placeholder,
.site-page textarea::placeholder {
  color: rgba(242, 246, 255, 0.42);
}

.site-page .status-line,
.site-page .status,
.site-page .empty,
.site-page .referral-empty,
.site-page .muted,
.site-page .field-hint {
  border-radius: 14px;
}

.site-page .status-line,
.site-page .status {
  padding: 10px 12px;
  border: 1px solid rgba(120, 170, 230, 0.14);
  background: rgba(6, 14, 24, 0.58);
}

.site-page .status-line[data-state="ok"],
.site-page .status[data-state="ok"] {
  border-color: rgba(67, 209, 157, 0.28);
  background: rgba(67, 209, 157, 0.1);
  color: #d8f8ed;
}

.site-page .status-line[data-state="error"],
.site-page .status[data-state="error"] {
  border-color: rgba(255, 111, 125, 0.28);
  background: rgba(255, 111, 125, 0.1);
  color: #ffd8df;
}

.site-page .status-line[data-state="loading"],
.site-page .status[data-state="loading"] {
  border-color: rgba(242, 195, 111, 0.28);
  background: rgba(242, 195, 111, 0.1);
  color: #fff1d3;
}

.site-page .empty,
.site-page .referral-empty,
.site-page .muted {
  color: var(--hb-ink-dim);
  border: 1px dashed rgba(120, 170, 230, 0.2);
  background: rgba(6, 14, 24, 0.52);
}

.site-page table {
  border-collapse: collapse;
}

.site-page th {
  color: var(--hb-ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-page td {
  color: var(--hb-ink-dim);
}

.site-page .trust-note,
.site-page .ops-trust-strip {
  border: 1px solid rgba(67, 209, 157, 0.2);
  border-radius: var(--hb-radius);
  background: rgba(67, 209, 157, 0.08);
  color: #d8f8ed;
}

.site-page .trust-note {
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: 12px 14px;
  line-height: 1.45;
}

.site-page .ops-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.site-page .ops-trust-strip > * {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(6, 14, 24, 0.38);
}

.site-page .site-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-page .site-quick-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 230, 0.16);
  background: rgba(6, 14, 24, 0.56);
  color: var(--hb-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-page .top,
  .site-page .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-page .tabs,
  .site-page .site-tabs,
  .site-page .controls {
    justify-self: stretch;
    width: 100%;
  }

  .site-page .controls {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-page {
    max-width: 100vw;
  }

  .site-page .top,
  .site-page .topbar {
    position: static;
    padding: 14px;
    overflow: hidden;
    backdrop-filter: none;
  }

  .site-page .wrap,
  .site-page .shell {
    width: 100%;
    max-width: 100vw;
    padding-inline: 14px;
    overflow: hidden;
  }

  .site-page .brand,
  .site-page .tabs,
  .site-page .site-tabs,
  .site-page .controls,
  .site-page .hero,
  .site-page .card,
  .site-page .panel,
  .site-page .table-wrap,
  .site-page .workers-shell {
    min-width: 0;
    max-width: 100%;
  }

  .site-page .brand p,
  .site-page .brand-copy span {
    display: none;
  }

  .site-page .tabs,
  .site-page .site-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .site-page .controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-page .controls .btn,
  .site-page .controls .copy-btn,
  .site-page .controls .icon-link,
  .site-page .controls .discord-link,
  .site-page .controls .select,
  .site-page .controls select,
  .site-page .discord-link,
  .site-page .icon-link {
    width: 100%;
    justify-content: center;
  }

  .site-page h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .site-page h2 {
    overflow-wrap: break-word;
  }

  .site-page .btn,
  .site-page .copy-btn {
    width: 100%;
    min-height: 44px;
  }

  .site-page .ops-trust-strip {
    grid-template-columns: 1fr;
  }

  .site-page .mono,
  .site-page .value,
  .site-page .mini-value,
  .site-page .sub,
  .site-page td,
  .site-page strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

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