*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #050806;
  --surface: #0b0f0d;
  --surface-2: #101411;
  --surface-3: #17191f;
  --text: #edf3ee;
  --text-mid: #a6b1aa;
  --text-dim: #68746d;
  --line: rgba(237, 243, 238, 0.12);
  --line-strong: rgba(237, 243, 238, 0.22);
  --accent: #16c784;
  --accent-soft: rgba(22, 199, 132, 0.13);
  --purple: #9b6cff;
  --amber: #f0b94c;
  --danger: #ef4444;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(22, 199, 132, 0.09), transparent 28rem),
    linear-gradient(180deg, #060907 0%, var(--bg) 34rem);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

.page,
.shell {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

.brand,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.brand:hover,
.logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.brand-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 7px;
  flex: 0 0 auto;
}

.links,
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 700;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  border-radius: 8px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 13, 0.68);
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  white-space: nowrap;
}

.button.primary,
.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #02120b;
  box-shadow: none;
}

.button:hover,
.btn:hover {
  border-color: rgba(237, 243, 238, 0.34);
  color: var(--text);
}

.button.primary:hover,
.btn-primary:hover {
  color: #02120b;
  opacity: 0.92;
}

.product-preview {
  height: min(58vh, 560px);
  min-height: 430px;
  grid-template-columns: 15.8rem minmax(16.5rem, 1fr) 10.8rem;
  grid-template-rows: 2.35rem minmax(0, 1fr) 3.6rem;
  border-color: rgba(237, 243, 238, 0.16);
  background: #181a1f;
}

.preview-top {
  height: 2.2rem;
  background: #0c0e10;
}

.rail-tile,
.rail-avatar {
  border-radius: 8px;
  background: #101512;
}

.rail-tile.active {
  background: var(--accent);
}

.bottom-rail {
  background: #08090b;
}

.rail-avatar {
  background-image: url("/assets/neon-tree-small.svg");
  background-size: cover;
  background-position: center;
  background-color: transparent;
}

.server-card {
  min-height: 7rem;
  background:
    linear-gradient(140deg, rgba(171, 44, 255, 0.72), rgba(34, 14, 46, 0.68) 44%, transparent 76%),
    #111316;
}

.server-avatar,
.mini-avatar,
.msg-avatar {
  background-image: url("/assets/neon-tree-small.svg");
  background-size: cover;
  background-position: center;
  background-color: transparent;
}

.channel-pane {
  background: #111315;
}

.chat-pane {
  background: #191b20;
}

.member-pane {
  background: #08090b;
}

.member {
  background: rgba(22, 199, 132, 0.12);
}

.message strong {
  color: var(--purple);
}

.message p {
  max-width: 28ch;
}

.composer {
  color: var(--text-dim);
}

.download .button {
  min-width: 10.75rem;
}

.download,
.card,
.panel,
.rendered,
.table {
  border-color: var(--line);
  background: rgba(11, 15, 13, 0.72);
}

footer {
  color: var(--text-dim);
}

.page > nav,
.page nav,
.nav-inner {
  min-height: 64px;
}

.page > nav {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.header,
.page > .content {
  max-width: 760px;
}

.header h1,
.content h1,
.hero h1 {
  letter-spacing: 0;
  text-transform: none;
}

.content h2,
main h2,
.hero h1 {
  color: var(--text);
}

.content p,
.content li,
main p,
main li {
  color: var(--text-mid);
}

.content table,
main table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(11, 15, 13, 0.54);
}

.content th,
.content td,
main th,
main td {
  border-color: var(--line);
}

.content th,
main th {
  color: var(--accent);
}

.status-label.operational {
  color: var(--accent);
}

.status-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 39%, rgba(22, 199, 132, 0.12), transparent 25rem),
    linear-gradient(180deg, #060907 0%, var(--bg) 100%);
}

.status-page .page {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  min-height: calc(100vh - 6rem);
  display: grid;
  grid-template-rows: auto 1fr;
}

.status-page .content {
  width: min(100%, 540px);
  max-width: none;
  margin: 0 auto;
  padding: 0 0 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.status-mark {
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  background: rgba(11, 15, 13, 0.72);
  box-shadow: 0 0 2rem rgba(22, 199, 132, 0.1);
}

.status-mark img {
  width: 2.5rem;
  height: 2.5rem;
}

.status-mark.operational {
  border-color: rgba(22, 199, 132, 0.32);
  box-shadow: 0 0 2.5rem rgba(22, 199, 132, 0.2);
}

.status-mark.down {
  border-color: rgba(239, 68, 68, 0.36);
  box-shadow: 0 0 2.5rem rgba(239, 68, 68, 0.15);
}

.status-page hr {
  width: min(560px, calc(100% - 40px));
}

.status-page footer {
  width: min(560px, calc(100% - 40px));
  margin-inline: auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 15, 13, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.34);
}

.card > .logo {
  justify-content: center;
}

.card > .logo .brand-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
}

.card .hint,
.card .subtitle {
  color: var(--text-mid);
}

.layout {
  align-items: start;
}

aside {
  border-color: var(--line);
}

pre {
  border-color: var(--line);
  background: #070908;
}

code {
  background: var(--accent-soft);
  color: #23e3a1;
}

@media (min-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(620px, 1.28fr);
  }
}

@media (max-width: 820px) {
  .page,
  .shell {
    width: min(100% - 28px, 1180px);
  }
}

@media (max-width: 820px) {
  .product-preview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 2.35rem minmax(0, 1fr) 3.5rem;
  }

  .chat-pane {
    grid-column: 1;
    grid-row: 2;
  }

  .bottom-rail {
    grid-column: 1;
    grid-row: 3;
  }

  .download .button {
    min-width: 0;
  }
}
