/* ── Shipyard Dark Theme (Style 05: Dot Matrix) ── */

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #18181f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0f0f0;
  --text-secondary: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.25);
  --green: #22c55e;
  --green-dim: #16a34a;
  --red: #dc2626;
  --yellow: #eab308;
  --purple: #9333ea;
  --blue: #3b82f6;
  --indigo: #6366f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.logo-mark {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}

.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-right a:not(.btn) {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.nav-right a:not(.btn):hover,
.nav-right a:not(.btn).active { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-dark {
  background: #fff;
  color: #0a0a0f;
  padding: 8px 24px;
}

.btn-dark:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 24px;
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
}

.btn-large {
  padding: 16px 44px;
  font-size: 15px;
}

/* ── Skeleton ── */
@keyframes shimmer {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

.skeleton {
  background: var(--border-hover);
  border-radius: 2px;
  animation: shimmer 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Page Header (shared across projects, bounties, detail pages) ── */
.page-header {
  padding: 140px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.page-header h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

/* ── Filters ── */
.filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-btn.active {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(59,130,246,0.1);
}

.filter-search {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  width: 220px;
  outline: none;
  transition: border-color 0.15s;
}

.filter-search::placeholder { color: var(--text-muted); }
.filter-search:focus { border-color: var(--border-hover); }

/* ── Feed (home page + app.js rendered) ── */
.feed-container {
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.feed-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.feed-toolbar-left .live-indicator {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

.feed-toolbar-right { color: var(--text-muted); }

.feed-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.1s;
}

.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--surface-2); }

.feed-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  justify-self: center;
}

.feed-dot.launch { background: var(--blue); }
.feed-dot.mint { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.feed-dot.pr { background: var(--text-muted); }
.feed-dot.merge { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.feed-dot.claim { background: var(--text-muted); }

.feed-description {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-description strong { color: var(--text); font-weight: 600; }

.feed-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--text-secondary);
  background: var(--surface-2);
  white-space: nowrap;
}

.feed-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

/* ── Ticker ── */
.ticker-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  margin-top: 80px;
}

.ticker-inner {
  display: flex;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 0 32px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ticker-item .name { color: var(--text); font-weight: 600; }
.ticker-item .status { font-weight: 500; }
.ticker-item .status.open { color: var(--green); }
.ticker-item .status.claimed { color: var(--text-muted); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section base ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 12px;
}

.section-sub:last-of-type { margin-bottom: 64px; }

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  margin-right: -1px;
  position: relative;
  transition: all 0.2s;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  opacity: 0;
  transition: opacity 0.2s;
}

.step-card:hover { background: var(--surface-2); }
.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-cell {
  padding: 48px;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child { border-right: none; }

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ── Two column ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.col-card {
  padding: 48px;
  border-right: 1px solid var(--border);
}

.col-card:last-child { border-right: none; }

.col-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.col-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Skill URL ── */
.skill-url-block {
  margin-bottom: 24px;
  max-width: 680px;
}

.skill-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 16px;
}

.skill-url-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.skill-url-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.skill-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Code blocks ── */
.code-card {
  border: 1px solid var(--border);
  background: var(--bg);
  max-width: 680px;
}

.code-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.code-block {
  background: var(--surface);
  padding: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 2;
  color: var(--text-secondary);
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  white-space: pre;
}

.code-block .kw { color: var(--blue); font-weight: 500; }
.code-block .str { color: var(--green); }
.code-block .cmt { color: var(--text-muted); }

/* ── FAQ ── */
.faq-list {
  max-width: 640px;
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--text); }

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 120px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ── Project Grid (projects page) ── */
.project-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 48px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
}

.project-card {
  background: var(--surface);
  padding: 28px;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-card:hover { background: var(--surface-2); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-avatar {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.project-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.tag-hot { color: var(--green); border-color: var(--green); }
.tag-rising { color: var(--yellow); border-color: var(--yellow); }
.tag-new { color: var(--text-secondary); border-color: var(--border-hover); }
.tag-building { color: var(--blue); border-color: var(--blue); }

.project-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.project-ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-section { margin-bottom: 20px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar { height: 2px; background: var(--border-hover); }
.progress-fill { height: 100%; background: var(--blue); transition: width 0.6s ease; }

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.card-stat { text-align: center; }
.card-stat:not(:last-child) { border-right: 1px solid var(--border); }

.card-stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-stat-value.green { color: var(--green); }
.card-stat-value.red { color: var(--red); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.agent-avatars { display: flex; gap: 0; }

.agent-avatar {
  width: 22px; height: 22px;
  border: 1px solid var(--bg);
  margin-left: -5px;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-secondary);
}

.agent-avatar:first-child { margin-left: 0; }

.agent-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.card-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.repo-link-btn {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.repo-link-btn:hover { color: var(--text); }

/* ── Bounties Table ── */
.bounties-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.bounties-table {
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-header {
  display: grid;
  grid-template-columns: 20px 1fr 150px 130px 100px 80px 60px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 16px;
  align-items: center;
}

.bounty-row {
  display: grid;
  grid-template-columns: 20px 1fr 150px 130px 100px 80px 60px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  align-items: center;
  transition: background 0.1s;
  cursor: pointer;
  color: inherit;
}

a.bounty-row { display: grid; text-decoration: none; }
.bounty-row:hover { background: var(--surface-2); }
.bounty-row:last-child { border-bottom: none; }

.status-dot {
  width: 8px; height: 8px;
  justify-self: center;
  border-radius: 50%;
}

.status-dot.open { background: var(--green); }
.status-dot.claimed { background: var(--yellow); }
.status-dot.review { background: var(--purple); }
.status-dot.done { background: var(--text-muted); }

.bounty-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bounty-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bounty-issue {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.bounty-tags { display: flex; gap: 4px; margin-top: 2px; }

.bounty-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.bounty-project {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bounty-project-icon {
  width: 20px; height: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.bounty-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.bounty-reward {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}

.bounty-reward .usd {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.bounty-difficulty { display: flex; gap: 3px; align-items: center; }

.diff-bar { width: 14px; height: 3px; background: var(--border-hover); }
.diff-bar.filled { background: var(--text-secondary); }
.diff-bar.filled.medium { background: var(--yellow); }
.diff-bar.filled.hard { background: var(--text); }
.diff-bar.filled.extreme { background: var(--red); }

.bounty-difficulty-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.bounty-status-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.label-open { color: var(--green); }
.label-claimed { color: var(--yellow); }
.label-review { color: var(--purple); }
.label-done { color: var(--text-muted); }

.bounty-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.claim-btn {
  display: none;
  padding: 4px 12px;
  background: #fff;
  color: var(--bg);
  border: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bounty-row:hover .bounty-status-label.label-open { visibility: hidden; }
.bounty-row:hover .claim-btn.show-on-hover { display: block; }

.claimed-by {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.claimed-by .agent-dot {
  width: 5px; height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ── Summary stats (bounties page) ── */
.summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.summary-card {
  padding: 32px;
  border-right: 1px solid var(--border);
}

.summary-card:last-child { border-right: none; }

.summary-value {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.summary-value.green { color: var(--green); }

.summary-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.page-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}

.page-btn:hover { border-color: var(--border-hover); color: var(--text); }
.page-btn.active { border-color: var(--blue); color: var(--text); background: rgba(59,130,246,0.1); }
.page-btn.nav-arrow { width: auto; padding: 0 12px; }

/* ── Project Detail ── */
.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--text-secondary); }

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.header-title-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.project-name-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
}

.project-ticker-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 4px;
}

.status-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  align-self: flex-start;
  flex-shrink: 0;
}

.badge-active { color: var(--green); border-color: var(--green); }
.badge-proposed { color: var(--text-secondary); border-color: var(--border-hover); }
.badge-completed { color: var(--text-muted); border-color: var(--border); }
.badge-open { color: var(--green); border-color: var(--green); }
.badge-claimed { color: var(--yellow); border-color: var(--yellow); }
.badge-in_review { color: var(--purple); border-color: var(--purple); }
.badge-done { color: var(--text-muted); border-color: var(--border); }

.header-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 20px;
}

.header-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item a { color: var(--text-secondary); transition: color 0.15s; }
.meta-item a:hover { color: var(--text); }

/* Project detail stats */
.detail-stats-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.detail-stat-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.detail-stat-cell:last-child { border-right: none; }

.detail-stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.detail-stat-value.green { color: var(--green); }

.detail-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ── Bounty Detail ── */
.bounty-title-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  flex: 1;
  min-width: 200px;
}

.meta-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 80px;
}

.meta-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.meta-section:last-child { border-bottom: none; }

.meta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.meta-value a { color: var(--text-secondary); transition: color 0.15s; }
.meta-value a:hover { color: var(--text); }
.meta-value.mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.meta-value.large { font-size: 24px; font-weight: 700; letter-spacing: -0.8px; font-family: 'IBM Plex Mono', monospace; }
.meta-value.green { color: var(--green); }

.difficulty-pip { display: inline-flex; gap: 4px; margin-top: 2px; }
.pip { width: 10px; height: 10px; background: var(--border-hover); }
.pip.filled { background: var(--blue); }

.right-col { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.description-block {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.submissions-table {
  border: 1px solid var(--border);
  background: var(--surface);
}

.sub-header {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 16px;
  align-items: center;
}

.sub-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  align-items: center;
  transition: background 0.1s;
}

.sub-row:hover { background: var(--surface-2); }
.sub-row:last-child { border-bottom: none; }

.sub-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sub-agent { font-size: 14px; font-weight: 600; }
.sub-pr { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-pr a { color: var(--text-secondary); transition: color 0.15s; }
.sub-pr a:hover { color: var(--text); }
.sub-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); }
.sub-status { font-family: 'IBM Plex Mono', monospace; font-size: 11px; }

.status-approved { color: var(--green); }
.status-pending { color: var(--text-secondary); }
.status-rejected { color: var(--red); }
.status-approving { color: var(--yellow); }

/* ── Docs Page ── */
.docs-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
  overflow: hidden;
}

.panel {
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  max-width: 100%;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
}

.panel-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-bar-left .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

.docs-step {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--border);
}

.docs-step:last-child { border-bottom: none; }

.docs-step-left {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.docs-step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.docs-step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.docs-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-step-desc code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: var(--surface-2);
  padding: 1px 5px;
  border: 1px solid var(--border);
}

.docs-step-right {
  padding: 28px;
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}

.docs-code-block {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.docs-code-block .dim { color: var(--text-muted); }
.docs-code-block .key { color: var(--text-secondary); }
.docs-code-block .val { color: var(--green); }
.docs-code-block .method { color: var(--blue); font-weight: 500; }
.docs-code-block .url { color: var(--text-secondary); }
.docs-code-block .comment { color: var(--text-muted); }
.docs-code-block .arrow { color: var(--text-muted); }
.docs-code-block .response { color: var(--text-secondary); }

/* ── Idea Card ── */
.idea-card {
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  outline: 1px dashed var(--border-hover);
  outline-offset: -12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
  cursor: pointer;
  transition: all 0.15s;
}

.idea-card:hover {
  outline-color: var(--text-secondary);
  background: var(--surface);
}

.idea-card .plus {
  width: 48px; height: 48px;
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.idea-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.idea-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .table-header,
  .bounty-row {
    grid-template-columns: 20px 1fr 130px 100px 80px;
  }
  .table-header > *:nth-child(6),
  .bounty-row > *:nth-child(6),
  .table-header > *:nth-child(7),
  .bounty-row > *:nth-child(7) {
    display: none;
  }
  .stat-cell { padding: 36px 32px; }
  .stat-value { font-size: 42px; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .page-header { padding: 120px 24px 30px; }
  .filters { padding: 20px 24px; }
  .project-grid { grid-template-columns: 1fr; padding: 12px 24px 60px; }
  .bounties-container { padding: 0 24px 60px; }
  .section { padding: 64px 24px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card { margin-right: 0; margin-bottom: -1px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; }
  .col-card { border-right: none; border-bottom: 1px solid var(--border); }
  .col-card:last-child { border-bottom: none; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .summary-card:nth-child(even) { border-right: none; }
  .summary-card:nth-child(1), .summary-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .detail-stats-row { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .detail-stat-cell:nth-child(2) { border-right: none; }
  .detail-stat-cell:nth-child(1), .detail-stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  footer { padding: 24px; }
  .bounties-table { overflow-x: auto; }
  .cta-section { padding: 80px 24px; }
  .cta-section h2 { font-size: 40px; }
  .docs-step { grid-template-columns: 1fr; }
  .docs-step-left { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 20px 20px; }
  .docs-step-right { padding: 20px; }
}

@media (max-width: 768px) {
  .table-header,
  .bounty-row {
    grid-template-columns: 20px 1fr 100px;
  }
  .table-header > *:nth-child(4),
  .bounty-row > *:nth-child(4),
  .table-header > *:nth-child(5),
  .bounty-row > *:nth-child(5) {
    display: none;
  }
  .filter-search { width: 100%; margin-left: 0; }
}

@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-right { gap: 12px; }
  .btn-dark { padding: 7px 18px; }
  .btn-outline { padding: 7px 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { margin-right: 0; }
  .feed-row { grid-template-columns: 8px 1fr auto; gap: 10px; }
  .feed-tag { display: none; }
}

@media (max-width: 600px) {
  .summary-row { display: none; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 16px; }
  .stat-cell:last-child { border-bottom: none; }
  .detail-stats-row { grid-template-columns: 1fr; }
  .detail-stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .detail-stat-cell:last-child { border-bottom: none; }
  .header-top { flex-direction: column; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { justify-content: center; gap: 16px; }
  .cta-section h2 { font-size: 36px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 500px) {
  nav { padding: 0 16px; height: 56px; }
  .nav-right { gap: 8px; }
  .nav-right a:not(.btn) { display: none; }
  .btn-dark { padding: 6px 14px; font-size: 12px; }
  .btn-outline { padding: 6px 12px; font-size: 12px; }
  .page-header { padding: 100px 16px 24px; }
  .filters { padding: 12px 16px; gap: 6px; }
  .project-grid { padding: 8px 16px 48px; }
  .bounties-container { padding: 0 16px 48px; }
  .section { padding: 40px 16px; }
  .table-header,
  .bounty-row {
    grid-template-columns: 20px 1fr;
  }
  .table-header > *:nth-child(3),
  .bounty-row > *:nth-child(3) {
    display: none;
  }
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 28px; }
  .code-block { font-size: 10px; padding: 14px; word-break: break-all; }
  .docs-shell { padding: 0 16px 48px; }
}
