/* ── Meowtrix project site — shared styles ────────────────────────────────────
   Modern flat developer tool aesthetic: Linear Slate palette (dark & light).
   Ships a dark (default) and a light theme; the active one is selected via
   a `data-theme` attribute on <html> (see assets/theme.js). */

:root {
  --bg:        #090d16;
  --bg2:       #0b0f1a;
  --bg3:       #0f1422;
  --bg4:       #171e31;
  --bg5:       #232d46;
  --border:    rgba(255, 255, 255, 0.08);
  --border2:   rgba(255, 255, 255, 0.04);
  --border3:   rgba(255, 255, 255, 0.14);
  --text:      #f8fafc;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --accent:    #6366f1;
  --accent-hi: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent2:   rgba(99, 102, 241, 0.25);
  --green:     #10b981;
  --nav-bg:    rgba(9, 13, 22, 0.88);
  --shadow:    rgba(0,0,0,0.4);
  --radius:    8px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:      1080px;
  color-scheme: dark;

  /* Flat Logo Accent */
  --logo-grad-start: #6366f1;
  --logo-grad-mid: #818cf8;
  --logo-grad-end: #a5b4fc;
}

/* ── Light theme ──────────────────────────────────────────────────────────────
   Linear Slate Light mode. */
:root[data-theme="light"] {
  --bg:        #f8fafc;
  --bg2:       #ffffff;
  --bg3:       #f1f5f9;
  --bg4:       #e2e8f0;
  --bg5:       #cbd5e1;
  --border:    rgba(15, 23, 42, 0.08);
  --border2:   rgba(15, 23, 42, 0.04);
  --border3:   rgba(15, 23, 42, 0.14);
  --text:      #0f172a;
  --text2:     #475569;
  --text3:     #64748b;
  --accent:    #4f46e5;
  --accent-hi: #6366f1;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent2:   rgba(79, 70, 229, 0.18);
  --green:     #059669;
  --nav-bg:    rgba(255, 255, 255, 0.88);
  --shadow:    rgba(15, 23, 42, 0.06);
  color-scheme: light;

  --logo-grad-start: #4f46e5;
  --logo-grad-mid: #6366f1;
  --logo-grad-end: #818cf8;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-hi); text-decoration: none; transition: color 0.12s var(--ease); }
a:hover { color: var(--text); }

code, pre, kbd {
  font-family: 'Cascadia Code', 'JetBrains Mono', Menlo, Monaco, monospace;
}

/* ── Top nav (shared) ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 26px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border2);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}
.nav-logo:hover { opacity: 0.9; }
.nav-logo .logo-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: color 0.15s var(--ease);
}
.nav-logo:hover .logo-icon {
  color: var(--accent-hi);
}
.nav-logo .logo-icon svg {
  display: block;
  flex-shrink: 0;
}
.nav-logo .logo-text {
  font-size: 16px; font-weight: 750; letter-spacing: -0.02em;
  color: var(--text); font-family: inherit;
  display: flex; align-items: center;
}
.nav-logo .logo-trix {
  color: var(--accent);
  font-weight: 750;
  margin-left: 0.5px;
  display: inline-block;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--text2); font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 9px;
  transition: all 0.12s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg4); }
.nav-links a.cta {
  color: #fff; background: var(--accent);
  box-shadow: 0 4px 18px var(--accent2);
}
.nav-links a.cta:hover { background: var(--accent-hi); color: #fff; }

/* Theme switcher button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border3);
  color: var(--text2); font-size: 16px; line-height: 1;
  transition: all 0.12s var(--ease);
}
.theme-toggle:hover { background: var(--bg4); color: var(--text); transform: translateY(-1px); }
/* Show the icon for the current mode (set by theme.js on the button). */
.theme-toggle .ico { display: none; }
.theme-toggle[data-mode="system"] .ico-system,
.theme-toggle[data-mode="light"]  .ico-light,
.theme-toggle[data-mode="dark"]   .ico-moon { display: inline; }

/* ── Landing: hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 80px 24px 60px;
  background: var(--bg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text2);
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--border3); background: var(--bg3);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 64px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 20px;
}
.hero h1 .grad {
  color: var(--accent-hi);
}
.hero p.sub {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--text2);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  padding: 11px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--bg3); color: var(--text); border-color: var(--border3); }
.btn-ghost:hover { background: var(--bg4); color: var(--text); transform: translateY(-1px); }

/* ── Hero showcase: desktop ↔ mobile preview with a device toggle ─────────────── */
.hero-showcase { max-width: 1000px; margin: 56px auto 0; }

.view-toggle {
  display: inline-flex; gap: 4px; margin: 0 auto 28px;
  padding: 4px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--border);
}
.hero-showcase { text-align: center; }
.view-toggle-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text2); font-family: inherit; font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.01em; transition: all 0.18s var(--ease);
}
.view-toggle-btn .vt-ico { font-size: 14px; line-height: 1; }
.view-toggle-btn:hover { color: var(--text); }
.view-toggle-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px var(--accent2);
}

/* Toggle which device preview is shown. */
.hero-showcase[data-view="desktop"] .phone-frame { display: none; }
.hero-showcase[data-view="mobile"] .browser-mockup { display: none; }

/* ── Phone frame (mobile preview) ─────────────────────────────────────────────── */
.phone-frame {
  position: relative; margin: 0 auto; text-align: left;
  width: 300px; max-width: 80vw;
  aspect-ratio: 390 / 844;
  padding: 10px; border-radius: 36px;
  background: var(--bg3);
  border: 1px solid var(--border3);
  box-shadow: 0 16px 48px var(--shadow);
  transition: border-color 0.2s var(--ease);
}
.phone-frame:hover {
  border-color: var(--accent);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden;
  background: var(--bg2);
  display: flex; flex-direction: column;
}

/* Phone status bar (clock + signal/battery) */
.mob-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; padding: 7px 22px 3px;
  background: var(--bg3); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.mob-status-icons { display: flex; align-items: center; gap: 6px; }
.mob-signal { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.mob-signal i { width: 2.5px; background: var(--text); border-radius: 1px; }
.mob-signal i:nth-child(1) { height: 4px; }
.mob-signal i:nth-child(2) { height: 6px; }
.mob-signal i:nth-child(3) { height: 8px; }
.mob-signal i:nth-child(4) { height: 9px; }
.mob-5g { font-size: 10px; }
.mob-battery {
  position: relative; width: 20px; height: 10px;
  border: 1.2px solid var(--text); border-radius: 3px; opacity: 0.9;
}
.mob-battery::before {
  content: ''; position: absolute; inset: 1.5px;
  width: 70%; background: var(--text); border-radius: 1px;
}
.mob-battery::after {
  content: ''; position: absolute; top: 50%; right: -3px; transform: translateY(-50%);
  width: 1.5px; height: 4px; background: var(--text); border-radius: 0 1px 1px 0; opacity: 0.7;
}

/* Mobile browser address bar */
.mob-urlbar {
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0; margin: 6px 10px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg4); border: 1px solid var(--border);
  font-size: 11px; color: var(--text2);
}
.mob-lock { font-size: 9px; color: var(--green); opacity: 0.85; }
.mob-url {
  flex-grow: 1; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.01em;
}
.mob-reload { font-size: 12px; color: var(--text3); }

/* App viewport — the embedded Meowtrix screenshot */
.mob-viewport {
  position: relative; flex: 1; min-height: 0;
  overflow: hidden; cursor: zoom-in;
  background: var(--bg);
}
.mob-viewport img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
}

/* Browser bottom toolbar */
.mob-tabbar {
  display: flex; align-items: center; justify-content: space-around;
  flex-shrink: 0; padding: 9px 14px 11px;
  background: var(--bg3); border-top: 1px solid var(--border2);
  color: var(--text2); font-size: 17px;
}
.mob-nav-btn { opacity: 0.75; line-height: 1; }
.mob-tabs-btn {
  width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 3px;
}

/* browser mockup in hero */
.browser-mockup {
  max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border3);
  background: var(--bg2);
  box-shadow: 0 16px 48px var(--shadow);
  transition: border-color 0.2s var(--ease);
}
.browser-mockup:hover {
  border-color: var(--accent);
}

.browser-header {
  display: flex; align-items: center;
  padding: 10px 16px 0; background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  gap: 20px;
}

.window-controls { display: flex; gap: 6px; align-items: center; padding-bottom: 10px; }
.window-controls .dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-controls .dot.close { background: #ff5f57; }
.window-controls .dot.minimize { background: #febc2e; }
.window-controls .dot.expand { background: #28c840; }

.browser-tabs { display: flex; align-items: flex-end; gap: 4px; flex-grow: 1; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.browser-tabs::-webkit-scrollbar { display: none; }
.browser-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 8px; border-radius: 8px 8px 0 0;
  background: transparent; border: 1px solid transparent;
  color: var(--text3); font-size: 11.5px; font-weight: 600;
  max-width: 150px; cursor: pointer; transition: all 0.15s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; top: 1px;
}
.browser-tab:hover { background: var(--bg4); color: var(--text2); }
.browser-tab.active {
  background: var(--bg2); color: var(--text);
  border-color: var(--border2) var(--border2) transparent;
  z-index: 2;
}
.browser-tab .tab-icon { font-size: 11px; }
.browser-tab .tab-close { font-size: 10px; color: var(--text3); opacity: 0.6; cursor: pointer; margin-left: 2px; }
.browser-tab .tab-close:hover { opacity: 1; }
.browser-tab-plus {
  padding: 6px 10px 8px; font-size: 14px; color: var(--text3);
  cursor: pointer; opacity: 0.7; transition: opacity 0.15s;
  align-self: center; padding-bottom: 8px;
}
.browser-tab-plus:hover { opacity: 1; }

.browser-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 16px; background: var(--bg2);
  border-bottom: 1px solid var(--border2);
}
.nav-buttons { display: flex; gap: 12px; color: var(--text3); font-size: 14px; }
.nav-buttons span { cursor: pointer; opacity: 0.6; transition: opacity 0.15s; }
.nav-buttons span:hover { opacity: 1; }
.nav-buttons .prev { transform: scale(1.1); }
.nav-buttons .next { transform: scale(1.1); }
.nav-buttons .nav-reload { font-size: 12px; margin-left: 2px; }

.address-bar {
  display: flex; align-items: center; gap: 8px;
  flex-grow: 1; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 12px; font-size: 12px; color: var(--text2);
  max-width: 600px; margin: 0 auto;
}
.address-lock { font-size: 10px; opacity: 0.8; color: var(--green); }
.address-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }

.browser-actions-dots { font-size: 14px; color: var(--text3); cursor: pointer; opacity: 0.7; }
.browser-actions-dots:hover { opacity: 1; }

.screenshot-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
  cursor: zoom-in;
}
.screenshot-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html[data-theme="dark"] .theme-light { display: none; }
html[data-theme="light"] .theme-dark { display: none; }

/* ── Screenshot lightbox (click the hero screenshot to enlarge) ─────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  width: 80vw;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px var(--shadow);
  transform: scale(0.96);
  transition: transform 0.22s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.18s var(--ease);
}
.lightbox-close:hover { border-color: var(--accent2); transform: scale(1.05); }

/* ── Section wrappers ───────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--text2); margin-top: 12px; font-size: 17px; }

/* ── Destination cards (the four links) ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  display: block; position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.15s var(--ease); color: var(--text);
}
.card:hover {
  color: var(--text); transform: translateY(-2px);
  border-color: var(--accent); box-shadow: 0 8px 24px var(--shadow);
}
.card::after { display: none; }
.card .ico { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--text2); font-size: 14.5px; }
.card .go { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; color: var(--accent-hi); font-weight: 600; font-size: 14px; }
.card:hover .go { gap: 9px; }

/* ── Feature grid ───────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--border); }
.feature .ico { font-size: 24px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.feature p { color: var(--text2); font-size: 14.5px; }

/* ── Showcase rows (text + visualization) ───────────────────────────────────── */
.showcase { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 84px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.show-row.reverse .show-text { order: 2; }
.show-text .eyebrow { color: var(--accent-hi); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 12px; }
.show-text h2 { font-size: clamp(26px, 3.4vw, 33px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1.15; }
.show-text > p { color: var(--text2); font-size: 16px; margin-bottom: 18px; }
.show-text ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; }
/* Block + absolute tick (not flex): inline <code> in an item must flow with the text. */
.show-text li { position: relative; padding-left: 24px; color: var(--text); font-size: 15px; line-height: 1.5; }
.show-text li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.show-text li code { background: var(--bg4); border: 1px solid var(--border2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; color: var(--accent-hi); }

/* Features page: framed feature recording (GIF) beside each description.
   .feat-row rows also carry .show-row, so the alternating layout + responsive
   collapse are inherited; only the media frame needs its own styling. */
.feat-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border3);
  background: var(--bg3);
  box-shadow: 0 24px 70px var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feat-media:hover { transform: translateY(-4px); box-shadow: 0 30px 90px var(--shadow); }
.feat-media img { display: block; width: 100%; height: auto; }

/* Generic mock window chrome (reused by the visualizations) */
.win { border-radius: 14px; overflow: hidden; border: 1px solid var(--border3); background: var(--bg2); box-shadow: 0 24px 70px var(--shadow); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: var(--bg3); border-bottom: 1px solid var(--border2); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1) { background: #ff5f57; } .win-dots i:nth-child(2) { background: #febc2e; } .win-dots i:nth-child(3) { background: #28c840; }
.win-title { font-size: 12px; color: var(--text3); margin-left: 6px; font-family: 'Cascadia Code', monospace; }
.cur { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Remote-dev diagram: host → devices */
.panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: 0 16px 50px var(--shadow); }
.netd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.node { text-align: center; padding: 20px 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--border3); }
.node.host { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-soft); }
.node-ico { font-size: 30px; }
.node-name { font-weight: 700; margin-top: 8px; font-size: 15px; }
.node-sub { font-family: 'Cascadia Code', monospace; font-size: 12px; color: var(--accent-hi); margin-top: 4px; }
.node-tag { font-size: 11.5px; color: var(--text3); margin-top: 9px; line-height: 1.4; }
.wire-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; }
.wire-label { font-size: 11px; color: var(--text2); text-align: center; max-width: 120px; }
.wire { height: 2px; width: 100%; min-width: 80px; border-radius: 2px;
  background-image: linear-gradient(90deg, var(--accent-hi) 55%, transparent 55%); background-size: 12px 2px;
  animation: flow 0.7s linear infinite; }
@keyframes flow { to { background-position: 12px 0; } }
.devices { display: flex; flex-direction: column; gap: 10px; }
.dev-chip { display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.dev-chip span { font-size: 18px; }

/* Tiling split-panes mockup */
.ws { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr 0.9fr; gap: 6px; padding: 6px; background: var(--bg); height: 310px; }
.ws-pane { background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.ws-pane.span2 { grid-column: 1 / -1; }
.ws-tabs { display: flex; gap: 4px; padding: 6px 7px; background: var(--bg3); border-bottom: 1px solid var(--border2); align-items: center; }
.ws-tab { font-size: 10.5px; padding: 3px 9px; border-radius: 6px; color: var(--text3); white-space: nowrap; }
.ws-tab.active { background: var(--bg); color: var(--text); }
.ws-plus { margin-left: auto; color: var(--text3); font-size: 12px; }
.ws-body { flex: 1; padding: 9px 11px; font-family: 'Cascadia Code', monospace; font-size: 10.5px; line-height: 1.65; color: var(--text2); overflow: hidden; }
.ws-body .p { color: var(--accent-hi); } .ws-body .g { color: var(--green); } .ws-body .c { color: var(--text3); }
.ws-body.bp { padding: 0; }
.mini-page { background: linear-gradient(180deg, #fff, #f1f1f5); height: 100%; padding: 11px 12px; }
.mp-h { height: 9px; width: 52%; background: var(--accent); border-radius: 3px; margin-bottom: 9px; }
.mp-l { height: 6px; background: #cfcfd8; border-radius: 3px; margin-bottom: 6px; }
.mp-l.w80 { width: 80%; } .mp-l.w60 { width: 60%; } .mp-l.w70 { width: 70%; }

/* Embedded-browser mockup */
.bm-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg3); border-bottom: 1px solid var(--border2); }
.bm-btns { color: var(--text3); font-size: 13px; letter-spacing: 3px; }
.bm-url { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--text2); font-family: 'Cascadia Code', monospace; white-space: nowrap; overflow: hidden; }
.bm-ext { color: var(--text3); }
.bm-page { padding: 24px 26px; background: linear-gradient(180deg, #ffffff, #f3f3f7); min-height: 232px; }
.bm-hero { height: 48px; border-radius: 10px; background: linear-gradient(120deg, var(--accent), #f0abfc); margin-bottom: 18px; }
.bm-h { height: 13px; width: 44%; border-radius: 5px; background: #1c1c25; margin-bottom: 15px; }
.bm-line { height: 9px; border-radius: 5px; background: #c7c7d1; margin-bottom: 10px; }
.bm-line.w90 { width: 90%; } .bm-line.w80 { width: 80%; } .bm-line.w70 { width: 70%; }
.bm-pill { height: 28px; width: 116px; border-radius: 999px; background: var(--accent); margin-top: 18px; }

@media (max-width: 820px) {
  .show-row { grid-template-columns: 1fr; gap: 30px; }
  .show-row.reverse .show-text { order: 0; }
}
@media (max-width: 560px) {
  .netd { grid-template-columns: 1fr; }
  .wire { width: 55%; margin: 0 auto; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border2); margin-top: 40px;
  padding: 40px 24px; text-align: center; color: var(--text3); font-size: 14px;
}
.footer a { color: var(--text2); }
.footer .footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

/* ── Docs layout (docs + dev pages) ─────────────────────────────────────────── */
.docs-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1200px; margin: 0 auto; gap: 0; }
.sidebar {
  position: sticky; top: 65px; align-self: start;
  height: calc(100vh - 65px); overflow-y: auto;
  padding: 32px 18px 32px 26px; border-right: 1px solid var(--border2);
}
.sidebar .group { margin-bottom: 24px; }
.sidebar .group-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 10px; }
.sidebar a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text2); font-size: 14px; }
.sidebar a:hover { background: var(--bg3); color: var(--text); }

.docs-main { padding: 44px 48px 90px; max-width: 820px; min-width: 0; }
.docs-main h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.docs-main > .lead { color: var(--text2); font-size: 18px; margin-bottom: 12px; }
.docs-main section { padding-top: 36px; }
.docs-main h2 {
  font-size: 25px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border2);
}
.docs-main h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.docs-main p { color: var(--text); margin-bottom: 14px; }
.docs-main ul, .docs-main ol { color: var(--text); margin: 0 0 16px 22px; }
.docs-main li { margin-bottom: 7px; }
.docs-main li::marker { color: var(--accent-hi); }
.docs-main strong { color: var(--text); font-weight: 700; }

.docs-main p code, .docs-main li code, .docs-main td code {
  background: var(--bg4); border: 1px solid var(--border2);
  padding: 1.5px 6px; border-radius: 6px; font-size: 13px; color: var(--accent-hi);
}
.docs-main pre {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.65; color: var(--text); margin-bottom: 18px;
}
.docs-main pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.docs-main kbd {
  background: var(--bg4); border: 1px solid var(--border3); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; font-size: 12.5px; color: var(--text);
}

.docs-main table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.docs-main th, .docs-main td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border2); }
.docs-main th { color: var(--text2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-main tr:hover td { background: var(--bg2); }

.callout {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent2);
  margin-bottom: 18px; font-size: 14.5px;
}
.callout .ico { font-size: 18px; flex-shrink: 0; }
.callout p { margin: 0; color: var(--text); }
.callout strong { color: var(--accent-hi); }

@media (max-width: 820px) {
  .docs-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .docs-main { padding: 32px 22px 70px; }
  .nav { padding: 12px 18px; }
}

/* ── Interactive install command builder (docs page) ────────────────────────── */
.cmd-builder {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
  box-shadow: 0 16px 50px var(--shadow);
}
.cb-row { margin-bottom: 18px; }
.cb-row:last-of-type { margin-bottom: 0; }
.cb-label {
  display: block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 9px;
}
/* Segmented control — a row of mutually-exclusive choice chips */
.cb-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cb-opt {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 15px; border-radius: 10px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border3); color: var(--text2);
  transition: all 0.14s var(--ease);
}
.cb-opt:hover { background: var(--bg4); color: var(--text); transform: translateY(-1px); }
.cb-opt[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 16px var(--accent2);
}
.cb-opt[aria-pressed="true"]:hover { background: var(--accent-hi); transform: translateY(-1px); }
.cb-opt small { font-weight: 500; opacity: 0.75; }
/* Output: the generated command + copy button */
.cb-out { margin-top: 20px; }
.cb-out-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 12px;
}
.cb-out-title { font-size: 13px; font-weight: 600; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.cb-out-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.cb-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 8px; cursor: pointer;
  background: var(--bg4); border: 1px solid var(--border3); color: var(--text2);
  transition: all 0.14s var(--ease);
}
.cb-copy:hover { background: var(--bg5); color: var(--text); }
.cb-copy.copied { background: var(--accent-soft); border-color: var(--accent2); color: var(--accent-hi); }
.cmd-builder pre.cb-code {
  margin: 0; position: relative;
  background: var(--bg); border: 1px solid var(--border);
}
.cb-note {
  margin-top: 12px; font-size: 13px; color: var(--text2);
  display: flex; gap: 9px; align-items: flex-start;
}
.cb-note .ico { flex-shrink: 0; }
.cb-note:empty { display: none; }
.cb-note code {
  background: var(--bg4); border: 1px solid var(--border2);
  padding: 1px 6px; border-radius: 6px; font-size: 12px; color: var(--accent-hi);
}

/* The agent showcase: two side-by-side panes filling the window. */
.ws.ws-agent { grid-template-rows: 1fr; }
