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

:root {
  --bg: #0c0c14;
  --bg-alt: #111120;
  --surface: #18182a;
  --fg: #f0f0f5;
  --fg-muted: #7a7a99;
  --accent: #e8a838;
  --accent-dim: #c4851c;
  --border: rgba(255,255,255,0.07);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── Typography ── */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 40px;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 48px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-pillar {
  padding: 24px 28px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  min-width: 260px;
}

.pillar-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.pillar-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

/* ── Stats ── */
.stats {
  padding: 48px;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 32px;
}

.stat:first-child { padding-left: 0; }

.stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--fg);
  font-weight: 400;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Capabilities ── */
.capabilities {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.cap-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.cap-card {
  background: var(--bg-alt);
  padding: 40px;
  border: 1px solid var(--border);
}

.cap-icon {
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
}

.cap-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Engines ── */
.engines {
  padding: 96px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.eng-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.eng-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.eng-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eng-fact {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.eng-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  min-width: 36px;
  padding-top: 2px;
}

.eng-fact strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.eng-fact p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.eng-cta-block {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 48px;
}

.eng-cta-inner {
  text-align: center;
}

.eng-cta-text {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 12px;
}

.eng-cta-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── Difference ── */
.difference {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.diff-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.diff-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}

.diff-item:last-child { border-right: none; }

.diff-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.diff-item p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Closing ── */
.closing {
  padding: 120px 48px;
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}

.closing-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.footer-meta span {
  font-size: 11px;
  color: var(--fg-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .topbar { padding: 16px 24px; }
  .hero { padding: 64px 24px 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-pillar { min-width: unset; }
  .stats { padding: 40px 24px; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat-sep { display: none; }
  .stat { padding: 0; flex: 0 0 45%; }
  .capabilities { padding: 64px 24px; }
  .cap-grid { grid-template-columns: 1fr; }
  .engines { padding: 64px 24px; }
  .eng-inner { grid-template-columns: 1fr; gap: 48px; }
  .difference { padding: 64px 24px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .diff-item { border-right: none; border-bottom: 1px solid var(--border); }
  .closing { padding: 80px 24px; }
  .site-footer { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 480px) {
  .diff-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.4rem; }
}
/* ═══════════════════════════════════════════════════════════════
   CLIENT PIPELINE DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.dash-topbar .wordmark { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; }
.dash-topbar .tagline { font-size: 12px; color: var(--fg-muted); }
.dash-nav { display: flex; gap: 24px; align-items: center; }
.dash-nav a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.dash-nav a:hover,
.dash-nav a.active { color: var(--accent); }

/* ── Dashboard Layout ── */
.dash-body {
  padding: 40px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ── Scorecards ── */
.scorecards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.scorecard {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.scorecard-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.scorecard-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--fg);
  font-weight: 400;
  line-height: 1;
}
.scorecard-sub {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* ── Pipeline Table ── */
.panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.panel-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.pipeline-table { width: 100%; border-collapse: collapse; }
.pipeline-table th {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  text-align: left;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pipeline-table td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--fg);
  vertical-align: middle;
}
.pipeline-table tr:last-child td { border-bottom: none; }
.pipeline-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Health dot */
.health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.health-green { background: #22c55e; }
.health-amber { background: #f59e0b; }
.health-red   { background: #ef4444; }
.health-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}
.health-green-badge { background: rgba(34,197,94,0.12); color: #22c55e; }
.health-amber-badge { background: rgba(245,158,11,0.12); color: #f59e0b; }
.health-red-badge   { background: rgba(239,68,68,0.12);  color: #ef4444; }

/* Hub badge */
.hub-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* Milestone date coloring */
.due-today { color: #ef4444; font-weight: 600; }
.due-soon  { color: #f59e0b; }
.due-ok    { color: var(--fg-muted); }

/* Action buttons */
.btn-health {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 3px;
  margin-right: 4px;
  font-family: var(--sans);
  transition: all 0.15s;
}
.btn-health:hover { background: var(--surface); color: var(--fg); }
.btn-health.flipped-green { border-color: rgba(34,197,94,0.4); color: #22c55e; }
.btn-health.flipped-amber { border-color: rgba(245,158,11,0.4); color: #f59e0b; }
.btn-health.flipped-red   { border-color: rgba(239,68,68,0.4); color: #ef4444; }

/* ── Hub Load ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 28px;
}
.hub-card {
  border: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--surface);
}
.hub-name {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.hub-count {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--fg);
  font-weight: 400;
}
.hub-count-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ── Upcoming Milestones ── */
.milestone-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.milestone-row:last-child { border-bottom: none; }
.milestone-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 100px;
}
.milestone-name { font-size: 0.875rem; font-weight: 500; color: var(--fg); flex: 1; }
.milestone-client { font-size: 12px; color: var(--fg-muted); }

/* ── Risk flags ── */
.risk-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(239,68,68,0.04);
}
.risk-card:last-child { border-bottom: none; }
.risk-card.amber-bg { background: rgba(245,158,11,0.04); }
.risk-icon { font-size: 1.2rem; line-height: 1; }

/* ── Empty state ── */
.empty-state {
  padding: 60px 28px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.empty-state-icon { font-size: 2rem; margin-bottom: 12px; display: block; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .scorecards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dash-body { padding: 24px 20px; }
  .scorecards { grid-template-columns: 1fr 1fr; }
  .pipeline-table th, .pipeline-table td { padding: 12px 16px; }
  .dash-topbar { padding: 16px 20px; }
}
@media (max-width: 480px) {
  .scorecards { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}
