/* LibraIRC — static site stylesheet. No frameworks, no build step. */

/* ---------- Fonts (Geist, SIL Open Font License, self-hosted) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Theme tokens ---------- */
:root {
  --radius: 0.625rem;
  --primary: oklch(0.637 0.237 46.201);
  --primary-fg: oklch(0.98 0.005 47.604);
  --primary-soft: oklch(0.637 0.237 46.201 / 10%);
  --primary-line: oklch(0.637 0.237 46.201 / 25%);
  --bg: oklch(0.985 0.002 285.83);
  --fg: oklch(0.12 0.01 285.83);
  --card: oklch(1 0 0);
  --muted: oklch(0.955 0.005 285.83);
  --muted-fg: oklch(0.47 0.01 285.83);
  --border: oklch(0 0 0 / 9%);
  --header-bg: oklch(0.985 0.002 285.83 / 90%);
  --success: oklch(0.6 0.15 160);
  --success-soft: oklch(0.6 0.15 160 / 12%);
  --info: oklch(0.6 0.13 230);
  --info-soft: oklch(0.6 0.13 230 / 12%);
  --shadow: 0 20px 50px -20px oklch(0.637 0.237 46.201 / 18%);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root.dark {
  --primary: oklch(0.705 0.213 47.604);
  --primary-fg: oklch(0.12 0.03 47.604);
  --primary-soft: oklch(0.705 0.213 47.604 / 12%);
  --primary-line: oklch(0.705 0.213 47.604 / 28%);
  --bg: #1e293b;
  --fg: #f8fafc;
  --card: #1e293b;
  --muted: oklch(0.3 0.02 260);
  --muted-fg: oklch(0.72 0.015 260);
  --border: oklch(1 0 0 / 9%);
  --header-bg: rgb(30 41 59 / 90%);
  --success: oklch(0.78 0.15 160);
  --info: oklch(0.78 0.12 230);
  --shadow: 0 20px 50px -20px rgb(0 0 0 / 50%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
code, .mono { font-family: var(--font-mono); }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id], [id="chat"] { scroll-margin-top: 4.5rem; }
.accent { color: var(--primary); }
.muted { color: var(--muted-fg); }
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--primary); color: var(--primary-fg); padding: .5rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.25rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
.btn-outline { border: 1px solid var(--border); background: var(--card); }
.btn-outline:hover { background: var(--muted); }
.btn-lg { height: auto; padding: 1.1rem 2rem; font-size: 1.125rem; font-weight: 700; }
.btn-sm { height: 2rem; padding: 0 1rem; }
.icon-btn { display: inline-flex; padding: .5rem; border-radius: calc(var(--radius) - 2px); color: var(--muted-fg); transition: color .15s, background-color .15s; }
.icon-btn:hover { color: var(--fg); background: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .2s, border-color .2s, box-shadow .2s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: -.01em; }
.brand .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); stroke-width: 2.5; }
.nav-links { display: none; gap: .125rem; }
.nav-links a { display: inline-flex; align-items: center; gap: .375rem; padding: .5rem .75rem; font-size: .875rem; color: var(--muted-fg); border-radius: calc(var(--radius) - 2px); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--fg); background: var(--muted); }
.nav-links .icon { width: .875rem; height: .875rem; }
.nav-right { display: none; align-items: center; gap: .5rem; }
.nav-divider { width: 1px; height: 1.25rem; background: var(--border); margin: 0 .25rem; }
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon { width: 1rem; height: 1rem; }
.theme-toggle .i-sun, :root.dark .theme-toggle .i-moon { display: none; }
:root.dark .theme-toggle .i-sun { display: block; }
.mobile-menu { background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.mobile-menu nav { display: flex; flex-direction: column; gap: .125rem; padding: .5rem 1rem; }
.mobile-menu nav a { padding: .625rem .75rem; font-size: .875rem; color: var(--muted-fg); border-radius: calc(var(--radius) - 2px); }
.mobile-menu nav a:hover { color: var(--fg); background: var(--muted); }
.mobile-menu .row { display: flex; gap: .5rem; padding: .75rem; margin-top: .5rem; border-top: 1px solid var(--border); }
.mobile-menu .row .btn { flex: 1; }
@media (min-width: 1024px) {
  .nav-links, .nav-right { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 3.5rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% -20%, var(--primary-soft), var(--bg) 60%); }
.hero-inner { padding: 3rem 0 0; }
@media (min-width: 1024px) { .hero-inner { padding-top: 5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: 1.5rem; }
.hero h1 span { display: block; color: var(--primary); }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--muted-fg); line-height: 1.6; margin-bottom: 2rem; }
.lead strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1rem; }
.trust li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; color: var(--muted-fg); }
.trust .icon { color: var(--primary); }

/* Terminal — always dark so it stays readable in light mode */
.terminal { border-radius: calc(var(--radius) + 4px); border: 1px solid oklch(1 0 0 / 10%); background: #0d1117; overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: #161b22; border-bottom: 1px solid oklch(1 0 0 / 8%); }
.dots { display: flex; align-items: center; gap: .5rem; }
.dots i { width: .75rem; height: .75rem; border-radius: 50%; background: #ff5f56; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #27c93f; }
.dots.small { gap: .375rem; }
.dots.small i { width: .5rem; height: .5rem; }
.term-title { margin-left: .5rem; font-family: var(--font-mono); font-size: .75rem; color: #8b949e; }
.copy-btn { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 6px; font-size: .75rem; font-weight: 500; color: #8b949e; transition: color .15s, background-color .15s; }
.copy-btn:hover { color: #f0f6fc; background: oklch(1 0 0 / 8%); }
.copy-btn .icon { width: .875rem; height: .875rem; }
.copy-btn .i-check { display: none; color: #3fb950; }
.copy-btn.copied .i-check { display: block; }
.copy-btn.copied .i-copy { display: none; }
.term-body { padding: 1.25rem; min-height: 14rem; font-family: var(--font-mono); font-size: .8125rem; color: #e6edf3; }
@media (min-width: 640px) { .term-body { font-size: .875rem; } }
.term-body p { margin-bottom: .5rem; opacity: 0; transform: translateX(-4px); animation: line-in .2s ease-out forwards; }
.term-body p:nth-child(1) { animation-delay: .3s; } .term-body p:nth-child(2) { animation-delay: .48s; }
.term-body p:nth-child(3) { animation-delay: .66s; } .term-body p:nth-child(4) { animation-delay: .84s; }
.term-body p:nth-child(5) { animation-delay: 1.02s; } .term-body p:nth-child(6) { animation-delay: 1.2s; }
.term-body p:nth-child(7) { animation-delay: 1.38s; }
.term-body .prompt { color: #3fb950; user-select: none; }
.term-body .nick { color: var(--primary); user-select: none; }
.term-body .ok { color: #56d4a4; }
.cursor { display: inline-block; width: .6rem; height: 1rem; background: var(--primary); vertical-align: middle; animation: blink .6s steps(1) infinite, hide 0s 1.6s forwards; }
@keyframes line-in { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes hide { to { visibility: hidden; } }
.term-note { display: flex; justify-content: space-between; margin-top: 1rem; padding: 0 .25rem; font-size: .875rem; font-weight: 500; color: var(--muted-fg); }

.stats { display: grid; gap: 1.5rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklch, var(--card) 60%, transparent); transition: background-color .3s; }
.stat:hover { background: var(--card); }
.stat-title { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.stat-sub { font-weight: 500; color: var(--muted-fg); }
.icon-tile { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: calc(var(--radius) + 4px); background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.icon-tile .icon { width: 1.25rem; height: 1.25rem; }
.icon-tile.sm { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); }

/* Embedded web client */
.embed { max-width: 64rem; margin: 2.5rem auto 0; }
.embed-head { text-align: center; margin-bottom: 1rem; }
.embed-head h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .5rem; }
.embed-head p { max-width: 42rem; margin: 0 auto; color: var(--muted-fg); }
.browser { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--muted); border-bottom: 1px solid var(--border); }
.url { flex: 1; max-width: 28rem; margin: 0 auto; padding: .25rem .75rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--bg); font-family: var(--font-mono); font-size: .75rem; color: var(--muted-fg); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-spacer { width: 3.5rem; }
.embed-stage { position: relative; height: 600px; background: #0c1017; }
.embed-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: #c9d1d9;
  background: radial-gradient(circle at 50% 40%, oklch(0.705 0.213 47.604 / 14%), transparent 60%), #0c1017; }
.embed-start p { max-width: 28rem; font-size: .875rem; color: #8b949e; }
.embed-start .channels { font-family: var(--font-mono); color: var(--primary); font-size: .875rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .section { padding: 5rem 0; } }
.section.no-border { border-top: 0; }
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-head p { color: var(--muted-fg); line-height: 1.65; }
.section-head p.big { font-size: 1.125rem; font-weight: 500; }

.cards { display: grid; gap: 2rem; }
@media (min-width: 768px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 2rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklch, var(--card) 50%, transparent); transition: background-color .2s, border-color .2s; }
.card:hover { background: var(--card); border-color: var(--primary-line); }
.card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.card p { font-weight: 500; color: var(--muted-fg); line-height: 1.65; }

.rooms { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rooms { grid-template-columns: repeat(5, 1fr); } }
.room { padding: 1.5rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklch, var(--card) 30%, transparent); transition: background-color .3s, border-color .3s; }
.room:hover { background: var(--card); border-color: var(--primary-line); }
.room:hover .icon-tile { transform: scale(1.1); }
.room .icon-tile { transition: transform .2s; }
.room-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.room h3 { font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.room h3 a:hover { text-decoration: underline; }
.room .topic { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); }
.room p { font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }
.center-note { margin-top: 2rem; text-align: center; font-size: .875rem; color: var(--muted-fg); }
.center-note a { color: var(--primary); font-weight: 600; }
.center-note a:hover { text-decoration: underline; }

/* ---------- Clients (portal) ---------- */
.portal-controls { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.portal-controls .arrow { padding: .5rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--card); color: var(--muted-fg); transition: color .15s, background-color .15s; }
.portal-controls .arrow:hover { color: var(--fg); background: var(--muted); }
.portal-controls .icon { width: 1rem; height: 1rem; }
.pager { display: flex; flex-wrap: wrap; gap: .375rem; margin-left: .5rem; }
.pager button { width: .5rem; height: .5rem; border-radius: 999px; background: color-mix(in oklch, var(--muted-fg) 35%, transparent); transition: width .2s, background-color .2s; }
.pager button[aria-current="true"] { width: 1.25rem; background: var(--primary); }
.portal { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklch, var(--card) 50%, transparent); padding: 1.5rem; }
@media (min-width: 640px) { .portal { padding: 2rem; } }
.portal-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .portal-grid { grid-template-columns: 3fr 4fr 5fr; } .portal-grid > * + * { border-left: 1px solid var(--border); padding-left: 2rem; } }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-fg); margin-bottom: .75rem; }
.client-list { display: grid; gap: .25rem; }
@media (max-width: 1023px) { .client-list { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }
.client-list button { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .75rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; text-align: left; color: var(--muted-fg); transition: color .15s, background-color .15s; }
.client-list button:hover { color: var(--fg); background: var(--muted); }
.client-list button[aria-selected="true"] { color: var(--primary); background: var(--primary-soft); }
.client-list .badge { margin-left: auto; }
.portal-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .6875rem; color: var(--muted-fg); line-height: 1.6; }
@media (min-width: 1024px) { .portal-note { border-top: 0; } }

.badge { display: inline-flex; align-items: center; padding: .05rem .4rem; border: 1px solid; border-radius: 999px; font-size: .5625rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.badge.lg { font-size: .6875rem; padding: .1rem .55rem; }
.badge-recommended { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); }
.badge-new { color: var(--info); background: var(--info-soft); border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.badge-stable { color: var(--success); background: var(--success-soft); border-color: color-mix(in oklch, var(--success) 30%, transparent); }
.badge-classic { color: var(--muted-fg); background: var(--muted); border-color: var(--border); }

.client { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.client-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.client-head h3 { font-size: 1.25rem; font-weight: 700; }
.client-title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.client .tagline { font-size: .875rem; font-weight: 500; color: var(--primary); }
.client .desc { font-size: .875rem; color: var(--muted-fg); line-height: 1.65; margin-bottom: 1rem; }
.checks li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; margin-bottom: .5rem; }
.checks .icon { width: 1rem; height: 1rem; color: var(--primary); margin-top: .15rem; }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.client-actions .btn .icon { width: .875rem; height: .875rem; }
.src-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted-fg); }
.src-link:hover { color: var(--fg); }
.src-link .icon { width: .875rem; height: .875rem; }

/* No-JS fallback: show every client as a card */
.clients-fallback { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .clients-fallback { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .clients-fallback { grid-template-columns: repeat(3, 1fr); } }
.clients-fallback .client { padding: 1.5rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); }
.js .clients-fallback { display: none; }
.portal-wrap { display: none; }
.js .portal-wrap { display: block; }

/* Preview mock-ups (decorative) */
.preview { display: flex; flex-direction: column; min-height: 15rem; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #070a0e; overflow: hidden; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 35%); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: .375rem .75rem; background: #161b22; border-bottom: 1px solid oklch(1 0 0 / 8%); }
.preview-bar .url { flex: none; width: 11rem; margin: 0; font-size: .5625rem; background: #0d1117; border-color: oklch(1 0 0 / 10%); color: #8b949e; padding: .1rem .5rem; }
.preview-bar .bar-spacer { width: 2rem; }
.preview-body { flex: 1; position: relative; overflow: hidden; font-size: .625rem; color: #cbd5e1; }
@media (min-width: 640px) { .preview-body { font-size: .75rem; } }
.mk { height: 100%; display: flex; flex-direction: column; }
.mk-terminal { background: #080b0f; font-family: var(--font-mono); padding: 1rem; }
.mk-terminal .lines, .mk-minimal .lines { flex: 1; display: grid; align-content: start; gap: .5rem; }
.mk-terminal .foot, .mk-minimal .foot { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #0f172a; color: #64748b; }
.mk .o { color: var(--primary); } .mk .b { color: #38bdf8; } .mk .g { color: #34d399; } .mk .w { color: #e2e8f0; } .mk .d { color: #64748b; }
.mk .bold { font-weight: 700; }
.mk-sidebar { display: grid; grid-template-columns: 1fr 3fr; background: #0d1117; }
.mk-sidebar .side { background: #090c10; border-right: 1px solid #1e293b; padding: .5rem; display: grid; align-content: start; gap: .25rem; }
.mk-sidebar .side span { padding: .125rem .375rem; color: #94a3b8; border-radius: 4px; }
.mk-sidebar .side .net { color: var(--primary); font-weight: 700; }
.mk-sidebar .side .on { background: #1e293b; color: #e2e8f0; }
.mk-sidebar .main { display: flex; flex-direction: column; justify-content: space-between; padding: .75rem; background: #0f141c; }
.mk-sidebar .title { display: flex; justify-content: space-between; font-weight: 700; color: #e2e8f0; border-bottom: 1px solid #1e293b; padding-bottom: .25rem; margin-bottom: .5rem; }
.mk-sidebar .title small { font-weight: 400; font-size: .5625rem; color: #94a3b8; }
.mk-sidebar .msgs { display: grid; gap: .5rem; }
.mk-sidebar .input { border: 1px solid #1e293b; background: #0b0e14; border-radius: 4px; padding: .25rem .5rem; color: #64748b; }
.mk-classic { background: #0f131a; }
.mk-classic .tabs { display: flex; gap: .5rem; padding: .375rem .75rem; background: #0a0d14; border-bottom: 1px solid #1e293b; font-weight: 700; color: #64748b; }
.mk-classic .tabs .on { color: #e2e8f0; }
.mk-classic .body { flex: 1; display: grid; grid-template-columns: 3fr 1fr; padding: .5rem; }
.mk-classic .msgs { display: grid; align-content: start; gap: .375rem; }
.mk-classic .users { border-left: 1px solid #1e293b; padding-left: .5rem; display: grid; align-content: start; gap: .25rem; }
.mk-classic .users small { font-size: .5625rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
.mk-classic .input { border-top: 1px solid #1e293b; background: #090b10; padding: .375rem; color: #64748b; }
.mk-retro { background: #f0f0f0; color: #000; font-family: var(--font-mono); padding: .75rem; }
.mk-retro .title { background: #dfdfdf; border: 1px solid #94a3b8; padding: .25rem .5rem; margin-bottom: .5rem; font-family: var(--font-sans); font-weight: 700; }
.mk-retro .lines { flex: 1; display: grid; align-content: start; gap: .375rem; background: #fff; border: 1px solid #94a3b8; padding: .5rem; color: #1e293b; }
.mk-retro .input { margin-top: .5rem; border: 1px solid #94a3b8; background: #fff; padding: 0 .25rem; color: #94a3b8; }
.mk-minimal { background: #0a0c10; padding: 1rem; }
.mk-minimal .head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.mk-minimal .head i { width: .625rem; height: .625rem; border-radius: 50%; background: var(--primary); }
.mk-minimal .lines { color: #94a3b8; }

/* ---------- How it works ---------- */
.section-head.left { text-align: left; margin: 0 0 2.5rem; }
.section-head.left h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: .5rem; }
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: flex; align-items: flex-start; gap: 1rem; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-weight: 700; font-size: .875rem; flex-shrink: 0; position: relative; z-index: 1; }
@media (min-width: 1024px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: calc(2.5rem + 1rem); right: 0; height: 1px; background: var(--border); } }
.step h3 { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; position: relative; z-index: 1; background: var(--bg); padding-right: .5rem; display: inline-block; }
.step p { font-size: .75rem; color: var(--muted-fg); line-height: 1.6; }
.native { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .native { flex-direction: row; } }
.native-text { font-size: .875rem; color: var(--muted-fg); text-align: center; }
@media (min-width: 640px) { .native-text { text-align: left; } }
.native-text strong { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; justify-content: center; }
@media (min-width: 640px) { .chips { justify-content: flex-start; } }
.chips a { padding: .25rem .625rem; border: 1px solid var(--border); border-radius: 6px; background: var(--muted); font-size: .75rem; font-weight: 600; color: var(--fg); transition: color .15s, background-color .15s; }
.chips a:hover { color: var(--primary); background: var(--primary-soft); }
.pill-link { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .875rem; border: 1px solid var(--primary-line); border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size: .75rem; font-weight: 700; }
.pill-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--card) 10%, transparent); }
.footer-inner { padding: 3rem 0; }
@media (min-width: 640px) { .footer-inner { padding: 4rem 0; } }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-brand p { font-size: .875rem; color: var(--muted-fg); line-height: 1.65; max-width: 24rem; margin: .75rem 0 1rem; }
.footer-brand blockquote { margin: 0; padding-left: .75rem; border-left: 2px solid var(--primary-line); font-size: .75rem; font-style: italic; color: var(--muted-fg); line-height: 1.6; }
.footer-col h4 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-fg); margin-bottom: .75rem; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; color: var(--muted-fg); transition: color .15s; }
.footer-col a:hover { color: var(--fg); }
.footer-col a .icon { width: .625rem; height: .625rem; }
.connect { padding-top: 1.5rem; margin-bottom: 1.5rem; border-top: 1px solid var(--border); }
.connect-chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.connect-chips span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .75rem; color: var(--muted-fg); }
.connect-chips code { color: var(--fg); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted-fg); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { color: var(--fg); font-weight: 500; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 404 ---------- */
.notfound { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 1.5rem; text-align: center; }
.notfound .code { font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; color: var(--primary); margin-bottom: 1rem; }
.notfound h1 { font-size: 2.25rem; font-weight: 600; margin-bottom: 1rem; }
.notfound p { max-width: 28rem; color: var(--muted-fg); margin-bottom: 2rem; }

/* ---------- Scroll reveal (added only by JS, content is visible without it) ---------- */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .45s ease-out; }
.fade-swap { animation: swap .25s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.6 0.005 285.83 / 50%); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .term-body p { opacity: 1; transform: none; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* =====================================================================
   Shared additions: live status, doc pages, forms
   ===================================================================== */
ol { margin: 0; padding: 0; list-style: none; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: color-mix(in oklch, var(--muted-fg) 45%, transparent); flex-shrink: 0; }
.dot.up { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 18%); }
.dot.down { background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / 15%); }
.client-title .dot { margin-left: .25rem; }
.client-list .dot { margin-right: .125rem; }
.status-note { font-size: .75rem; color: var(--muted-fg); margin-top: .75rem; }
.status-note.center { text-align: center; }
.mini-status li { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; max-width: 12rem; }
.mini-status strong { font-variant-numeric: tabular-nums; }
.kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: .5rem; }

/* Doc pages (guide, rules, privacy, help) */
.doc { padding: 6.5rem 0 4rem; }
.doc-head { max-width: 48rem; margin-bottom: 2.5rem; }
.doc-head h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1rem; }
.lead-sm { font-size: 1.125rem; color: var(--muted-fg); line-height: 1.6; }
.doc-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 14rem 1fr; gap: 4rem; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: 5rem; } }
.toc ol { display: grid; gap: .125rem; border-left: 2px solid var(--border); }
.toc a { display: block; padding: .3rem .75rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .875rem; color: var(--muted-fg); }
.toc a:hover { color: var(--fg); border-left-color: var(--primary); }
.prose { max-width: 46rem; }
.doc-section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); scroll-margin-top: 5rem; }
.doc-section:last-child { border-bottom: 0; }
.prose h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .75rem; }
.prose p, .prose li { color: color-mix(in oklch, var(--fg) 82%, var(--muted-fg)); line-height: 1.7; }
.prose p + p, .prose p + pre, .prose pre + p, .prose ul + p, .prose table + p { margin-top: .875rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; margin-top: .5rem; }
.prose ol.rules { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .6rem; }
.prose :not(pre) > code { font-size: .85em; padding: .1rem .35rem; border-radius: 5px; background: var(--muted); border: 1px solid var(--border); }
.cmd { margin: .75rem 0; padding: .875rem 1rem; border-radius: var(--radius); background: #0d1117; color: #e6edf3; border: 1px solid oklch(1 0 0 / 8%); overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.cmd code { font-family: var(--font-mono); white-space: pre; }
.kv { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9375rem; }
.kv th, .kv td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.kv th { width: 9rem; color: var(--muted-fg); font-weight: 600; }
.notfound .hero-actions { justify-content: center; }

/* Quick-join form */
.qj { display: grid; gap: .75rem; }
.qj-field { display: grid; gap: .3rem; }
.qj label { font-size: .75rem; font-weight: 600; color: var(--muted-fg); }
.qj input, .qj select, .qj-top input { width: 100%; height: 2.5rem; padding: 0 .75rem; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--bg); color: var(--fg); font: inherit; font-size: .9375rem; }
.qj input:focus, .qj select:focus, .qj-top input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.qj .btn { height: 2.75rem; font-size: 1rem; }
.form-msg { font-size: .8125rem; color: #ef4444; min-height: 1em; }

/* =====================================================================
   DESIGN 2 — "network portal" (body.theme2)
   ===================================================================== */
.theme2 { --hero-a: #0f172a; --hero-b: #1e293b; }
.theme2 .site-header { background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.theme2 .nav { height: 4rem; }
.nav-join { display: none; align-items: center; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--bg); padding-left: .625rem; margin-right: .25rem; }
@media (min-width: 1200px) { .nav-join { display: flex; } }
.nav-join-host { font-size: .75rem; color: var(--muted-fg); white-space: nowrap; }
.qj-top { display: flex; align-items: center; }
.qj-top input { width: 8rem; height: 2rem; border: 0; background: transparent; padding: 0 .5rem; font-size: .8125rem; }
.qj-top .btn { border-radius: 0 calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0; height: 2rem; }

.live-pill-wrap { position: fixed; top: 4.6rem; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.live-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .875rem; border-radius: 999px; background: color-mix(in oklch, var(--card) 85%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .75rem; font-weight: 600; color: var(--muted-fg); box-shadow: 0 6px 20px -8px rgb(0 0 0 / 25%); }
.status-on .live-pill .dot { background: #22c55e; }
.status-off .live-pill-wrap { display: none; }
.dot.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(34 197 94 / 0%); opacity: .6; } }

.hero2 { position: relative; overflow: hidden; padding: 8.5rem 0 4rem; color: #f8fafc;
  background: radial-gradient(ellipse 70% 60% at 85% 0%, oklch(0.705 0.213 47.604 / 30%), transparent 60%),
              radial-gradient(ellipse 60% 50% at 0% 100%, oklch(0.6 0.13 260 / 35%), transparent 60%),
              linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.hero2-bg i { position: absolute; border-radius: 50%; border: 1px solid oklch(1 0 0 / 7%); background: oklch(1 0 0 / 3%); }
.hero2-bg i:nth-child(1) { width: 26rem; height: 26rem; right: -8rem; top: -6rem; }
.hero2-bg i:nth-child(2) { width: 12rem; height: 12rem; left: 6%; top: 55%; }
.hero2-bg i:nth-child(3) { width: 7rem; height: 7rem; right: 22%; bottom: 8%; }
.hero2-inner { position: relative; text-align: center; }
.hero2 h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1.25rem; }
.hero2 h1 span { font-weight: 800; color: var(--primary); }
.lead2 { max-width: 40rem; margin: 0 auto 2.5rem; font-size: 1.125rem; color: #cbd5e1; line-height: 1.6; }
.hero2-grid { display: grid; gap: 1.5rem; text-align: left; max-width: 64rem; margin: 0 auto; }
@media (min-width: 900px) { .hero2-grid { grid-template-columns: 1.35fr 1fr; align-items: stretch; } }
.hero2 .terminal { border-color: oklch(1 0 0 / 12%); }
.hero2 .term-body p:nth-child(n+2):not(:last-child) { color: #56d4a4; }
.join-card { padding: 1.5rem; border-radius: calc(var(--radius) + 4px); background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: 0 25px 60px -25px rgb(0 0 0 / 55%); }
.join-card h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: .25rem; }
.join-card > .muted { font-size: .875rem; margin-bottom: 1.25rem; }
.join-card .or { margin-top: .75rem; font-size: .8125rem; color: var(--muted-fg); text-align: center; }
.join-card .or a { color: var(--primary); }
.chips2 { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; margin-top: 2rem; }
.chips2 li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .875rem; border-radius: 999px; background: oklch(1 0 0 / 8%); border: 1px solid oklch(1 0 0 / 10%); font-size: .8125rem; font-weight: 600; color: #e2e8f0; }
.chips2 .icon { color: var(--primary); }

.counters-band { border-bottom: 1px solid var(--border); background: var(--card); }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter { padding: 1.75rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.counter:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) { .counter:nth-child(2n) { border-right: 1px solid var(--border); } .counter:last-child { border-right: 0; } }
@media (max-width: 767px) { .counter:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
.counter-num { font-size: 2.25rem; font-weight: 900; letter-spacing: -.03em; color: var(--primary); font-variant-numeric: tabular-nums; }
.counter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-fg); }

.section2 { padding: 4.5rem 0; }
.section2.alt { background: color-mix(in oklch, var(--muted) 45%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head2 { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.head2 h2, .split h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .5rem; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } }
.split > div > .muted { line-height: 1.65; margin-bottom: 1.5rem; }
.split code, .center-note code { font-size: .85em; padding: .1rem .35rem; border-radius: 5px; background: var(--muted); }
.server-list { display: grid; gap: .5rem; }
.server-list li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: .9375rem; }
.server-list .state { font-size: .75rem; font-weight: 700; color: var(--muted-fg); }
.server-list .state.up { color: #16a34a; } .server-list .state.down { color: #dc2626; }
.ports { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.port { display: grid; gap: .25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); font-size: .8125rem; color: var(--muted-fg); }
.port-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--fg); }

.rooms2 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .rooms2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rooms2 { grid-template-columns: repeat(3, 1fr); } }
.room2 { display: flex; flex-direction: column; gap: .875rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); transition: border-color .2s, transform .2s; }
.room2:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.room2-top { display: flex; align-items: center; gap: .75rem; }
.room2 h3 { font-size: 1.125rem; font-weight: 800; color: var(--primary); }
.room2 .topic { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); }
.room2 .count { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--muted-fg); white-space: nowrap; }
.room-topic { flex: 1; font-size: .875rem; color: var(--muted-fg); line-height: 1.6; overflow-wrap: anywhere; }
.room2-actions { display: flex; gap: .5rem; }

.clients2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .clients2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .clients2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .clients2 { grid-template-columns: repeat(4, 1fr); } }
.client2 { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); transition: border-color .2s; }
.client2:hover { border-color: var(--primary-line); }
.client2-top { display: flex; align-items: center; gap: .5rem; }
.client2 h3 { font-size: 1rem; font-weight: 800; }
.client2 .badge { margin-left: auto; }
.client2 .tagline { font-size: .8125rem; font-weight: 600; color: var(--primary); }
.client2 .desc { flex: 1; font-size: .8125rem; color: var(--muted-fg); line-height: 1.55; margin-bottom: .5rem; }
.client2 .btn .icon { width: .8rem; height: .8rem; }

.services { display: grid; gap: 1rem; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); }
.svc h3 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.svc p { font-size: .8125rem; color: var(--muted-fg); line-height: 1.55; margin-bottom: .5rem; }
.svc code { font-size: .75rem; color: var(--primary); }

.guides { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guide-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.guide-card p { color: var(--muted-fg); line-height: 1.6; margin-bottom: 1rem; }

.cta-band { padding: 4rem 0; color: #fff; background: linear-gradient(120deg, oklch(0.6 0.2 40), oklch(0.68 0.2 55)); }
.cta-inner { text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-light { background: #fff; color: #9a3412; }
.btn-light:hover { background: #fff7ed; }
.btn-ghost { border: 1px solid rgb(255 255 255 / 55%); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); }
.theme2 .doc { padding-top: 7.5rem; }
.doc-grid > *, .hero2-grid > *, .split > * { min-width: 0; }
.room-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.embed-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; width: 100%; max-width: 32rem; }
.embed-form input { flex: 1 1 14rem; height: 3.6rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px); border: 1px solid oklch(1 0 0 / 15%); background: #0d1117; color: #e6edf3; font: inherit; font-size: 1rem; }
.embed-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.embed-start .form-msg { color: #f87171; }
.room { display: flex; flex-direction: column; } .room > p { flex: 1; }
@media (min-width: 1024px) { .rooms { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   Web client grid (real screenshots)
   ===================================================================== */
.cfilter { display: none; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.js .cfilter { display: flex; }
.fchip { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .8125rem; font-weight: 600; color: var(--muted-fg); transition: color .15s, background-color .15s, border-color .15s; }
.fchip:hover { color: var(--fg); border-color: var(--primary-line); }
.fchip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.cfilter-note { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted-fg); }
.cfilter-note::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 18%); }
.cgrid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cgrid { grid-template-columns: repeat(4, 1fr); } }
.ccard-featured { border-color: var(--primary-line); box-shadow: 0 0 0 1px var(--primary-line); }
.cgrid-empty { text-align: center; color: var(--muted-fg); padding: 2rem 0; }
.ccard { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); border-color: var(--primary-line); box-shadow: var(--shadow); }
.ccard-shot { display: block; position: relative; background: #0d1117; border-bottom: 1px solid var(--border); overflow: hidden; }
.ccard-bar { display: flex; align-items: center; gap: .6rem; padding: .4rem .65rem; background: #161b22; border-bottom: 1px solid oklch(1 0 0 / 8%); }
.ccard-url { font-family: var(--font-mono); font-size: .625rem; color: #8b949e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.ccard:hover .ccard-shot img { transform: scale(1.04); }
.ccard-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; }
.ccard-title { display: flex; align-items: center; gap: .5rem; }
.ccard-title h3 { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.ccard-title .badge { margin-left: auto; }
.ccard-tag { font-size: .8125rem; font-weight: 600; color: var(--primary); }
.ccard-desc { font-size: .8125rem; color: var(--muted-fg); line-height: 1.55; }
.ccard-feats { display: none; margin: .25rem 0 .1rem; }

.ccard-feats li { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; }
.ccard-feats .icon { color: var(--primary); width: .9rem; height: .9rem; }
.ccard-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.ccard-actions .btn .icon { width: .85rem; height: .85rem; }
.ccard[hidden] { display: none; }
.badge-popular { color: #fff; background: linear-gradient(120deg, oklch(0.62 0.21 40), oklch(0.7 0.19 60)); border-color: transparent; }
.badge-beta { color: oklch(0.6 0.15 300); background: oklch(0.6 0.15 300 / 12%); border-color: oklch(0.6 0.15 300 / 30%); }
:root.dark .badge-beta { color: oklch(0.78 0.13 300); }
.ccard-tag { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.ccard-meta { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; color: var(--muted-fg); white-space: nowrap; }
