/* ============================
   For Developers Page
   ============================ */

/* ---- Hero ---- */
.dv-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 140px 24px 60px;
  gap: 48px;
}
.dv-hero-text {
  text-align: center;
  max-width: 720px;
}
.dv-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.dv-hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ---- Cursor-style IDE ---- */
.dv-ide {
  width: 100%;
  max-width: 960px;
  background: #1e1e1e;
  border-radius: 12px;
  border: none;
  overflow: hidden;
  box-shadow: none;
}
.dv-ide-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #181818;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dv-ide-dots { display: flex; gap: 6px; }
.dot-r { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #febc2e; }
.dot-g { width: 10px; height: 10px; border-radius: 50%; background: #28c840; }
.dv-ide-name {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5);
}
.dv-ide-action {
  font-size: 11px; color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  padding: 2px 8px;
}

/* IDE body — 3 panels */
.dv-ide-body {
  display: flex;
  height: 540px;
}

/* Left sidebar */
.dv-ide-sidebar {
  width: 180px;
  background: #1a1a1a;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  overflow-y: auto;
  flex-shrink: 0;
}
.dv-sb-section { margin-bottom: 16px; }
.dv-sb-label {
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3); padding: 0 12px 6px; display: flex; align-items: center; gap: 6px;
}
.dv-sb-count {
  background: rgba(255,255,255,0.08); border-radius: 3px;
  padding: 0 4px; font-size: 9px; color: rgba(255,255,255,0.4);
}
.dv-sb-item {
  padding: 8px 12px; cursor: default;
  border-left: 2px solid transparent;
  transition: background 0.15s;
}
.dv-sb-item.active {
  background: rgba(255,255,255,0.05);
  border-left-color: rgba(96, 165, 250, 0.6);
}
.dv-sb-item.done { opacity: 0.6; }
.dv-sb-item-title { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 2px; }
.dv-sb-item-sub { font-size: 10px; color: rgba(255,255,255,0.3); }
.dv-sb-item-meta { font-size: 10px; color: rgba(255,255,255,0.25); font-family: var(--mono); }

/* Center composer */
.dv-ide-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.dv-composer-body {
  flex: 1;
  padding: 18px 18px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.dv-composer-body::-webkit-scrollbar { width: 4px; }
.dv-composer-body::-webkit-scrollbar-track { background: transparent; }
.dv-composer-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Messages */
.dv-msg { margin-bottom: 16px; }
.dv-msg-user .dv-msg-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}
.dv-msg-agent { display: flex; flex-direction: column; gap: 12px; }

/* Agent think */
.dv-agent-think {
  font-size: 12px; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 6px;
}
.dv-think-icon { font-size: 6px; color: rgba(192, 132, 252, 0.6); }
.dv-think-time { color: rgba(255,255,255,0.2); font-size: 11px; }

/* Agent steps */
.dv-agent-steps { display: flex; flex-direction: column; gap: 4px; }
.dv-step {
  font-size: 12px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 6px;
}
.dv-step-check { font-size: 10px; color: rgba(74, 222, 128, 0.6); }
.dv-step code {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05);
  padding: 1px 5px; border-radius: 3px;
}

/* Agent text */
.dv-agent-text { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* Agent file */
.dv-agent-file {
  background: #161616; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
}
.dv-file-header {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 11px;
}
.dv-file-icon { color: rgba(255,255,255,0.2); font-size: 10px; }
.dv-file-name { color: rgba(255,255,255,0.55); font-family: var(--mono); font-size: 11px; }
.dv-file-badge { margin-left: auto; font-size: 10px; color: rgba(74,222,128,0.65); font-family: var(--mono); }
.dv-file-code {
  padding: 12px 14px; font-family: var(--mono); font-size: 11px;
  line-height: 1.7; color: rgba(255,255,255,0.55); overflow-x: auto; min-height: 30px;
}
.dv-file-code::-webkit-scrollbar { height: 4px; }
.dv-file-code::-webkit-scrollbar-track { background: #161616; }
.dv-file-code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Agent summary */
.dv-agent-summary { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* Composer input */
.dv-composer-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.06); background: #1a1a1a;
}
.dv-input-placeholder { font-size: 12px; color: rgba(255,255,255,0.15); }
.dv-input-meta { display: flex; align-items: center; gap: 8px; }
.dv-input-tag {
  font-size: 10px; color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 4px;
}
.dv-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(74,222,128,0.6); display: inline-block; }
.dv-input-model { font-size: 10px; color: rgba(255,255,255,0.2); }
.dv-model-arrow { font-size: 7px; margin-left: 2px; }

/* Right panel */
.dv-ide-right {
  width: 280px;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.dv-right-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0;
}
.dv-right-tab {
  padding: 8px 12px; font-size: 11px; font-family: var(--mono);
  color: rgba(255,255,255,0.3); border-bottom: 2px solid transparent;
  cursor: default; white-space: nowrap;
}
.dv-right-tab.active { color: rgba(255,255,255,0.7); border-bottom-color: rgba(96,165,250,0.5); }
.dv-right-content { flex: 1; overflow: auto; padding: 14px; background: #1a1a1a; }
.dv-right-content::-webkit-scrollbar { width: 4px; }
.dv-right-content::-webkit-scrollbar-track { background: #1a1a1a; }
.dv-right-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.dv-right-code {
  font-family: var(--mono); font-size: 11px; line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* Syntax colors — shared across page */
.ck { color: rgba(192, 132, 252, 0.7); }
.cs { color: rgba(134, 239, 172, 0.75); }
.cf { color: rgba(255,255,255,0.75); }
.ca { color: rgba(255,255,255,0.5); }
.ct { color: rgba(96, 165, 250, 0.65); }
.cc { color: rgba(255,255,255,0.2); }

/* ---- Block sections (Bugbot-style) ---- */
.dv-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}
.dv-block-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dv-block-inner.dv-split {
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
}
.dv-split .dv-block-text {
  flex: 0 0 320px;
  position: sticky;
  top: 100px;
}
.dv-split .dv-block-visual { flex: 1; }
.dv-block-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.dv-block-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  line-height: 1.6;
}

/* ---- Steps card (section 2) ---- */
.dv-steps-card {
  background: #161616;
  border-radius: 14px;
  padding: 28px 24px;
}
.dv-sc-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dv-sc-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.dv-sc-body {
  display: flex; flex-direction: column; gap: 2px; padding-top: 3px;
}
.dv-sc-body strong {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.dv-sc-body span {
  font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5;
}
.dv-sc-line {
  width: 1px; height: 18px; background: rgba(255,255,255,0.08);
  margin-left: 14px;
}
.dv-code-panel {
  background: #161616;
  border-radius: 14px;
  border: none;
  overflow: hidden;
}
.dv-code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dv-code-tab {
  padding: 10px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
}
.dv-code-tab:hover { color: rgba(255,255,255,0.6); }
.dv-code-tab.active {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.4);
}
.dv-code-content {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  overflow-x: auto;
}


/* ---- Features grid ---- */
.dv-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dv-feat {
  background: #161616;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dv-feat-text {
  padding: 24px 22px 16px;
}
.dv-feat-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.dv-feat-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
}
.dv-feat-demo {
  flex: 1;
  padding: 0 10px 10px;
}
.dv-feat-demo > div {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

/* --- Vault demo --- */
.dfd-vault { padding: 10px; }
.dfd-vault-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dfd-vault-row:last-child { border-bottom: none; }
.dfd-vault-icon {
  width: 24px; height: 24px; border-radius: 5px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.dfd-vault-name { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; min-width: 64px; }
.dfd-vault-key { font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 1px; flex: 1; }
.dfd-vault-badge {
  font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.dfd-vault-badge.active { background: rgba(74,222,128,0.1); color: rgba(74,222,128,0.7); }
.dfd-vault-badge.rotated { background: rgba(96,165,250,0.1); color: rgba(96,165,250,0.7); }

/* --- Replay demo --- */
.dfd-replay { display: flex; flex-direction: column; }
.dfd-replay-screen {
  flex: 1; background: #0a0a0a; padding: 8px;
  display: flex; flex-direction: column;
}
.dfd-replay-bar { height: 6px; background: rgba(255,255,255,0.04); border-radius: 2px; margin-bottom: 6px; }
.dfd-replay-win {
  flex: 1; min-height: 60px;
  background: rgba(255,255,255,0.03); border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}
.dfd-replay-controls {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dfd-play { font-size: 10px; color: rgba(255,255,255,0.5); }
.dfd-scrub { flex: 1; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.dfd-scrub-fill { width: 38%; height: 100%; background: rgba(96,165,250,0.5); border-radius: 2px; }
.dfd-time { font-size: 9px; color: rgba(255,255,255,0.2); font-family: var(--mono); }

/* --- Webhooks demo --- */
.dfd-hooks { padding: 8px; }
.dfd-hook-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dfd-hook-row:last-child { border-bottom: none; }
.dfd-hook-method {
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04); padding: 2px 5px; border-radius: 3px;
}
.dfd-hook-event { font-size: 11px; font-family: var(--mono); color: rgba(255,255,255,0.5); flex: 1; }
.dfd-hook-status {
  font-size: 10px; font-weight: 600; font-family: var(--mono);
  padding: 2px 6px; border-radius: 3px;
}
.dfd-hook-status.s200 { background: rgba(74,222,128,0.1); color: rgba(74,222,128,0.7); }
.dfd-hook-status.s202 { background: rgba(96,165,250,0.1); color: rgba(96,165,250,0.7); }
.dfd-hook-status.s500 { background: rgba(248,113,113,0.1); color: rgba(248,113,113,0.7); }

/* --- Parallel demo --- */
.dfd-parallel { padding: 10px; }
.dfd-par-header {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; text-align: center;
}
.dfd-par-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
}
.dfd-par-cell {
  background: rgba(255,255,255,0.03); border-radius: 6px;
  padding: 8px 8px; font-size: 10px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 5px;
}
.dfd-par-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.dfd-par-cell.done .dfd-par-dot { background: rgba(74,222,128,0.6); }
.dfd-par-cell.running .dfd-par-dot { background: rgba(96,165,250,0.6); }
.dfd-par-cell.queued .dfd-par-dot { background: rgba(255,255,255,0.15); }

/* --- JSON demo --- */
.dfd-json { padding: 12px 14px; }
.dfd-json-code {
  font-family: var(--mono); font-size: 11px; line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

/* --- Policies demo --- */
.dfd-policies { padding: 8px 10px; }
.dfd-pol-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dfd-pol-row:last-child { border-bottom: none; }
.dfd-pol-label { font-size: 11px; color: rgba(255,255,255,0.5); }
.dfd-pol-value {
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px;
}
.dfd-pol-toggle {
  width: 28px; height: 15px; border-radius: 8px;
  position: relative; flex-shrink: 0;
}
.dfd-pol-toggle.on { background: rgba(74,222,128,0.35); }
.dfd-pol-toggle.off { background: rgba(255,255,255,0.1); }
.dfd-pol-knob {
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; position: absolute; top: 2px;
}
.dfd-pol-toggle.on .dfd-pol-knob { left: 15px; }
.dfd-pol-toggle.off .dfd-pol-knob { left: 2px; }

/* ---- CTA ---- */
.dv-cta {
  text-align: center;
  padding: 60px 24px 100px;
}
.dv-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.dv-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dv-cta-secondary {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.dv-cta-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .dv-hero { padding: 80px 12px 40px; min-height: auto; }
  .dv-ide { border-radius: 10px; }
  .dv-ide-body { height: 400px; }
  .dv-ide-sidebar { display: none; }
  .dv-ide-right { display: none; }
  .dv-block { padding: 48px 16px; }
  .dv-block-inner.dv-split { flex-direction: column; gap: 24px; }
  .dv-split .dv-block-text { flex: auto; position: static; }
  .dv-features { grid-template-columns: 1fr; gap: 10px; }
  .dv-cta { padding: 40px 16px 60px; }
}
@media (max-width: 480px) {
  .dv-hero { padding: 70px 8px 24px; }
  .dv-ide-body { height: 360px; }
  .dv-composer-body { padding: 12px 10px; }
  .dv-msg-user .dv-msg-content { font-size: 12px; padding: 10px 12px; }
  .dv-section-title { font-size: 20px; }
  .dv-code-content { font-size: 11px; padding: 14px 12px; }
  .dv-feat { padding: 20px 18px; }
}
