/* ===================================
   LEADSPARK — CSS THEME
   Typography: Syne + DM Sans
   Palette: Near-black / Lime / Warm white
   =================================== */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --border: #2A2A2A;
  --text: #F5F5F0;
  --text-muted: #888;
  --accent: #B8FF57;
  --accent-dim: rgba(184, 255, 87, 0.12);
  --accent-glow: rgba(184, 255, 87, 0.06);
}

*, *::before, *::after { 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;
}

/* Dot grid background */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Nav */
.nav { padding: 20px 48px; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--accent); font-size: 18px; }
.logo-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.nav-tagline { font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; }

/* Hero */
.hero { padding: 80px 48px 100px; }
.hero-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(184, 255, 87, 0.05), 0 40px 80px rgba(0,0,0,0.5);
}
.terminal-bar { background: var(--surface-2); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F57; }
.yellow { background: #FEBC2E; }
.green { background: #28C840; }
.t-label { font-size: 11px; color: var(--text-muted); margin-left: 8px; font-family: monospace; }
.terminal-body { padding: 20px; }
.t-row { display: grid; grid-template-columns: 72px 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-family: monospace; }
.t-row.t-header { color: var(--text-muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.t-row.t-active { background: rgba(184, 255, 87, 0.05); border: 1px solid rgba(184, 255, 87, 0.15); }
.badge-run { background: #B8FF57; color: #000; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.badge-done { background: rgba(255,255,255,0.1); color: var(--text-muted); font-size: 10px; padding: 2px 6px; border-radius: 3px; }
.num { color: var(--text); font-weight: 500; }
.t-progress { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.t-progress-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-family: monospace; }
.t-bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.t-fill { height: 100%; background: var(--accent); border-radius: 2px; animation: fillGrow 2s ease-out forwards; }
@keyframes fillGrow { from { width: 0; } }

/* Hero copy */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(184,255,87,0.2); border-radius: 100px; width: fit-content; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.accent { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 480px; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { }
.stat-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 28px; color: var(--text); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Pipeline section */
.pipeline { padding: 100px 48px; border-top: 1px solid var(--border); }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -1.5px; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 480px; margin-bottom: 60px; }
.section-title + .section-sub { margin-top: 0; }
.pipeline-steps { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-start; gap: 24px; }
.step { flex: 1; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; position: relative; }
.step-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-bottom: 16px; }
.step-icon { margin-bottom: 16px; }
.step-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-connector { display: flex; align-items: center; padding-top: 48px; flex-shrink: 0; }
.pipeline-tech { max-width: 1200px; margin: 48px auto 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); }
.tech-label { font-size: 12px; color: var(--text-muted); }
.tech-badge { font-size: 12px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }

/* Marketplace */
.marketplace { padding: 100px 48px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marketplace-inner { max-width: 1200px; margin: 0 auto; }
.marketplace-header { margin-bottom: 56px; }
.lists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.list-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; transition: border-color 0.2s; }
.list-card:hover { border-color: rgba(184, 255, 87, 0.3); }
.list-tag { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; width: fit-content; margin-bottom: 14px; background: rgba(255,255,255,0.07); color: var(--text-muted); }
.list-tag.new { background: var(--accent-dim); color: var(--accent); }
.list-name { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 12px; line-height: 1.3; }
.list-meta { display: flex; gap: 16px; margin-bottom: 20px; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.list-sample { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 20px; }
.sample-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 8px; padding: 7px 0; font-size: 11px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sample-row:last-child { border-bottom: none; }
.sample-row.dim { opacity: 0.4; }
.s-domain { font-family: monospace; color: var(--text); }
.s-stack { color: var(--text-muted); }
.s-founder { color: var(--accent); }
.list-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.list-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; }
.list-format { font-size: 12px; color: var(--text-muted); }

/* Pricing */
.pricing { padding: 100px 48px; }
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.price-card.featured { border-color: var(--accent); background: linear-gradient(135deg, var(--surface) 0%, rgba(184,255,87,0.04) 100%); }
.price-tier { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.price-tier.accent { color: var(--accent); }
.price-range { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -2px; margin-bottom: 24px; }
.price-per { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { font-size: 14px; color: var(--text-muted); padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: '→'; color: var(--accent); font-size: 12px; }
.price-note { font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; line-height: 1.5; }

/* Manifesto */
.manifesto { padding: 100px 48px; border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 720px; margin: 0 auto; }
.manifesto-mark { font-size: 48px; color: var(--accent); margin-bottom: 32px; }
.manifesto-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 46px); letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 32px; }
.manifesto-body p { font-size: 17px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.manifesto-body p:last-child { color: var(--text); }

/* Closing */
.closing { padding: 100px 48px; border-top: 1px solid var(--border); text-align: center; }
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -2px; margin-bottom: 20px; }
.closing-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; line-height: 1.6; }
.closing-companies { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.closing-label { font-size: 13px; color: var(--text-muted); }
.country { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px; }
.country-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Footer */
.footer { padding: 32px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pipeline-steps { flex-wrap: wrap; }
  .step { flex: 0 0 calc(50% - 12px); }
  .step-connector { display: none; }
  .lists-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 24px 72px; }
  .pipeline, .marketplace, .pricing, .manifesto, .closing { padding: 72px 24px; }
  .nav { padding: 16px 24px; }
  .footer { padding: 24px; }
  .sample-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .step { flex: 0 0 100%; }
  .price-range { font-size: 32px; }
}
/* ===== DASHBOARD ===== */
.dashboard-wrap { min-height: calc(100vh - 65px); padding: 40px 48px; }
.dashboard-inner { max-width: 1200px; margin: 0 auto; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.dash-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -1px; }
.dash-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.dash-filters { display: flex; gap: 12px; align-items: center; }
select { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; border: none; transition: all 0.15s; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #caff80; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Summary cards */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.s-card-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.s-card-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -1px; }
.s-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.filter-count { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* Leads table */
.leads-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th { text-align: left; padding: 14px 16px; font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.leads-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-domain { font-family: monospace; font-size: 12px; }
.td-name { font-weight: 500; }
.td-email { color: var(--accent); font-size: 12px; }
.td-status { display: inline-flex; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-enriched { background: rgba(184,255,87,0.12); color: var(--accent); }
.status-scraped { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.tech-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tech-pill { font-size: 10px; padding: 2px 8px; background: rgba(255,255,255,0.06); border-radius: 4px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

/* Purchase 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; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 440px; width: 100%; }
.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.hidden { display: none; }

@media (max-width: 768px) {
  .dashboard-wrap { padding: 24px 16px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; gap: 16px; }
  .dash-filters { width: 100%; }
}
