@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: #d0d0d0;
  background: #0a0a12;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 170, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 170, 0.02) 0%, transparent 50%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #00ffaa;
}

code {
  font-family: 'Space Mono', monospace;
  font-size: 0.9em;
  background: rgba(0, 255, 170, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  color: #00ffaa;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* PROGRESSIVE TOC                                                      */
/* ═══════════════════════════════════════════════════════════════════ */

.toc {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
}

/* The thin track - always visible after first scroll */
.toc-track {
  width: 3px;
  height: 100%;
  background: #1a1a1a;
  opacity: 0;
  transition: opacity 0.3s;
}

body.scrolled .toc-track {
  opacity: 1;
}

/* The content panel - initially hover-only, then persistent */
.toc-content {
  width: 0;
  overflow: hidden;
  overflow-y: auto;
  background: rgba(10, 10, 18, 0.95);
  border-right: 1px solid #222;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  max-height: 100vh;
  box-sizing: border-box;
}

/* Phase 2: Hover to reveal (before committed) */
body.scrolled:not(.committed) .toc:hover .toc-content {
  width: 160px;
  padding: 20px 16px;
}

/* Phase 3: Always visible (after committed) */
body.committed .toc-content {
  width: 160px;
  padding: 20px 16px;
}

.toc-chapter {
  margin-bottom: 12px;
}

.toc-chapter:last-child {
  margin-bottom: 0;
}

.toc-chapter-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.toc-item {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  text-decoration: none;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.toc-item:hover {
  color: #aaa;
}

.toc-item.active {
  color: #00ffaa;
  border-left-color: #00ffaa;
}

.toc-item .c-prefix {
  color: #333;
}

.toc-sub-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 4px 12px;
  font-style: italic;
}

/* Progress indicator on right edge of screen */
.toc-track::after {
  content: '';
  position: fixed;
  right: 0;
  top: 0;
  width: 3px;
  height: var(--scroll-progress, 0%);
  background: #00ffaa;
  transition: height 0.1s;
  z-index: 101;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* SECTIONS & PAGES                                                     */
/* ═══════════════════════════════════════════════════════════════════ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 120px;
  padding-left: 40px; /* Space for TOC track */
  position: relative;
  transition: padding-left 0.3s;
}

body.committed .page {
  padding-left: 200px; /* Space for expanded TOC */
  padding-right: 40px;
}

.page > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  max-width: 700px;
}

.page-title .c-prefix {
  color: #333;
  font-weight: 400;
}

.title-pie {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: -2px;
  opacity: 0.8;
}
.title-pie svg {
  width: 32px;
  height: 32px;
}
.title-pie[data-tier="public"] { color: #8bc34a; }
.title-pie[data-tier="unlisted"] { color: #66bb6a; }
.title-pie[data-tier="proxied"] { color: #cddc39; }
.title-pie[data-tier="soft-gate"] { color: #ffa726; }
.title-pie[data-tier="hard-gate"] { color: #ff7043; }
.title-pie[data-tier="confidential"] { color: #42a5f5; }
.title-pie[data-tier="e2e"] { color: #ab47bc; }
.title-pie[data-tier="st"] { color: #b478ff; }

.page-sub {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #888;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-sub.long {
  text-align: left;
}

.page-sub a {
  color: #00ffaa;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 255, 170, 0.3);
}

.page-sub a:hover {
  border-bottom-color: #00ffaa;
}

.page-sub--closer {
  margin-top: 40px;
  color: #aaa;
  font-size: 15px;
}

.scroll-cue {
  margin-top: 40px;
}

.scroll-chevron {
  font-size: 18px;
  color: #333;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* CHAPTER BREAKS                                                       */
/* ═══════════════════════════════════════════════════════════════════ */

.chapter-break {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-left: 40px;
  position: relative;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  background: linear-gradient(180deg, rgba(0,255,170,0.02) 0%, transparent 100%);
}

body.committed .chapter-break {
  padding-left: 200px;
}

.chapter-break-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #00ffaa;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.chapter-break-sub {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  color: #fff;
  font-weight: 400;
}

/* Sub-chapter breaks (within a chapter) */
.sub-chapter-break {
  padding: 40px 20px 20px;
  padding-left: 40px;
  text-align: center;
}

body.committed .sub-chapter-break {
  padding-left: 200px;
}

.sub-chapter-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* CONSENT FLOW                                                         */
/* ═══════════════════════════════════════════════════════════════════ */

.consent-flow {
  margin: 24px 0;
}

.consent-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  text-align: left;
}

.consent-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.consent-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.consent-source {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #fff;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.consent-prompt {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(0, 255, 170, 0.05);
  border-radius: 4px;
}

.consent-buttons {
  display: flex;
  gap: 8px;
}

.consent-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: default;
}

.consent-btn-yes {
  background: #00ffaa;
  color: #0a0a12;
}

.consent-btn-no {
  background: transparent;
  border: 1px solid #444;
  color: #666;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* HERO                                                                 */
/* ═══════════════════════════════════════════════════════════════════ */

.page-hero {
  min-height: auto;
  padding-top: 20vh;
  padding-bottom: 6vh;
  justify-content: flex-start;
}

.page-hero .flow-diagram {
  transform: scale(0.85);
  opacity: 0.7;
  margin-top: -8px;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.hero-subhead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #888;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.hero-subhead em {
  color: #00ffaa;
  font-style: normal;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* FLOW DIAGRAM                                                         */
/* ═══════════════════════════════════════════════════════════════════ */

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto;
  transform: scale(1.15);
}

.flow-node-wrapper {
  position: relative;
  flex-shrink: 0;
}

.flow-node {
  width: 140px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.flow-node-sources {
  position: absolute;
  top: 20px;
  left: -56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-source-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #666;
  white-space: nowrap;
}

.flow-source-pill svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.flow-node-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #222;
  border-bottom: 1px solid #333;
}

.flow-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.flow-node-dot--red { background: #ff5f57; }
.flow-node-dot--yellow { background: #ffbd2e; }
.flow-node-dot--green { background: #28c840; }

.flow-node-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 70px;
}

.flow-node-bubble {
  height: 8px;
  border-radius: 4px;
  background: #333;
}

.flow-node-bubble--left {
  width: 70%;
  align-self: flex-start;
}

.flow-node-bubble--right {
  width: 50%;
  align-self: flex-end;
  background: #444;
}

.flow-node-bubble--short {
  width: 40%;
}

.flow-node-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  padding: 10px 12px 6px;
  background: #1a1a1a;
}

.flow-node-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #555;
  text-align: center;
  padding: 0 12px 10px;
  background: #1a1a1a;
}

.flow-node--right {
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.2);
}

.flow-node--right .flow-node-sub {
  color: #00ffaa;
}

.flow-link {
  width: 56px;
  height: 38px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.flow-link-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.flow-link-icon svg {
  width: 100%;
  height: 100%;
}

.flow-link-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #555;
  text-transform: uppercase;
  position: absolute;
  bottom: -18px;
}

.flow-arrow {
  width: 40px;
  height: 2px;
  position: relative;
  flex-shrink: 0;
}

.flow-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 8px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #444 0px, #444 6px, transparent 6px, transparent 10px);
}

.flow-arrow::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #444;
}

.flow-diagram--animated .flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #00ffaa;
  border-radius: 50%;
  opacity: 0;
  animation: flow-travel 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
}

@keyframes flow-travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  45% { left: calc(100% - 6px); opacity: 1; }
  55%, 100% { left: calc(100% - 6px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* USE CASE CARDS                                                       */
/* ═══════════════════════════════════════════════════════════════════ */

.examples-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  width: 100%;
  margin-top: 24px;
}

.example-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.example-item .hero-url {
  font-size: 13px;
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  word-break: break-all;
}

.example-desc {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  width: 100%;
  margin: 0;
}

.example-item .try-buttons {
  margin-top: 0;
  flex-shrink: 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin-top: 32px;
}

.use-case-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  max-width: 700px;
}

.use-case-category {
  text-align: center;
}

.use-case-cat-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.use-case-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: left;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.use-case-card:hover {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  z-index: 1;
}

.use-case-card:has(.use-case-dropdown.open) {
  z-index: 50;
}

.use-case-icon {
  width: 32px;
  height: 32px;
  color: #00ffaa;
  opacity: 0.6;
  margin-bottom: 12px;
}

.use-case-icon svg {
  width: 100%;
  height: 100%;
}

.use-case-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.use-case-desc {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.use-case-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.use-case-card-chips .use-case-dropdown {
  width: auto;
}

.use-case-card-chips .use-case-trigger {
  width: auto;
}

/* Use case dropdown */
.use-case-dropdown {
  position: relative;
}

.use-case-trigger {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  background: transparent;
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.use-case-trigger:hover {
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.5);
}

.dropdown-arrow {
  margin-left: 6px;
  font-size: 10px;
  transition: transform 0.2s;
}

.use-case-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.use-case-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 60;
}

.use-case-menu .menu-col {
  min-width: 120px;
}

.use-case-menu .menu-col:not(:last-child) {
  border-right: 1px solid #333;
}

.use-case-menu .menu-col:last-child {
  background: rgba(0, 255, 170, 0.04);
  position: relative;
}

.menu-col-badge {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #00ffaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  height: 16px;
  line-height: 16px;
  opacity: 0.6;
}

.use-case-dropdown.open .use-case-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.use-case-option {
  display: block;
  width: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  text-decoration: none;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.use-case-option:hover {
  background: rgba(0, 255, 170, 0.1);
  color: #00ffaa;
}

.menu-col .use-case-option:not(:last-child) {
  border-bottom: 1px solid #222;
}

.use-case-copy-opt {
  color: #666;
}

.use-case-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  padding: 8px 14px 4px;
  background: #111;
  border-bottom: 1px solid #222;
}

.encoding-why {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  font-size: 8px;
  font-weight: 700;
  color: #555;
  border: 1px solid #444;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}

.encoding-why:hover {
  color: #00ffaa;
  border-color: #00ffaa;
}

/* Encoding explainer modal */
.encoding-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encoding-modal.hidden {
  display: none;
}

.encoding-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.encoding-modal-content {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
}

.encoding-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s;
}

.encoding-modal-close:hover {
  color: #fff;
}

.encoding-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.encoding-modal-body {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* URL BUILDER                                                          */
/* ═══════════════════════════════════════════════════════════════════ */

.url-builder {
  margin: 32px 0;
  max-width: 700px;
}

.url-builder-display {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: left;
  word-break: break-all;
}

.ub-base { color: #555; }
.ub-source { color: #fff; background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 3px; }
.ub-pipe { color: #444; padding: 0 4px; }
.ub-bang { color: #00ffaa; font-weight: 700; padding: 0 2px; }
.ub-prompt { color: #00ffaa; background: rgba(0,255,170,0.1); padding: 2px 6px; border-radius: 3px; }

.url-builder-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 24px;
}

.ub-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
}

/* Make Your Own */
.make-your-own {
  margin-top: 48px;
  padding: 32px;
  padding-bottom: 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 500px;
  overflow: visible;
}

.make-your-own h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.myo-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.myo-input {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.myo-input:focus {
  border-color: rgba(0, 255, 170, 0.3);
}

.myo-input::placeholder {
  color: #555;
}

.myo-generate {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 24px;
  background: #00ffaa;
  color: #0a0a12;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.myo-generate:hover {
  background: #33ffbb;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.myo-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.myo-output {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 6px;
  color: #00ffaa;
  margin-bottom: 12px;
}

.myo-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  z-index: 20;
}

.myo-trigger {
  background: #00ffaa;
  color: #0a0a12;
  border-color: #00ffaa;
  font-weight: 700;
  padding: 12px 32px;
}

.myo-trigger:hover {
  background: #33ffbb;
  border-color: #33ffbb;
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* HERO URL DISPLAY                                                     */
/* ═══════════════════════════════════════════════════════════════════ */

.hero-url {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 16px 20px;
  text-align: left;
  word-break: break-all;
  transition: border-color 0.5s ease;
  max-width: 700px;
  margin: 16px 0;
}

.hu-base { color: #444; }
.hu-source { color: #ccc; }
.hu-pipe { color: #333; padding: 0 2px; }
.hu-bang { color: #00ffaa; font-weight: 700; }
.hu-prompt { color: #00ffaa; }
.hu-weight { color: #ffaa00; font-weight: 700; }
.hu-bracket { color: #ff6b6b; font-weight: 700; }
.hu-key { color: #ffaa00; font-size: 12px; }
.hu-sep { color: #444; }

.hero-url--wide {
  max-width: 800px;
  font-size: 12px;
}

.hero-url--unlisted-mega {
  max-width: 900px;
  font-size: 11px;
  line-height: 1.8;
}

.hero-url--unlisted-mega .hu-pipe {
  color: #00ffaa;
  opacity: 0.4;
}

/* Everything Together Builder */
#kitchen-sink {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

#kitchen-sink .page-title {
  margin-bottom: 10px;
}

#kitchen-sink .page-sub {
  margin-bottom: 20px;
}

#kitchen-sink .swarm-try-wrapper {
  margin-top: 0;
  padding-top: 20px;
}

.et-hero-url {
  max-width: 900px;
  font-size: 11px;
  word-break: break-all;
  margin-bottom: 16px;
}

.et-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.et-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.et-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.et-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.et-panel-weight-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.et-panel-slider {
  width: 80px;
  accent-color: #ffaa00;
}

.et-panel-pct {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #ffaa00;
  min-width: 32px;
  text-align: right;
}

.et-persona-input {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.05);
  border: 1px solid rgba(0, 255, 170, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.et-persona-input:focus {
  border-color: rgba(0, 255, 170, 0.3);
}

.et-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.et-source {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.et-source:hover {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.2);
}

.et-source.selected {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(0, 255, 170, 0.05);
}

.et-source-mixer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.et-source-mixer .mixer-row {
  gap: 6px;
}

.et-source-mixer .mixer-label {
  font-size: 9px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-source-mixer .mixer-slider {
  width: 60px;
  flex-shrink: 0;
}

.et-source-mixer .mixer-pct {
  font-size: 9px;
  min-width: 28px;
}

.et-outer-prompt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  width: 100%;
  margin: 14px auto 0;
}

.et-outer-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

.et-outer-input {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  flex: 1;
  outline: none;
}

.et-outer-input:focus {
  border-color: rgba(255, 107, 107, 0.3);
}

/* Custom Swarm Breakdown */
.custom-swarm-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  max-width: 500px;
}

.cs-agent {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 16px;
}

.cs-source {
  color: #ccc;
  white-space: nowrap;
}

.cs-arrow {
  color: #333;
}

.cs-persona {
  color: #00ffaa;
  font-style: italic;
}

/* Custom Swarm Cards */
.cs-selector {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #555;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cs-selector:hover {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-selector.selected {
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.4);
}

.cs-selector.selected:hover {
  background: rgba(0, 255, 170, 0.15);
  border-color: rgba(0, 255, 170, 0.5);
}

.custom-swarm-card.active {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.cs-persona-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-persona-editor:empty {
  display: none;
}

.cs-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-editor-source {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-editor-input {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #00ffaa;
  outline: none;
  transition: border-color 0.2s;
}

.cs-editor-input:focus {
  border-color: rgba(0, 255, 170, 0.3);
}

/* (removed: kitchen sink mixer) */

/* ═══════════════════════════════════════════════════════════════════ */
/* TRY BUTTONS                                                          */
/* ═══════════════════════════════════════════════════════════════════ */

.try-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.try-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.try-btn:hover {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.3);
}

.try-copy {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.2);
}

/* Agent Card Grid */
.agent-grid {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 800px;
}

.swarm-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
  max-width: 800px;
}

.cs-grid {
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-width: 800px;
}

.webpage-grid {
  max-width: 1100px;
}

.webpage-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  background: #111;
}

.webpage-thumb img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.webpage-card:hover .webpage-thumb img {
  opacity: 1;
}

.agent-card {
  padding: 18px 16px;
}

.agent-card .use-case-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.agent-card .use-case-desc {
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.agent-card .use-case-dropdown {
  margin-top: auto;
}

.agent-card .use-case-trigger {
  width: 100%;
}

.agent-dropdown {
  position: relative;
}

.agent-chip {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.agent-chip:hover {
  color: #fff;
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.3);
}

.swarm-chip {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.4);
  background: rgba(0, 255, 170, 0.05);
}

/* Swarm selector chips */
.swarm-selector {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #555;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.swarm-selector:hover {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.2);
}

.swarm-selector.selected {
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.4);
}

.swarm-selector.selected:hover {
  background: rgba(0, 255, 170, 0.15);
  border-color: rgba(0, 255, 170, 0.5);
}

.swarm-more {
  text-decoration: none;
  color: #555;
  border-color: transparent;
  background: transparent;
}

.swarm-more:hover {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(0, 255, 170, 0.05);
}

/* Active swarm card — the one driving the hero URL */
.swarm-card.active {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero URL pulse when updated by swarm interaction */
.hero-url.pulse {
  border-color: rgba(0, 255, 170, 0.5);
}

.swarm-try-wrapper {
  margin-top: auto;
  padding-top: 16px;
}

.swarm-try-btn {
  width: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0a0a12;
  background: #00ffaa;
  border: 1px solid #00ffaa;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.swarm-try-btn:hover {
  background: #33ffbb;
  border-color: #33ffbb;
}

.swarm-try-wrapper .use-case-dropdown {
  width: 100%;
}

.swarm-try-wrapper .use-case-menu {
  width: auto;
}

.agent-dropdown .use-case-menu {
  min-width: auto;
}

.agent-dropdown .use-case-menu .menu-col {
  min-width: 100px;
}

.agent-more {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.2);
}

.agent-more:hover {
  background: rgba(0, 255, 170, 0.15);
  border-color: rgba(0, 255, 170, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════ */
/* SPECIAL SECTIONS                                                     */
/* ═══════════════════════════════════════════════════════════════════ */

/* Signals list */
.signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
  max-width: 400px;
}

.signal-item {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #888;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.signal-item strong {
  color: #00ffaa;
}

/* Enclave diagram */
.enclave-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.enclave-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enclave-source {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.enclave-arrow {
  font-size: 24px;
  color: #333;
}

.enclave-box {
  padding: 24px 32px;
  background: rgba(0, 255, 170, 0.05);
  border: 2px solid rgba(0, 255, 170, 0.2);
  border-radius: 12px;
  text-align: center;
}

.enclave-lock {
  font-size: 24px;
  margin-bottom: 8px;
}

.enclave-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #00ffaa;
}

.enclave-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.enclave-output {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #00ffaa;
  padding: 12px 16px;
  background: rgba(0, 255, 170, 0.1);
  border-radius: 6px;
}

/* Private source flow diagrams */
.flow-private-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  min-height: 70px;
}

.flow-private-icon svg {
  width: 28px;
  height: 28px;
  color: #888;
}

.flow-node--source {
  border-color: #555;
}

.flow-node--source .flow-private-icon svg {
  color: #aaa;
}

.flow-node--forwarder {
  border-color: rgba(100, 180, 255, 0.3);
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.08);
}

.flow-node--forwarder .flow-private-icon svg {
  color: #64b4ff;
}

.flow-node--forwarder .flow-node-sub {
  color: #64b4ff;
}

.flow-node--enclave {
  border-color: rgba(0, 255, 170, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.08);
  background: rgba(0, 255, 170, 0.03);
}

.flow-node--enclave .flow-private-icon svg {
  color: #00ffaa;
}

.flow-node--enclave .flow-node-sub {
  color: #00ffaa;
}

.flow-arrow--blocked::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 80, 80, 0.4) 0px,
    rgba(255, 80, 80, 0.4) 6px,
    transparent 6px,
    transparent 10px
  );
}

.flow-arrow--blocked::after {
  border-left-color: rgba(255, 80, 80, 0.4);
}

.flow-node--result {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.flow-node--result .flow-private-icon svg {
  color: #aaa;
}

.flow-node--dp {
  border-color: rgba(180, 120, 255, 0.3);
  background: rgba(180, 120, 255, 0.05);
}
.flow-node--dp .flow-private-icon svg {
  color: #b478ff;
}

.flow-diagram--security {
  margin: 32px auto;
}

.page-sub-note {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Spec chapter styles */
.spec-grammar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px auto;
  max-width: 560px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #ccc;
  overflow-x: auto;
}

.spec-grammar code {
  font-family: inherit;
  color: inherit;
}

.spec-definitions {
  margin: 24px auto;
  max-width: 560px;
  text-align: left;
}

.spec-term {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin: 8px 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.spec-term code {
  color: #ddd;
  font-family: 'Space Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Tradeoff diagram */
.tradeoff-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.tradeoff-option {
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  min-width: 200px;
}

.tradeoff-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.tradeoff-desc {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
}

.tradeoff-or {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #444;
  font-style: italic;
}

/* Transparency stack */
.transparency-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  max-width: 400px;
}

.ts-layer {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  padding: 12px 16px;
  background: rgba(0, 255, 170, 0.03);
  border-left: 3px solid rgba(0, 255, 170, 0.3);
}

/* Vision statement */
.vision-statement {
  margin: 32px 0;
  padding: 32px;
  background: rgba(0, 255, 170, 0.03);
  border: 1px solid rgba(0, 255, 170, 0.1);
  border-radius: 12px;
  max-width: 600px;
}

.vision-statement p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: left;
}

.vision-statement p:last-child {
  margin-bottom: 0;
  color: #00ffaa;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* CLOSING                                                              */
/* ═══════════════════════════════════════════════════════════════════ */

.closing {
  min-height: 100vh;
  justify-content: center;
}

.vision-prose {
  max-width: 560px;
  text-align: left;
}

.vision-prose p {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 20px;
}

.vision-prose p:last-child {
  margin-bottom: 0;
  color: #bbb;
}

.closing-statement {
  margin-bottom: 32px;
}

.closing-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.closing-accent {
  color: #00ffaa;
}

.closing-sub {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.closing-sub a {
  color: #00ffaa;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 255, 170, 0.3);
}

.closing-sub a:hover {
  border-bottom-color: #00ffaa;
}

.closing-links {
  margin-top: 20px;
  margin-bottom: 80px;
}

.cta-button {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 32px;
  background: #00ffaa;
  color: #0a0a12;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.cta-button:hover {
  background: #33ffbb;
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
}

.cta-link {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.cta-link:hover {
  color: #00ffaa;
}

.closing-statement-2 {
  margin-top: 80px;
  margin-bottom: 40px;
}

.closing-big-2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  text-align: center;
}

.closing-abc-link {
  color: #00ffaa;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.closing-abc-link:hover {
  color: #33ffbb;
}

.closing-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.closing-built-by {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #555;
}

.closing-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.closing-logo-img {
  width: 40px;
  height: 40px;
}

.closing-logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* FOOTER                                                               */
/* ═══════════════════════════════════════════════════════════════════ */

footer {
  text-align: center;
  padding: 32px 20px;
  padding-left: 40px;
  color: #444;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.committed footer {
  padding-left: 200px;
}

footer a {
  color: #555;
  text-decoration: none;
}

footer a:hover {
  color: #00ffaa;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* AVATAR MIXING BOARD                                                   */
/* ═══════════════════════════════════════════════════════════════════ */

.avatar-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 100%;
  max-width: 800px;
}

.avatar-selector {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #555;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.avatar-selector:hover {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-selector.selected {
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.4);
}

.avatar-selector.selected:hover {
  background: rgba(0, 255, 170, 0.15);
  border-color: rgba(0, 255, 170, 0.5);
}

.avatar-card.active {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.avatar-mixer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-mixer:empty {
  display: none;
}

.mixer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mixer-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  min-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mixer-slider {
  flex: 1;
  accent-color: #00ffaa;
  height: 4px;
  cursor: pointer;
}

.mixer-pct {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  min-width: 32px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* WEB WORLD CARDS                                                       */
/* ═══════════════════════════════════════════════════════════════════ */

.webworld-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s;
  max-width: 1100px;
  width: 100%;
  margin-top: 24px;
}

.webworld-card:first-of-type {
  margin-top: 32px;
}

.webworld-card:hover {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.webworld-screenshots {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.webworld-featured .webpage-thumb {
  margin-bottom: 0;
  height: 100%;
}

.webworld-featured .webpage-thumb img {
  height: 100%;
  object-fit: cover;
}

.webworld-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.webworld-thumb-sm {
  margin-bottom: 0;
  flex: 1;
  min-height: 0;
}

.webworld-thumb-sm img {
  height: 100%;
  object-fit: cover;
}

/* (removed: kitchen sink card styles) */

/* ═══════════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                           */
/* ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
  }

  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }

  .swarm-selector,
  .avatar-selector,
  .cs-selector {
    font-size: 11px;
    padding: 6px 10px;
  }

  .use-case-card-chips {
    gap: 4px;
  }

  .avatar-card,
  .swarm-card,
  .custom-swarm-card,
  .webpage-card {
    padding: 16px 14px;
  }

  .swarm-card .use-case-title {
    font-size: 16px;
  }

  .swarm-card .use-case-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .toc {
    display: none;
  }

  .page,
  .chapter-break,
  footer {
    padding-left: 20px !important;
  }

  body.committed .page,
  body.committed .chapter-break,
  body.committed footer {
    padding-left: 20px !important;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subhead {
    font-size: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .agent-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 400px;
  }

  .closing-big {
    font-size: 24px;
  }

  .flow-diagram {
    transform: scale(0.8);
  }

  .flow-node-sources {
    display: none;
  }

  .enclave-diagram {
    flex-direction: column;
  }

  .enclave-arrow {
    transform: rotate(90deg);
  }

  .webworld-screenshots {
    grid-template-columns: 1fr;
  }

  .webworld-thumbs {
    flex-direction: row;
  }

  .webworld-thumb-sm {
    flex: 1;
  }

  .webworld-card {
    padding: 20px 16px;
  }

  .et-panels {
    grid-template-columns: 1fr;
  }

  .et-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .flow-diagram {
    transform: scale(0.65);
  }

  .closing-title {
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* STAR WARS EASTER EGG                                                */
/* ═══════════════════════════════════════════════════════════════════ */

.sw-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #222;
  border-radius: 50%;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0.3;
}

.sw-trigger:hover {
  opacity: 1;
  color: #ffe81f;
  border-color: #ffe81f;
  box-shadow: 0 0 20px rgba(255, 232, 31, 0.3);
}

.sw-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 1000;
  overflow: hidden;
}

.sw-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 40% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 80%, white, transparent),
    radial-gradient(1px 1px at 90% 40%, white, transparent),
    radial-gradient(1px 1px at 70% 10%, white, transparent),
    radial-gradient(1px 1px at 10% 90%, white, transparent),
    radial-gradient(1px 1px at 80% 60%, white, transparent),
    radial-gradient(1px 1px at 30% 50%, white, transparent),
    radial-gradient(1px 1px at 60% 20%, white, transparent),
    radial-gradient(1px 1px at 15% 15%, white, transparent),
    radial-gradient(1px 1px at 85% 85%, white, transparent),
    radial-gradient(1px 1px at 45% 45%, white, transparent),
    radial-gradient(2px 2px at 25% 65%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 75% 25%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 55% 95%, white, transparent),
    radial-gradient(1px 1px at 5% 55%, white, transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.sw-crawl-container {
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 400px;
  overflow: hidden;
}

.sw-crawl {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 90%;
  max-width: 800px;
  transform: translateX(-50%) rotateX(25deg);
  transform-origin: 50% 100%;
  animation: crawl 60s linear forwards;
  text-align: center;
}

@keyframes crawl {
  0% { top: 100%; }
  100% { top: -300%; }
}

.sw-intro {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: #4eb2ff;
  margin-bottom: 100px;
  opacity: 0;
  animation: fadeIn 2s ease-in 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.sw-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #ffe81f;
  letter-spacing: 8px;
  margin: 0 0 20px 0;
  text-shadow: 0 0 30px rgba(255, 232, 31, 0.5);
}

.sw-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #ffe81f;
  margin: 0 0 80px 0;
}

.sw-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  line-height: 1.6;
  color: #ffe81f;
  text-align: justify;
}

.sw-text p {
  margin-bottom: 40px;
}

.sw-close {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #666;
  background: transparent;
  border: 1px solid #333;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s;
}

.sw-close:hover {
  color: #ffe81f;
  border-color: #ffe81f;
}

@media (max-width: 768px) {
  .sw-title {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .sw-subtitle {
    font-size: 20px;
  }

  .sw-text {
    font-size: 24px;
  }

  .sw-intro {
    font-size: 20px;
  }
}

/* ─── Security Spectrum ────────────────────────────── */

.security-spectrum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 700px;
  padding: 0 20px;
}

.spectrum-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.2s;
  min-width: 80px;
}

.spectrum-node:hover {
  background: rgba(255, 255, 255, 0.05);
}

.spectrum-icon {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.spectrum-node:hover .spectrum-icon {
  opacity: 1;
}

.spectrum-node[data-tier="public"] .spectrum-icon { color: #8bc34a; }
.spectrum-node[data-tier="unlisted"] .spectrum-icon { color: #66bb6a; }
.spectrum-node[data-tier="proxied"] .spectrum-icon { color: #cddc39; }
.spectrum-node[data-tier="soft-gate"] .spectrum-icon { color: #ffa726; }
.spectrum-node[data-tier="hard-gate"] .spectrum-icon { color: #ff7043; }
.spectrum-node[data-tier="confidential"] .spectrum-icon { color: #42a5f5; }
.spectrum-node[data-tier="e2e"] .spectrum-icon { color: #ab47bc; }
.spectrum-node[data-tier="st"] .spectrum-icon { color: #b478ff; }

.spectrum-icon svg {
  width: 28px;
  height: 28px;
}

.spectrum-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}

.spectrum-desc {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
}

.spectrum-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  min-width: 20px;
  margin: 0 -4px;
  margin-bottom: 28px;
}

/* ─── MPC / E2E Flow Diagrams ──────────────────────── */

.flow-mpc-sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.flow-mpc-sources .flow-node {
  transform: scale(0.85);
}

.flow-diagram--mpc,
.flow-diagram--e2e {
  flex-wrap: nowrap;
}

@media (max-width: 600px) {
  .security-spectrum {
    flex-wrap: wrap;
    gap: 4px;
  }
  .spectrum-connector {
    display: none;
  }
  .spectrum-node {
    min-width: 60px;
  }
  .spectrum-label {
    font-size: 11px;
  }
}

/* ─── Unlisted Platforms ───────────────────────────── */

.unlisted-platforms {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.platform-category {
  text-align: left;
}

.platform-category-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-chip {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #bbb;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-chip code {
  font-family: inherit;
  font-size: 10px;
  color: #666;
}

.platform-chip--live {
  border-color: rgba(0, 255, 170, 0.2);
  background: rgba(0, 255, 170, 0.04);
}

.platform-chip--live code {
  color: rgba(0, 255, 170, 0.5);
}

/* Unlisted author note */
.unlisted-author-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 24px auto 0;
}

.unlisted-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.unlisted-author-text {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

/* Unlisted source mixer */
.unlisted-mixer {
  max-width: 900px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.unlisted-mixer-category {
  margin-bottom: 16px;
}

.unlisted-mixer-category:last-of-type {
  margin-bottom: 12px;
}

.unlisted-mixer-count {
  grid-column: 1 / -1;
}

.unlisted-mixer .swarm-try-wrapper {
  grid-column: 1 / -1;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .unlisted-mixer {
    grid-template-columns: 1fr;
  }
}

.unlisted-mixer-urls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.ul-selector {
  font-family: 'Space Mono', monospace;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.ul-selector:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.ul-selector.selected {
  background: rgba(0, 255, 170, 0.04);
  border-color: rgba(0, 255, 170, 0.25);
}

.ul-selector.selected:hover {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.4);
}

.ul-platform {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  transition: color 0.2s;
}

.ul-selector.selected .ul-platform {
  color: #fff;
}

.ul-url {
  font-size: 10px;
  color: #444;
  word-break: break-all;
  line-height: 1.4;
  margin-top: 3px;
  transition: color 0.2s;
}

.ul-selector.selected .ul-url {
  color: #888;
}

.ul-caption {
  font-size: 10px;
  color: #444;
  margin-top: 2px;
  font-style: italic;
  transition: color 0.2s;
}

.ul-selector.selected .ul-caption {
  color: rgba(0, 255, 170, 0.5);
}

.unlisted-mixer-count {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  text-align: center;
  margin: 12px 0;
}

.ul-count {
  color: #00ffaa;
  font-weight: 700;
}


.unlisted-mixer .platform-category-label {
  display: block;
  margin-bottom: 0;
}

/* Soft gate protocol list */
.soft-gate-protocols {
  max-width: 900px;
  margin: 24px auto 0;
}

.sg-protocol-category {
  margin-bottom: 16px;
}

.sg-protocol-category.sg-also-checked .sg-protocol-list {
  display: block;
  column-count: 2;
  column-gap: 12px;
}
.sg-protocol-category.sg-also-checked .sg-protocol {
  break-inside: avoid;
  margin-bottom: 6px;
}

.sg-protocol-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.sg-protocol {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 12px;
}

.sg-protocol-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.sg-protocol-how {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #f0a040;
  line-height: 1.4;
  margin-bottom: 4px;
  word-break: break-all;
}

.sg-protocol-desc {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
  line-height: 1.5;
}

.sg-coming-soon {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.sg-coming-soon:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Coming Soon modal */
.sg-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.sg-modal {
  background: #16161e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 28px 32px;
  max-width: 440px;
  width: 90%;
  position: relative;
}
.sg-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.sg-modal-close:hover { color: #fff; }
.sg-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #fff;
  margin: 0 0 12px;
}
.sg-modal-body {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin: 0 0 16px;
}
.sg-modal-link {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 170, 0.3);
  transition: all 0.2s;
}
.sg-modal-link:hover {
  color: #33ffbb;
  border-color: #33ffbb;
}

.sg-try {
  margin-top: 8px;
}

.sg-try .use-case-trigger {
  font-size: 10px;
  padding: 4px 10px;
}

@media (max-width: 700px) {
  .soft-gate-protocols {
    grid-template-columns: 1fr;
  }
}

/* ─── Proxy CTA ──────────────────────────────────── */

.proxied-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.proxy-cta {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  background: transparent;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.proxy-cta:hover {
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.5);
  color: #00ffaa;
}


.try-coming-soon {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: default;
  width: 100%;
}
