:root {
  --bg-primary: #0A1628;
  --bg-secondary: #0F1D32;
  --bg-card: #141F35;
  --bg-card-hover: #1A2840;
  --fg-primary: #F0F4F8;
  --fg-secondary: #8899B0;
  --fg-muted: #5A6E85;
  --accent: #00E87B;
  --accent-dim: rgba(0, 232, 123, 0.12);
  --accent-glow: rgba(0, 232, 123, 0.25);
  --border: rgba(136, 153, 176, 0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.hero-stat {
  position: relative;
  padding: 32px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 232, 123, 0.2);
  border-radius: 16px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-unit {
  font-size: 32px;
  font-weight: 500;
  margin-left: 4px;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-secondary);
}

.proof-icon {
  color: var(--accent);
  font-size: 8px;
}

.hero-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 60px;
  opacity: 0.4;
}

/* ── Problem ── */
.problem {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-label,
.hiw-label,
.vert-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 700px;
}

.problem-body {
  font-size: 18px;
  color: var(--fg-secondary);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.problem-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 232, 123, 0.15);
}

.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text p {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  padding: 80px 60px;
}

.hiw-container h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 600px;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 20px;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--accent), transparent);
  margin-top: 8px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 16px;
  color: var(--fg-secondary);
  max-width: 480px;
  line-height: 1.6;
}

/* ── Verticals ── */
.verticals {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.vert-container h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 600px;
}

.vert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.vert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s;
}

.vert-card:hover {
  border-color: rgba(0, 232, 123, 0.2);
}

.vert-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent);
}

.vert-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vert-card p {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ── Metrics ── */
.metrics {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-container {
  max-width: 1200px;
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 14px;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Manifesto ── */
.manifesto {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-text h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.manifesto-text p {
  font-size: 18px;
  color: var(--fg-secondary);
  line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stat {
    max-width: 200px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-proof {
    flex-direction: column;
    gap: 12px;
  }

  .problem,
  .verticals,
  .manifesto {
    padding: 60px 24px;
  }

  .problem h2,
  .hiw-container h2,
  .vert-container h2 {
    font-size: 28px;
  }

  .problem-cards {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    margin: 0 16px;
    padding: 48px 24px;
    border-radius: 16px;
  }

  .vert-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    padding: 48px 24px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .metric-value {
    font-size: 36px;
  }

  .manifesto-text h2 {
    font-size: 32px;
  }

  .manifesto-text p {
    font-size: 16px;
  }

  .site-footer {
    padding: 32px 24px;
  }
}

/* ── Chat Widget ── */
#cp-chat-launch {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

#cp-chat-launch:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 32px var(--accent-glow);
}

#cp-chat-launch svg { pointer-events: none; }

#cp-chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  height: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

#cp-chat-window.open { display: flex; }

#cp-chat-header {
  padding: 16px 20px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#cp-chat-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #0A1628;
}

#cp-chat-header span {
  font-size: 13px;
  color: #0A1628;
  opacity: 0.7;
}

#cp-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #0A1628;
  opacity: 0.7;
}

#cp-chat-close:hover { opacity: 1; }

#cp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg.agent {
  background: var(--bg-card-hover);
  color: var(--fg-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--accent);
  color: #0A1628;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg.typing {
  font-style: italic;
  color: var(--fg-muted);
  background: none;
}

#cp-chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#cp-chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

#cp-chat-input:focus { border-color: var(--accent); }

#cp-chat-send {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  color: #0A1628;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

#cp-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

#cp-chat-send:hover:not(:disabled) { opacity: 0.85; }

@media (max-width: 480px) {
  #cp-chat-window {
    right: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    height: calc(100vh - 160px);
  }

  #cp-chat-launch { right: 16px; bottom: 20px; }
}

/* ── Responsive helpers ── */

  .stat-number {
    font-size: 56px;
  }

  .stat-unit {
    font-size: 24px;
  }

  .problem h2,
  .hiw-container h2,
  .vert-container h2 {
    font-size: 24px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manifesto-text h2 {
    font-size: 26px;
  }
}