/* Public site chrome */
.site { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(900px 420px at 80% -10%, rgba(0,140,255,0.16), transparent 60%),
  radial-gradient(700px 380px at 0% 20%, rgba(40,80,180,0.18), transparent 55%),
  var(--bg-deep); }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.6rem; border-bottom: 1px solid rgba(120,170,255,0.12);
  background: rgba(6,10,20,0.72); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 50;
}
.site-brand img { box-shadow: 0 0 0 1px rgba(80,160,255,0.25), 0 8px 24px rgba(0,0,0,0.35); }
.site-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-primary); text-decoration: none; font-size: 0.9rem;
}
.site-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  padding: 0.35rem 0.7rem; border-radius: 6px;
}
.site-nav a:hover, .site-nav a.active { color: var(--cyan); background: rgba(0,240,255,0.08); }
.site-main { flex: 1; }
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.site-footer-links { display: flex; gap: 1rem; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem;
  padding: 4.2rem 1.6rem 2.2rem; max-width: 1120px; margin: 0 auto; align-items: center;
}
.hero-metrics { display: flex; gap: 1.25rem; margin-top: 0.4rem; }
.hero-metrics div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-metrics strong { font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.08em; }
.hero-metrics span { color: var(--text-muted); font-size: 0.75rem; }
.hero-visual { position: relative; }
.hero-logo {
  width: 92px; height: 92px; object-fit: cover; border-radius: 22px;
  position: absolute; right: -8px; top: -28px; z-index: 2;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(90,160,255,0.35);
  background: #060b1f;
}
.hero-card-bar em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.band {
  max-width: 1120px; margin: 0 auto 2rem; padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(120,170,255,0.12); border-bottom: 1px solid rgba(120,170,255,0.12);
  color: var(--text-secondary); font-size: 0.88rem; letter-spacing: 0.01em;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-eyebrow { color: var(--cyan); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem; }
.hero .grad {
  background: linear-gradient(135deg, #00f0ff, #7b2fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.55; max-width: 36rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-points { list-style: none; color: var(--text-muted); font-size: 0.85rem; line-height: 1.8; }
.hero-points li::before { content: '▹ '; color: var(--cyan); }

.hero-card {
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.hero-card-bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.hero-card-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-elevated); }
.hero-card-bar span:first-child { background: #e74c3c; }
.hero-card-bar span:nth-child(2) { background: #f1c40f; }
.hero-card-bar span:nth-child(3) { background: #2ecc71; }
.hero-block {
  display: grid; grid-template-columns: 36px 1fr 1fr; gap: 0.5rem; align-items: center;
  margin-bottom: 0.6rem; padding: 0.5rem; background: var(--bg-tertiary); border-radius: 8px;
}
.hero-rail {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan);
}
.hero-cond {
  background: rgba(46,204,113,0.15); border: 1px solid var(--cond-green);
  border-radius: 6px; padding: 0.35rem 0.5rem; font-family: var(--font-mono); font-size: 0.7rem;
}
.hero-act {
  background: rgba(230,126,34,0.15); border: 1px solid var(--action-orange);
  border-radius: 6px; padding: 0.35rem 0.5rem; font-family: var(--font-mono); font-size: 0.7rem;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; max-width: 1100px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.feature-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 1.15rem;
}
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }

.page-narrow { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.page-narrow h1 { margin-bottom: 0.5rem; }

.auth-card {
  max-width: 400px; margin: 3rem auto; padding: 2rem;
  background: var(--bg-secondary); border: 1px solid var(--border-strong); border-radius: 16px;
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.auth-card a { color: var(--cyan); }

/* Dock panels */
.dock-root { display: flex; flex: 1; min-height: 0; position: relative; }
.dock-panel {
  background: var(--bg-primary); border: 1px solid var(--border);
  display: flex; flex-direction: column; min-width: 120px; min-height: 80px;
  position: relative;
}
.dock-panel.floating {
  position: absolute; z-index: 40; box-shadow: var(--shadow-card);
  border-radius: var(--radius-md); overflow: hidden;
}
.dock-panel-header {
  cursor: grab; user-select: none; padding: 0.4rem 0.6rem;
  background: var(--bg-tertiary); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-secondary);
}
.dock-panel-header:active { cursor: grabbing; }
.dock-panel-body { flex: 1; min-height: 0; overflow: auto; }
.dock-panel.horizontal-layout .explorer-tree { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.dock-panel.horizontal-layout .tree-section { flex: 1; min-width: 180px; }
.dock-resize {
  position: absolute; right: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; z-index: 5;
}
.dock-resize.row { left: 0; right: 0; top: auto; bottom: 0; height: 5px; width: auto; cursor: row-resize; }

/* Collapsed command block */
.cmd-block.collapsed .cmd-block-body { display: none; }
.cmd-block-toggle { border: none; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.75rem; }

/* In-app modals */
#vexus-modal-root { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
#vexus-modal-root:not(:empty) { pointer-events: auto; }
.vx-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.vx-modal {
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 1.25rem; min-width: 320px; max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.vx-modal-title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.vx-modal-body { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.45; }
.vx-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.vx-modal .input-group { margin-bottom: 0.65rem; }

/* Dock resize handles */
.dock-resize-handle {
  position: absolute; z-index: 20; background: transparent;
}
.dock-resize-handle:hover, .dock-resize-handle:active {
  background: rgba(0,240,255,0.35);
}
.dock-edge-right { top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; }
.dock-edge-left { top: 0; left: 0; width: 6px; height: 100%; cursor: col-resize; }
.dock-edge-top { top: 0; left: 0; width: 100%; height: 6px; cursor: row-resize; }
.dock-edge-bottom { bottom: 0; left: 0; width: 100%; height: 6px; cursor: row-resize; }
/* Explorer must only expose the right-edge handle (toward the canvas) */
#explorer .dock-edge-left { display: none !important; }
#explorer { position: relative; }

/* Inspector horizontal when wide */
#inspector-bottom.wide-layout .inspector-body,
#inspector-body.horizontal {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start;
}
#inspector-bottom.wide-layout .insp-field,
.inspector-body.horizontal .insp-field {
  flex: 1 1 180px; min-width: 160px;
}
#inspector-bottom.wide-layout .insp-actions {
  width: 100%; display: flex; gap: 0.5rem;
}

/* Register button contrast */
.site-nav .btn-primary, .auth-card .btn-primary, .hero-cta .btn-primary {
  color: #041018 !important;
  font-weight: 700;
  text-shadow: none;
  background: linear-gradient(135deg, #00f0ff, #5ad0ff);
  border: 1px solid #00d0e0;
}

/* Project .vexus icon */
.icon-vexus {
  display: inline-flex; width: 16px; height: 16px; vertical-align: middle;
}

/* Stream setup */
.stream-setup {
  padding: 1rem; text-align: center; color: var(--text-secondary); font-size: 0.85rem;
}
.stream-setup .btn { margin-top: 0.75rem; }
