:root {
  --bg: #F5F2EE;
  --fg: #161618;
  --teal: #00D4A4;
  --grey: #6B7280;
  --grey-light: #9CA3AF;
  --card-bg: #EDEAE5;
  --card-dark: #1C1C1F;
  --border: rgba(22,22,24,0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 80px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.nav-tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--fg);
  color: var(--bg) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--fg) !important; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 80px 120px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--grey);
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--fg);
}
.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 460px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--grey);
  margin-top: 2px;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); color: var(--fg); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg); }

/* Hero visual */
.hero-visual {
  position: relative;
}
.email-preview-card {
  background: var(--card-dark);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}
.email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.email-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--fg);
}
.email-meta { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.4; }
.email-meta strong { color: rgba(255,255,255,0.85); display: block; font-size: 14px; }
.email-subject { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; }
.email-body-lines { display: flex; flex-direction: column; gap: 10px; }
.email-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.12);
}
.email-line:nth-child(1) { width: 100%; }
.email-line:nth-child(2) { width: 90%; }
.email-line:nth-child(3) { width: 75%; }
.email-line:nth-child(4) { width: 85%; }
.email-line:nth-child(5) { width: 60%; }
.email-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--teal);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Features */
.features {
  padding: 100px 80px;
  background: white;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
}
.feature-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--card-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}
.feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}

/* Sequence section */
.sequence {
  padding: 100px 80px;
  background: var(--fg);
  color: white;
}
.sequence .section-label { color: var(--teal); }
.sequence .section-title { color: white; }
.sequence-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
}
.seq-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px;
}
.seq-day {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.seq-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.seq-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  padding: 100px 80px;
  text-align: center;
}
.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Footer */
.footer {
  padding: 32px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--grey);
}

/* Dashboard */
.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 80px;
}
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}
.dashboard-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
}
.dashboard-subtitle {
  font-size: 16px;
  color: var(--grey);
  margin-top: 8px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
}
.stat-label {
  font-size: 14px;
  color: var(--grey);
  margin-top: 4px;
}
.stat-change { font-size: 12px; color: var(--teal); font-weight: 600; margin-top: 8px; }

/* Campaign cards */
.campaigns-section { margin-top: 40px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title-sm {
  font-size: 20px;
  font-weight: 600;
}
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.campaign-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.campaign-card-left { display: flex; flex-direction: column; gap: 6px; }
.campaign-name { font-size: 17px; font-weight: 600; }
.campaign-icp { font-size: 14px; color: var(--grey); }
.campaign-meta { display: flex; gap: 24px; font-size: 14px; color: var(--grey); }
.campaign-meta span strong { color: var(--fg); }
.campaign-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status-draft { background: rgba(107,114,128,0.15); color: var(--grey); }
.status-active { background: rgba(0,212,164,0.15); color: #00A080; }
.status-paused { background: rgba(234,179,8,0.15); color: #B8860B; }

/* Table */
.prospects-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}
.prospects-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
}
.prospects-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.prospects-table tr:last-child td { border-bottom: none; }
.prospects-table tr:hover td { background: var(--card-bg); }
.prospect-name { font-weight: 600; }
.prospect-email-link { color: var(--grey); font-size: 13px; }
.email-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.email-pending { background: rgba(234,179,8,0.15); color: #B8860B; }
.email-sent { background: rgba(0,212,164,0.15); color: #00A080; }
.email-failed { background: rgba(239,68,68,0.12); color: #C53030; }

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  background: white;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 13px; color: var(--grey); margin-top: 6px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  display: none;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  border-radius: 18px;
  padding: 36px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--grey);
}

/* Toast */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 999;
}
.toast {
  background: var(--fg);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.toast.success { border-left: 4px solid var(--teal); }
.toast.error { border-left: 4px solid #C53030; }