@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-elevated: #111111;
  --border: #1a1a1a;
  --border-active: #333333;
  --text: #e0e0e0;
  --text-muted: #777777;
  --text-dim: #444444;
  --accent: #ffffff;
  --green: #00ff88;
  --font: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 14px;
}
a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* SCANLINE */
.scanline {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
}

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 14px; font-weight: 600;
}
.nav-logo img { width: 24px; height: 24px; opacity: 0.9; }
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 12px; color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 12px; }
.nav-btn {
  padding: 6px 14px; border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn-primary { border-color: var(--text-muted); color: var(--accent); }

/* HERO */
#hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-logo-wrap { margin-bottom: 32px; }
.hero-logo {
  width: 80px; height: 80px; opacity: 0.9;
  animation: pulse-logo 4s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.5; }
}
.hero-meta { margin-bottom: 16px; }
.tag {
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}
#hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600; line-height: 1.3;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.hero-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.stat-box {
  padding: 12px 20px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 140px;
}
.stat-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.stat-val { font-size: 13px; color: var(--text-muted); }

/* SECTIONS */
section { padding: 80px 0; border-bottom: 1px solid var(--border); }
section h2 {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.section-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 32px; max-width: 600px; }
.about-desc { font-size: 13px; color: var(--text-muted); line-height: 1.9; margin-bottom: 24px; max-width: 640px; }
.divider { border-top: 1px solid var(--border); margin: 48px 0; }

/* STEPS */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step-box {
  padding: 20px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s;
}
.step-box:hover { border-color: var(--border-active); }
.step-num { font-size: 10px; color: var(--text-dim); }
.step-title { font-size: 13px; font-weight: 600; color: var(--accent); }
.step-desc { font-size: 11px; color: var(--text-dim); line-height: 1.6; }

/* AGENT GRID */
.agent-grid { margin-top: 16px; }
.agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.agent-row:last-child { border-bottom: none; }
.agent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink-dot 2s infinite; }
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.agent-name { font-size: 13px; color: var(--text); flex: 1; }
.agent-status { font-size: 11px; color: var(--green); }

/* BOUNTIES */
.bounty-feed { display: flex; flex-direction: column; gap: 24px; }
.bounty-loading { color: var(--text-dim); font-size: 13px; }
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.bounty-card {
  border: 1px solid var(--border); padding: 24px;
  transition: border-color 0.3s;
  animation: fade-in 0.5s ease;
}
.bounty-card:hover { border-color: var(--border-active); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.bounty-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.bounty-model { font-size: 11px; color: var(--green); letter-spacing: 0.05em; }
.bounty-price { font-size: 13px; color: var(--accent); font-weight: 600; }
.bounty-title { font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.bounty-summary { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.bounty-deliverables { list-style: none; margin-bottom: 16px; }
.bounty-deliverables li {
  font-size: 12px; color: var(--text-dim); padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.bounty-deliverables li::before { content: '> '; color: var(--text-dim); }

.bounty-thinking {
  margin-top: 16px; padding: 12px; background: var(--bg-elevated);
  border: 1px solid var(--border); font-size: 11px; color: var(--text-dim);
  line-height: 1.7; max-height: 120px; overflow-y: auto;
}
.bounty-thinking-label { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.08em; }

.bounty-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-copy {
  padding: 6px 12px; border: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted); background: transparent;
  font-family: var(--font); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { border-color: var(--green); color: var(--green); }

/* POSTED */
.posted-feed { display: flex; flex-direction: column; gap: 8px; }
.posted-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.posted-model { color: var(--green); min-width: 80px; font-size: 11px; }
.posted-title { color: var(--text-muted); flex: 1; }
.posted-link { color: var(--text-dim); }
.posted-link a { color: var(--text-dim); }
.posted-link a:hover { color: var(--accent); }

/* WHITEPAPER */
.wp-content { max-width: 700px; }
.wp-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.wp-section:last-child { border-bottom: none; }
.wp-section h3 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.wp-section p { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.wp-section ul { margin-bottom: 12px; padding-left: 0; list-style: none; }
.wp-section li { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; padding-left: 16px; position: relative; }
.wp-section li::before { content: '-'; position: absolute; left: 0; color: var(--text-dim); }

/* FOOTER */
#footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-dim);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 11px; }
.footer-status { color: var(--green); }

/* MOBILE */
@media (max-width: 700px) {
  .steps-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
