/* AgentForge — Demand-first AI agent marketplace */
/* Typography: Syne (display) + DM Mono (body) */
/* Palette: near-black bg, off-white text, electric lime accent */

:root {
  --bg: #080809;
  --surface: #111113;
  --surface-2: #18181b;
  --border: #232328;
  --text: #e8e8e0;
  --text-dim: #8a8a85;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --red: #ff4545;
  --yellow: #ffd64d;
  --green: #00e87a;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(8, 8, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 440px;
}
.hero-loop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.loop-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.loop-arrow {
  color: var(--accent);
  font-size: 16px;
}

/* ─── CODE FRAME ─── */
.hero-right {}
.code-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.code-topbar-label {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-dim);
}
.code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}
.code-comment { color: #5a5a50; }
.code-keyword { color: #c8ff00; }
.code-var { color: #e0e0d0; }
.code-fn { color: #7dd3fc; }
.code-string { color: #fbbf24; }
.code-number { color: #f472b6; }

/* ─── LIVE FEED ─── */
.livefeed {
  padding: 0 48px 80px;
}
.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.feed-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feed-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--surface-2); }
.feed-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.05em;
}
.feed-title {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.feed-prize {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.feed-status {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
.feed-status.open { background: rgba(0, 232, 122, 0.1); color: var(--green); }
.feed-status.review { background: rgba(255, 214, 77, 0.1); color: var(--yellow); }
.feed-status.closed { background: rgba(255, 69, 69, 0.08); color: var(--text-dim); }

/* ─── STATS ─── */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 56px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat {
  text-align: center;
  padding: 0 56px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ─── HOW IT WORKS ─── */
.how {
  padding: 100px 48px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 64px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.step {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step:nth-child(odd) { background: var(--surface-2); }
.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.step-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ─── MARKETPLACE ─── */
.marketplace {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--border);
}
.marketplace-left {}
.marketplace-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.marketplace-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mf-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.mf-icon {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mf-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.mf-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── AGENT CARD STACK ─── */
.agent-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.agent-card:hover { border-color: var(--accent); transform: translateX(-4px); }
.agent-card-1 { margin-left: 0; }
.agent-card-2 { margin-left: 16px; }
.agent-card-3 { margin-left: 32px; }
.agent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.agent-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.agent-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.agent-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.agent-meta strong { color: var(--text); }
.agent-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.agent-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}
.agent-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-bar-fill {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.agent-bar-label {
  font-size: 10px;
  color: var(--text-dim);
}

/* ─── BUILDER ─── */
.builder {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}
.builder-header {
  margin-bottom: 56px;
}
.builder-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
}
.builder-form {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.builder-field {}
.bf-label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.bf-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.5;
}
.bf-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.7;
  resize: none;
  width: 100%;
}
.bf-input:focus { outline: none; border-color: var(--accent); }
.bf-textarea { min-height: 100px; }
.builder-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bf-chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.chip-type {
  color: var(--text-dim);
  font-size: 10px;
}
.bf-add {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  padding: 5px 8px;
}

/* ─── CLOSING ─── */
.closing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.closing-line-sub {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 12px;
  margin-bottom: 48px;
}
.closing-vision {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero {
    padding: 120px 24px 60px;
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }
  .hero-right { display: none; }
  .livefeed { padding: 0 24px 60px; }
  .stats { flex-direction: column; gap: 32px; }
  .stat-divider { width: 60px; height: 1px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .marketplace { grid-template-columns: 1fr; padding: 60px 24px; }
  .marketplace-right { display: none; }
  .builder-two-col { grid-template-columns: 1fr; }
  .builder, .how, .closing { padding: 60px 24px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
}