/* ========================================
   DEALFLOW — AI-Native Private Equity
   ======================================== */

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE5;
  --fg: #111827;
  --fg-muted: #6B7280;
  --fg-dim: #9CA3AF;
  --accent: #1B2B4B;
  --accent-light: #2D4470;
  --gold: #C9A84C;
  --gold-light: #D4BA70;
  --border: #DDD8CF;
  --surface: #FFFFFF;
  --status-active: #22C55E;
  --score-high: #15803D;
  --score-medium: #92400E;
  --signal-positive: #166534;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-active);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Hero === */
.hero {
  padding: 5rem 0 4rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 380px;
  line-height: 1.7;
}

/* Dashboard widget */
.hero-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  font-size: 0.82rem;
}
.dashboard-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 0.75rem;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 1.6fr 0.5fr 1fr 1.1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.pipeline-row:last-child { border-bottom: none; }
.pipeline-header {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  padding-bottom: 0.5rem;
}
.pipeline-deal { font-weight: 500; }
.deal-name { color: var(--fg); font-size: 0.82rem; }
.deal-name.new { color: var(--fg-muted); }
.new-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.deal-score {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'DM Sans', monospace;
}
.deal-score.high { color: var(--score-high); }
.deal-score.medium { color: var(--score-medium); }
.deal-stage {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.deal-stage.active {
  background: var(--accent);
  color: white;
}
.deal-signal {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.deal-signal.positive { color: var(--signal-positive); font-weight: 500; }
.pipeline-new { opacity: 0.6; }
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--fg-dim);
}
.agent-status {
  color: var(--status-active);
  font-weight: 500;
}

/* === Sections === */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--fg);
  margin-bottom: 3rem;
  max-width: 480px;
}

/* === Agents === */
.agents { padding: 5rem 0; background: var(--accent); }
.agents .section-label { color: var(--gold-light); }
.agents .section-headline { color: white; }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.agent-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem;
  transition: background 0.2s;
}
.agent-card:hover {
  background: rgba(255,255,255,0.1);
}
.agent-number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.agent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}
.agent-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.agent-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === How It Works === */
.howitworks { padding: 5rem 0; background: var(--bg); }
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 0;
}
.process-step {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.process-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.process-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.process-content p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.process-arrow {
  flex-shrink: 0;
  color: var(--fg-dim);
  padding: 1.1rem 1.5rem;
}

/* === Manifesto === */
.manifesto {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.manifesto-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}
.manifesto-body p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.manifesto-body p:last-child { margin-bottom: 0; }

/* === Closing === */
.closing { padding: 6rem 0; }
.closing-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.closing-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--fg);
  margin-bottom: 1rem;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 3.5rem;
  max-width: 480px;
}
.closing-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 120px;
  margin: 0 auto;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.footer-note {
  font-size: 0.78rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.footer-heart { color: #EF4444; display: flex; align-items: center; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-dashboard { display: none; }
  .agent-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .process-flow {
    flex-direction: column;
    gap: 1.5rem;
  }
  .process-arrow { display: none; }
  .closing-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .stat-divider { display: none; }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .closing-stats { grid-template-columns: 1fr 1fr; }
}
