:root {
  --bg: #0D0D0D;
  --bg-alt: #161614;
  --cream: #F5EFE0;
  --amber: #E8960C;
  --amber-dim: rgba(232, 150, 12, 0.12);
  --text: #FAFAF9;
  --text-muted: #8A8A86;
  --text-dim: #4A4A47;
  --border: rgba(250, 250, 249, 0.08);
  --radius: 6px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

/* Agent Card Visual */
.agent-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.agent-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(232, 150, 12, 0.04);
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.agent-dot.active { box-shadow: 0 0 0 3px rgba(232, 150, 12, 0.25); }
.agent-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-card-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-task {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.task-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 600;
}
.task-status.done { background: rgba(232, 150, 12, 0.15); color: var(--amber); }
.task-status.active { background: var(--amber); color: #000; }
.task-status.wait { border: 1px solid var(--text-dim); color: var(--text-dim); }
.agent-task:has(.active) { color: var(--text); }
.agent-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.agent-stat {
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
}

/* Stats */
.stats {
  padding: 40px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 200px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 48px;
}

/* Process */
.process {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 60px;
  max-width: 600px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step {
  padding: 0 40px 0 0;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Features */
.features {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--border);
}
.feature:nth-child(3n) { border-right: none; }
.feature:nth-child(n+4) { padding-top: 40px; }
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--amber-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Testimonials */
.testimonials {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  margin-top: -40px;
  line-height: 1.65;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.testimonial-card.light {
  background: var(--cream);
  border-color: rgba(0,0,0,0.08);
}
.testimonial-card.light .testimonial-quote { color: #1A1A18; }
.testimonial-card.light .testimonial-attr { color: #6B6B67; }
.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-attr {
  font-size: 13px;
  color: var(--text-muted);
}

/* Closing */
.closing {
  padding: 100px 40px;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.footer-tag {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; padding: 0 0 40px; }
  .step:last-child { padding-bottom: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature { border-right: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .nav-tagline { display: none; }
  .footer-tag { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 24px 40px; }
  .stats, .process, .features, .testimonials, .closing { padding: 60px 24px; }
  .process-steps, .features-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
  .closing-headline { font-size: 36px; }
}

/* App — Onboarding */
.app-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.onboarding-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.onboarding-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.onboarding-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
}
.form-group input::placeholder { color: var(--text-dim); }
.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.form-error {
  font-size: 13px;
  color: #e05252;
  margin-top: 4px;
}

/* App — Dashboard */
.app-shell {
  min-height: 100vh;
  background: var(--bg);
}
.app-topbar {
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.app-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-user-info {
  font-size: 13px;
  color: var(--text-muted);
}
.app-main {
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.btn-sm {
  padding: 8px 16px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary {
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text); }
.btn-danger {
  padding: 8px 16px;
  background: rgba(224, 82, 82, 0.12);
  color: #e05252;
  border: 1px solid rgba(224, 82, 82, 0.2);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .val {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
}
.stat-card .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-card.amber .val { color: var(--amber); }

/* Campaign list */
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.campaign-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}
.campaign-card:hover { border-color: var(--text-dim); }
.campaign-card .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.campaign-card .status-dot.running { background: #4ade80; }
.campaign-card .status-dot.paused { background: var(--text-dim); }
.campaign-card .status-dot.draft { background: var(--text-dim); border: 1px dashed var(--text-dim); }
.campaign-card .status-dot.completed { background: var(--amber); }
.campaign-info { flex: 1; }
.campaign-info h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.campaign-info p { font-size: 13px; color: var(--text-muted); }
.campaign-meta { font-size: 12px; color: var(--text-dim); }

/* Inbox */
.reply-list { display: flex; flex-direction: column; gap: 8px; }
.reply-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.reply-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.reply-body { flex: 1; }
.reply-from { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.reply-preview { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.reply-time { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-family: 'Playfair Display', Georgia, serif;
}
.empty-state p { font-size: 14px; line-height: 1.6; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.step-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.step-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.step-item .step-num-tag {
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.step-item h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-item p { font-size: 13px; color: var(--text-muted); }
.step-item .delay {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: color 0.15s;
}
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--amber);
  font-weight: 600;
}
.tab-btn:hover { color: var(--text); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Prospect CSV import */
.csv-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}
textarea.json-input {
  font-family: 'DM Sans', monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 160px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}