:root {
  --hover: #262b34; --faint: #596070;
  --bg: #13151a; --pane: #181b21; --raised: #1f232b; --line: #262a32; --line-strong: #323844;
  --text: #e6e8ec; --text-2: #b3b9c4; --muted: #7d8492;
  --accent: #efa25b; --accent-ink: #20150a; --accent-soft: #efa25b1f; --live: #52d3a2;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif }
a { color: var(--accent); text-decoration: none }
a:hover { text-decoration: underline }
code, .mono { font-family: var(--mono); font-size: .9em }
code { background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px }
pre { background: var(--pane); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.55 var(--mono); margin: 10px 0 18px }
pre code { background: none; border: 0; padding: 0; font-size: inherit }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px }

/* Header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 2 }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 58px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .06em }
.brand:hover { text-decoration: none }
.brand { text-transform: lowercase; letter-spacing: -.01em; font-size: 18px }
.logo { display: inline-flex; align-items: center; gap: 3px; height: 22px; width: 24px }
.logo i { display: block; width: 3.5px; border-radius: 2px; background: var(--accent); height: 9px }
.logo i:nth-child(2) { height: 16px }
.logo i:nth-child(3) { height: 22px }
.logo i:nth-child(4) { height: 12px }
/* A soft glow behind the hero, like the app's accent. */
.hero { position: relative; isolation: isolate }
.hero::before { content: ''; position: absolute; inset: -40px auto auto -120px; width: 520px; height: 320px; background: radial-gradient(closest-side, #efa25b26, transparent); pointer-events: none; z-index: -1 }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap }
.nav a { color: var(--text-2); padding: 6px 10px; border-radius: 8px; font-size: 15px }
.nav a:hover, .nav a.active { background: var(--raised); color: var(--text); text-decoration: none }

/* Hero */
.hero { padding: 72px 0 56px }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; max-width: 14em }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 36em; margin: 0 0 30px }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--text); background: var(--raised) }
.button:hover { text-decoration: none; border-color: var(--muted) }
.button.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink) }
.button.primary:hover { filter: brightness(1.06) }
.button small { font-weight: 400; opacity: .8 }
.note { color: var(--muted); font-size: 14px }

/* Sections */
section { padding: 36px 0 }
h2 { font-size: 26px; margin: 0 0 18px; letter-spacing: -.01em }
h3 { font-size: 18px; margin: 26px 0 8px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px }
.card { background: var(--pane); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px }
.card h3 { margin: 0 0 6px; font-size: 17px }
.card p { margin: 0; color: var(--text-2); font-size: 15px }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600 }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 18px }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; display: grid; place-items: center }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px }
.download { display: flex; flex-direction: column; gap: 6px }
.download .hash { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all }

/* Server list */
.servers { display: flex; flex-direction: column; gap: 10px }
.server { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; background: var(--pane); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px }
.server-avatar { width: 48px; height: 48px; border-radius: 12px; background: hsl(var(--h, 30) 42% 34%); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden }
.server-avatar img { width: 100%; height: 100%; object-fit: cover }
.server-name { font-weight: 650; overflow-wrap: anywhere }
.server-desc { color: var(--text-2); font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; white-space: pre-line }
.server-meta { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap }
.server-side { text-align: right; white-space: nowrap }
.server-users { font-weight: 650; font-variant-numeric: tabular-nums }
.server-users::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 7px; vertical-align: 1px }
.copy { font: inherit; font-size: 13px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 9px; cursor: pointer; margin-top: 6px }
.copy:hover { border-color: var(--muted) }
.copy.done { border-color: var(--live); color: var(--live) }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px }
details summary { cursor: pointer; color: var(--muted); font-size: 13px }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 14px }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between }

@media (max-width: 640px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px }
  .nav { margin-left: 0 }
  .hero { padding: 40px 0 28px }
  .server { grid-template-columns: 40px 1fr }
  .server-avatar { width: 40px; height: 40px }
  .server-side { grid-column: 1 / -1; text-align: left }
}

/* What's new */
.release { margin-bottom: 14px; padding: 20px 24px }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px }
.release-head h3 { margin: 0; font-size: 19px }
.release-head time { margin-left: auto; color: var(--muted); font-size: 14px }
.release-notes { color: var(--text-2); font-size: 15.5px }
.release-notes > :first-child { margin-top: 0 }
.release-notes > :last-child { margin-bottom: 0 }
.release-notes ul { padding-left: 20px; margin: 6px 0 }
.release-notes li { margin: 3px 0 }
.release-notes h1, .release-notes h2, .release-notes h3 { font-size: 15px; color: var(--text); margin: 14px 0 4px }

/* ---------- 2: icons, hero, screenshots, docs ---------- */
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0 }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-left: 6px }
.nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.07) }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px }
.lead { font-size: 18px; color: var(--text-2); max-width: 44em }

/* Hero */
.hero { text-align: center; padding: 76px 0 34px }
.hero h1 { font-size: clamp(34px, 6.4vw, 60px); margin: 14px auto 18px; max-width: none }
.hero .lead { margin: 0 auto 30px; max-width: 40em }
.hero .actions { justify-content: center }
.hero::before { inset: -10px auto auto 50%; transform: translateX(-50%); width: 900px; height: 520px }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 4px 12px; border-radius: 99px }
.hero .note { margin-top: 14px }

/* Screenshots in a window frame */
.shot { display: block; margin: 0; color: inherit }
.shot:hover { text-decoration: none }
.shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--pane); box-shadow: 0 30px 80px -20px #000c, 0 0 0 1px #ffffff08 }
.shot-frame img { display: block; width: 100%; height: auto }
.shot-hero { margin: 0 auto 30px; max-width: 1120px; position: relative }
.shot-hero::before { content: ''; position: absolute; inset: 8% 6% -4%; background: radial-gradient(closest-side, #efa25b38, transparent); filter: blur(30px); z-index: -1 }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
.gallery-grid .shot-frame { transition: transform .2s, border-color .2s }
.gallery-grid .shot:hover .shot-frame { transform: translateY(-3px); border-color: var(--accent) }

/* How it works */
.steps-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 40px 0 10px }
.step-card { position: relative; background: var(--pane); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px }
.step-card b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; margin-bottom: 12px }
.step-card h3 { margin: 0 0 6px; font-size: 17px }
.step-card p { margin: 0 0 10px; color: var(--text-2); font-size: 15px }
.step-card a { font-size: 14px }

/* Features */
.features .card svg.i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px }

/* Why */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start }
.ticks { list-style: none; padding: 0; margin: 0 }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--text-2) }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) }
.ticks strong { color: var(--text) }
.online-card { padding: 24px }
.online-card h3 { margin: 0 0 8px }
.online-card .button { margin-top: 8px }
.online-count { display: flex; align-items: center; gap: 9px; color: var(--text) !important; font-weight: 600 }
.online-count span { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px #52d3a233 }

/* Footer */
.footer-grid { display: grid !important; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px }
.footer-grid > div { display: flex; flex-direction: column; gap: 7px; font-size: 14px }
.footer-grid strong { color: var(--text); font-size: 13px; margin-bottom: 4px }
.footer-grid a { color: var(--text-2) }
.footer-grid a:hover { color: var(--accent) }
.footer-grid p { margin: 6px 0 0; max-width: 22em }

/* Documentation */
.docs-hero { padding-bottom: 6px }
.doc-card { color: inherit; transition: border-color .15s, transform .15s }
.doc-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px) }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 40px; align-items: start; padding-top: 34px; max-width: 1240px }
.doc-nav { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; font-size: 14.5px }
.doc-nav summary { display: none }
.doc-nav-group { display: flex; flex-direction: column; margin-bottom: 18px }
.doc-nav-group span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px 10px }
.doc-nav-group a { color: var(--text-2); padding: 5px 10px; border-radius: 7px }
.doc-nav-group a:hover { background: var(--raised); color: var(--text); text-decoration: none }
.doc-nav-group a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600 }
.doc { min-width: 0 }
.crumbs { margin: 0 0 6px; font-size: 14px }
.crumbs a { color: var(--muted) }
.doc-toc { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; border-left: 1px solid var(--line); padding-left: 14px }
.doc-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px }
.doc-toc a { color: var(--text-2); line-height: 1.4; padding: 2px 0 }
.doc-toc a:hover { color: var(--accent); text-decoration: none }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--text-2) }
.prose > p:first-child { font-size: 18px; color: var(--text) }
.prose h2 { color: var(--text); font-size: 23px; margin: 40px 0 12px; scroll-margin-top: 80px; position: relative }
.prose h3 { color: var(--text); font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 80px; position: relative }
.prose .anchor { position: absolute; left: -22px; color: var(--muted); opacity: 0; font-weight: 400 }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; text-decoration: none }
.prose strong { color: var(--text) }
.prose ul, .prose ol { padding-left: 22px }
.prose li { margin: 6px 0 }
.prose li > p { margin: 0 }
.prose blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--text) }
.prose blockquote p { margin: 0 }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; display: block; overflow-x: auto }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top }
.prose th { color: var(--text); font-weight: 600; border-bottom-color: var(--line-strong); white-space: nowrap }
.prose td code, .prose li code, .prose p code { white-space: nowrap }
.doc-pager { display: flex; justify-content: space-between; gap: 14px; margin: 48px 0 10px; padding-top: 22px; border-top: 1px solid var(--line) }
.doc-pager a { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; min-width: 0 }
.doc-pager a:hover { border-color: var(--accent); text-decoration: none }
.doc-pager small { color: var(--muted); font-weight: 400; font-size: 13px }
.doc-pager .next { text-align: right; margin-left: auto }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10; background: #07080bdd; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; cursor: zoom-out }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 80px #000 }

@media (max-width: 1100px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr) }
  .doc-toc { display: none }
}
@media (max-width: 800px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 16px }
  .doc-nav { position: static; max-height: none }
  .doc-nav summary { display: block; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text) }
  .doc-nav details[open] summary { margin-bottom: 12px }
  .steps-band, .split, .gallery-grid { grid-template-columns: minmax(0, 1fr) }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .prose .anchor { display: none }
}
@media (max-width: 640px) {
  .nav a { padding: 6px 8px; font-size: 14px }
  .hero { padding-top: 40px }
  .footer-grid { grid-template-columns: 1fr }
}
