/* GrokYtalkY pages — charm.land-inspired, fornevercollective */
:root {
  --bg: #0c0c0f;
  --bg-elev: #14141a;
  --bg-card: #1a1a22;
  --border: #2a2a36;
  --text: #ececf1;
  --muted: #8b8b9a;
  --faint: #5c5c6e;
  --accent: #7dd3fc;   /* cyan */
  --live: #4ade80;
  --grok: #c084fc;
  --warn: #fbbf24;
  --err: #f87171;
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(12, 12, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark {
  color: var(--accent);
  font-size: 1.15rem;
}
.brand-name { font-size: 1.05rem; }

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-active {
  color: var(--text);
  font-weight: 600;
}
/* screen cast button state (GrokGlyph) — uses gg-hbtn in grokglyph.css */
/* keep full menu on narrow screens (scroll, don’t hide) */
.nav nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: min(100%, 72vw);
  flex-wrap: nowrap;
  padding-bottom: 0.15rem;
}
@media (max-width: 720px) {
  .nav {
    flex-wrap: nowrap;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }
  .nav nav {
    max-width: calc(100vw - 8.5rem);
    gap: 0.35rem 0.75rem;
    font-size: 0.82rem;
  }
  .brand-name { font-size: 0.95rem; }
}

/* ── hero ── */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--grok);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: #0c0c0f;
}
.btn.primary:hover { background: #a5e4ff; }
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--muted); }

/* terminal mock */
.term {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #08080c;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(125, 211, 252, 0.06);
  max-width: 640px;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a48;
}
.term-bar span:nth-child(1) { background: #f87171; }
.term-bar span:nth-child(2) { background: #fbbf24; }
.term-bar span:nth-child(3) { background: #4ade80; }
.term-bar code {
  margin-left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.term-body {
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
  color: var(--text);
}
.cursor {
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  50% { opacity: 0; }
}

.c-dim { color: var(--muted); }
.c-live { color: var(--live); }
.c-accent { color: var(--accent); }
.c-grok { color: var(--grok); font-weight: 600; }
.c-tab { color: var(--faint); }
.c-tab.on {
  color: #0c0c0f;
  background: var(--accent);
  padding: 0 0.35rem;
  border-radius: 4px;
}

/* sections */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section.alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 28, 0.9), transparent);
}
.section.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  display: block;
  margin-bottom: 0.6rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: #3d3d50; }
.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.card .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--grok);
  margin-bottom: 0.55rem;
}
.card p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}
.card code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--accent);
}

/* modes */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.mode {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-elev);
}
.mode .glyph {
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.mode h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.mode p {
  color: var(--muted);
  font-size: 0.9rem;
}
.mode code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--warn);
}

/* lineage */
.lineage {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lineage li {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  border-left: 2px solid var(--border);
  background: var(--bg-elev);
  border-radius: 0 8px 8px 0;
}
.lineage a { color: var(--text); }

/* install */
.install {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.code-block {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  background: #08080c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  color: #c8c8d4;
}

/* footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding-top: 2.5rem; }
  .term-body { font-size: 0.68rem; }
}

/* ── conversation hero + stream ── */
.hero-convo {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.convo-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .convo-layout { grid-template-columns: 1fr; }
}
.convo-copy h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.stream-status {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.85rem;
}
.file-btn { cursor: pointer; }

.stream-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #08080c;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(125,211,252,.07);
}
.stream-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.pill.mono { color: var(--faint); }
.live-pill.on {
  color: #0c0c0f;
  background: var(--live);
  border-color: var(--live);
  font-weight: 600;
}
.stream-view {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050508;
  overflow: hidden;
}
.stream-view video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.stream-view canvas {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.stream-view canvas.active { display: block; }
.stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(125,211,252,.08), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(255,255,255,.02) 12px);
}
.stream-placeholder .glyph {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.7;
}
.stream-placeholder .sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}
.stream-chat {
  max-height: 7.5rem;
  overflow-y: auto;
  padding: 0.65rem 0.8rem 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #0a0a0e;
}
.bubble {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  max-width: 92%;
}
.bubble.sys { color: var(--faint); }
.bubble.peer {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.bubble.me {
  color: #0c0c0f;
  background: var(--accent);
  align-self: flex-end;
}

/* ── docs page ── */
/* Site header (.nav) is shared via site-nav.js — same menu as Home/Burst/… */
body.docs-page .nav {
  /* keep sticky top bar above docs sidebar */
  z-index: 30;
}
/* nav-active also set under .nav nav a.nav-active */
.docs-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
@media (max-width: 800px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
}
.docs-side {
  position: sticky;
  top: 4.25rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}
.side-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.docs-side a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
}
.docs-side a:hover { color: var(--text); }
.docs-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.docs-lede { margin-bottom: 2rem; }
.docs-section {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.docs-section:last-of-type { border-bottom: none; }
.docs-section h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: none;
}
.docs-section p, .docs-section li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.docs-section ul { padding-left: 1.2rem; margin-bottom: 0.75rem; }
.docs-section code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}
.docs-section kbd {
  font-family: var(--mono);
  font-size: 0.78em;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  background: var(--bg-elev);
  color: var(--text);
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
.docs-table th { color: var(--faint); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-table td { color: var(--muted); }
.docs-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.convo-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.term-preview {
  max-width: none;
  width: 100%;
}
.term-preview .term-body {
  font-size: 0.74rem;
}


/* dual stage: terminal LEFT, stream RIGHT */
.convo-copy-top {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}
.convo-copy-top h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}
.dual-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.15fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .dual-stage { grid-template-columns: 1fr; }
  .term-left { order: 2; }
  .stream-hero { order: 1; }
}
.term-left {
  display: flex;
  flex-direction: column;
  max-width: none !important;
  width: 100%;
  height: 100%;
}
.term-cam {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: #050508;
  padding: 0.35rem 0.5rem 0.5rem;
}
.term-cam canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  image-rendering: pixelated;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.term-cam-label {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--live);
  background: rgba(0,0,0,.55);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.term-left .term-body {
  flex: 1;
  font-size: 0.72rem;
}

/* ── vwall controls (size / FPS / style / layout) ── */
.vwall-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: flex-end;
  margin: 1rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  max-width: 720px;
}
.vctrl {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 7.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vctrl span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.vctrl em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.75rem;
}
.vctrl input[type='range'] {
  width: 100%;
  min-width: 8rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.vctrl select {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  background: #0a0a0e;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.vctrl select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

/* ── multi-feed wall ── */
.feed-wall {
  position: relative;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(125, 211, 252, 0.06), transparent 55%),
    #050508;
  display: grid;
  gap: 4px;
  padding: 4px;
  overflow: hidden;
}
.feed-wall.layout-grid.n-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.feed-wall.layout-grid.n-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.feed-wall.layout-grid.n-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.feed-wall.layout-grid.n-3 > .vwall-tile:first-child {
  grid-row: 1 / -1;
}
.feed-wall.layout-grid.n-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.feed-wall.layout-grid.n-5,
.feed-wall.layout-grid.n-6 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.feed-wall.layout-focus {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.feed-wall.layout-focus .vwall-tile:not(.active) {
  display: none;
}
.feed-wall.layout-focus .vwall-tile.active {
  display: flex;
}

.vwall-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #08080c;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vwall-tile:hover {
  border-color: rgba(125, 211, 252, 0.35);
}
.vwall-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25), inset 0 0 24px rgba(125, 211, 252, 0.06);
}
.vwall-tile-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.4rem;
  background: rgba(8, 8, 12, 0.85);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.58rem;
  z-index: 1;
  flex-shrink: 0;
}
.vwall-tile-name {
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vwall-tile-kind {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vwall-tile-x {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  border-radius: 3px;
}
.vwall-tile-x:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
.vwall-tile-canvas {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  image-rendering: pixelated;
  background: #050508;
}

/* empty wall hint */
.feed-wall:empty::after {
  content: 'Drop image/video files · or + sim / camera';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  pointer-events: none;
}

/* drag-and-drop hover */
.feed-wall.drop-hover,
.stream-hero.drop-hover,
.dual-stage.drop-hover {
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
  box-shadow: inset 0 0 40px rgba(125, 211, 252, 0.12);
}
.feed-wall.drop-hover::after {
  content: 'Drop to add feed';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(8, 8, 12, 0.55);
  z-index: 5;
  pointer-events: none;
}

/* ── home showcase (sections · keypoints · install) ── */
.home-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}
.home-section.alt {
  max-width: none;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-section.alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.hq-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.hq-chip:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.45);
  text-decoration: none;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.feat-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101018;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.feat-card:hover {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.feat-icon {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-family: var(--mono);
}
.feat-card h3 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.feat-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.feat-card code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.cli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.cli-block h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}
.cli-block .code-block {
  margin: 0;
  font-size: 0.72rem;
}
.kp-list {
  list-style: none;
  counter-reset: kp;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.kp-list li {
  counter-increment: kp;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e0e14;
}
.kp-list li::before {
  content: counter(kp, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding-top: 0.15rem;
}
.kp-list strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.kp-list span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.kp-list li strong,
.kp-list li span {
  grid-column: 2;
}
.kp-list li::before {
  grid-row: 1 / span 2;
}
.kp-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.kp-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.kp-pill.done {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--live);
  background: rgba(74, 222, 128, 0.06);
}
.kp-pill.next {
  border-color: rgba(192, 132, 252, 0.4);
  color: var(--grok);
  background: rgba(192, 132, 252, 0.06);
}
.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0.75rem;
}
.install-tab {
  appearance: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #12121a;
  color: var(--muted);
  cursor: pointer;
}
.install-tab.is-on {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
}
.install-panel { margin-bottom: 1rem; }
.install-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #08080c;
}
.install-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.install-table th,
.install-table td {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.install-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.install-table tr:last-child td { border-bottom: none; }
.install-table code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.home-section .section-lead code,
.convo-copy-top .lede code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--muted);
}
.convo-copy-top h1 {
  max-width: 22ch;
}
@media (max-width: 640px) {
  .kp-list li {
    grid-template-columns: 1.75rem 1fr;
  }
}

@media (max-width: 600px) {
  .vwall-controls {
    gap: 0.65rem;
  }
  .vctrl {
    min-width: calc(50% - 0.5rem);
  }
  .feed-wall.layout-grid.n-2,
  .feed-wall.layout-grid.n-3,
  .feed-wall.layout-grid.n-4 {
    grid-template-columns: 1fr 1fr;
  }
  .feed-wall.layout-grid.n-5,
  .feed-wall.layout-grid.n-6 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
}
