/* === TOKENS === */
:root {
  --bg: #0F0E0B;
  --surface: #181714;
  --surface-alt: #211F1A;
  --amber: #D4A843;
  --amber-dim: #A07828;
  --text: #F5F4F0;
  --text-dim: #9B978D;
  --text-muted: #5A5750;
  --border: #2A2720;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

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

/* === TYPOGRAPHY === */
h1, h2, h3, blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* === LAYOUT === */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: 56px;
}

/* === NAV === */
.nav {
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* === HERO === */
.hero {
  padding: 96px 0 80px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-overline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.1;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.7;
}

/* Agent card */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.agent-dot {
  width: 10px;
  height: 10px;
  background: #4ADE80;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.agent-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ADE80;
  margin-bottom: 20px;
}
.agent-log { display: flex; flex-direction: column; gap: 8px; }
.log-line {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--surface-alt);
}
.log-done { color: #A3E635; }
.log-active { color: var(--amber); font-weight: 500; }

/* === HOW IT WORKS === */
.how-it-works {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card { position: relative; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface-alt);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.step-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; }

/* === WHY AGENTS === */
.why-agents {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-body { font-size: 1rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 28px; }
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.why-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}
.why-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.metric-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.metric-label { font-size: 0.85rem; color: var(--text-dim); }

/* === FEATURES === */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.feature-icon {
  color: var(--amber);
  margin-bottom: 16px;
}
.feature-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0;
}
.feature-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* === MANIFESTO === */
.manifesto {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
  font-weight: 400;
}
.manifesto-bottom {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-outro { font-size: 0.95rem; color: var(--text-dim); line-height: 1.8; }

/* === FOOTER === */
.footer {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}
.footer-desc { font-size: 0.82rem; color: var(--text-muted); max-width: 340px; line-height: 1.6; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { order: 1; }
  .hero-visual { order: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .section-headline { margin-bottom: 36px; }
  .nav { padding: 20px 24px; }
  .hero { padding: 64px 0 56px; }
}

/* === APP DASHBOARD === */
.app-main { min-height: calc(100vh - 80px); padding: 48px 0; }
.app-container { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.app-header { margin-bottom: 40px; }
.app-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.app-subtitle { font-size: 0.95rem; color: var(--text-dim); }

/* Research form */
.research-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.form-group input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; color: var(--text); font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--amber); }
.form-group input::placeholder { color: var(--text-muted); }
.optional { font-weight: 400; text-transform: none; color: var(--text-muted); letter-spacing: 0; }
.btn-primary {
  background: var(--amber); color: #0F0E0B; border: none; border-radius: 8px;
  padding: 14px 28px; font-size: 0.95rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.15s; width: 100%;
}
.btn-primary:hover { background: #E0B850; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: var(--surface-alt); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.15s;
}
.btn-secondary:hover { background: var(--border); }
.btn-hero {
  display: inline-block; background: var(--amber); color: #0F0E0B;
  padding: 14px 32px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; text-decoration: none; transition: background 0.15s;
  margin-top: 24px;
}
.btn-hero:hover { background: #E0B850; }

/* Results */
.results-section { margin-bottom: 48px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text); }
.prospect-badge { background: var(--surface-alt); color: var(--amber); border: 1px solid var(--amber-dim); border-radius: 20px; padding: 4px 14px; font-size: 0.8rem; font-weight: 600; }
.prospects-list { display: flex; flex-direction: column; gap: 12px; }
.prospect-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px;
  transition: border-color 0.15s;
}
.prospect-card:hover { border-color: var(--amber-dim); }
.prospect-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.prospect-name { font-weight: 600; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.prospect-title { font-size: 0.85rem; color: var(--text-dim); }
.prospect-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px;
  white-space: nowrap;
}
.badge-email { background: #1a2e1a; color: #86efac; border: 1px solid #2d4a2d; }
.badge-no-email { background: var(--surface-alt); color: var(--text-muted); }
.badge-verified { background: #1a2e1a; color: #86efac; border: 1px solid #2d4a2d; }
.badge-done { background: #1a2e1a; color: #86efac; border: 1px solid #2d4a2d; }
.badge-pending { background: var(--surface-alt); color: var(--text-dim); }
.badge-running { background: #2e1a0f; color: var(--amber); border: 1px solid var(--amber-dim); }
.badge-failed { background: #2e0f0f; color: #f87171; border: 1px solid #4a1a1a; }
.prospect-link { font-size: 0.8rem; color: var(--amber); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.prospect-link:hover { text-decoration: underline; }
.prospect-message { background: var(--bg); border-radius: 8px; padding: 14px 16px; margin-top: 8px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.prospect-message strong { color: var(--text); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }
.prospect-message p { margin: 0; }

/* Jobs */
.recent-jobs-section { margin-bottom: 40px; }
.section-subtitle { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); margin-bottom: 16px; }
.jobs-list { display: flex; flex-direction: column; gap: 8px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job-company { font-weight: 500; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.job-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Ready messages */
.ready-messages-section { margin-bottom: 40px; }
.ready-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ready-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
.ready-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ready-header strong { color: var(--text); font-size: 0.95rem; }
.ready-company { font-size: 0.82rem; color: var(--text-dim); }
.ready-email { font-size: 0.78rem; color: #86efac; background: #1a2e1a; padding: 2px 8px; border-radius: 8px; }
.ready-message { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 8px; background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.ready-link { font-size: 0.8rem; color: var(--amber); text-decoration: none; }
.ready-link:hover { text-decoration: underline; }

/* Error */
.error-card { background: #2e0f0f; border: 1px solid #4a1a1a; border-radius: 10px; padding: 16px 20px; color: #f87171; margin-bottom: 24px; }

/* Empty state */
.empty-state { font-size: 0.85rem; color: var(--text-muted); padding: 16px 0; }

/* Nav links */
.nav-links { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.nav-link { font-size: 0.85rem; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--amber); }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .app-container { padding: 0 20px; }
  .app-main { padding: 32px 0; }
  .prospect-header { flex-direction: column; }
  .prospect-badges { justify-content: flex-start; }
}