/* === COLORS === */
:root {
  --navy:    #0a1628;
  --navy-mid: #1e3a5f;
  --navy-light: #2d5a87;
  --gold:    #c9a84c;
  --gold-dim: #a07c2e;
  --cream:   #f4ede4;
  --cream-dark: #e8dccf;
  --white:   #ffffff;
  --text:    #1a1a2e;
  --text-muted: #6b7280;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.wordmark-ipeh { color: var(--cream); }
.wordmark-cap  { color: var(--gold); }
.wordmark-os   { color: var(--text-muted); margin-left: 0.3em; font-weight: 300; }

.header-nav { display: flex; align-items: center; gap: 1rem; }

.nav-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* === HERO === */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-headline {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
}

.hero-sub {
  color: rgba(244,237,228,0.7);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(244,237,228,0.5);
  letter-spacing: 0.05em;
}

.hero-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,0.2);
}

/* === PIPELINE WIDGET === */
.pipeline-widget {
  background: rgba(244,237,228,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.widget-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.pipeline-stage:last-child { border-bottom: none; }

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stage-dot.applied { background: var(--navy-light); }
.stage-dot.docs    { background: #4a9fd4; }
.stage-dot.review  { background: var(--gold-dim); }
.stage-dot.approved { background: var(--gold); }
.stage-dot.funded  { background: #0d7377; }

.stage-name {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(244,237,228,0.7);
}

.stage-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
}

/* === DASHBOARD PREVIEW === */
.dashboard-preview {
  background: var(--cream-dark);
  padding: 5rem 2rem;
}

.dp-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.dp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.dp-headline {
  color: var(--navy);
  font-weight: 400;
}

.dp-screen {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,22,40,0.25), 0 4px 20px rgba(10,22,40,0.1);
}

.screen-chrome {
  background: var(--navy);
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chrome-dots { display: flex; gap: 0.4rem; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.screen-content {
  background: var(--navy-mid);
  padding: 1.5rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201,168,76,0.1);
}

.metric-card.highlight {
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.06);
}

.metric-label {
  font-size: 0.65rem;
  color: rgba(244,237,228,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
}

.metric-trend {
  font-size: 0.65rem;
  margin-top: 0.3rem;
}
.metric-trend.up     { color: #4ade80; }
.metric-trend.neutral { color: rgba(244,237,228,0.4); }

.pipeline-bar-chart { }
.chart-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(244,237,228,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.bar-container { display: flex; flex-direction: column; gap: 0.35rem; }

.bar {
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.8);
  transition: width 1s ease;
}

/* === FEATURES === */
.features {
  background: var(--cream);
  padding: 5rem 2rem;
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.features-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.features-headline {
  color: var(--navy);
  font-weight: 400;
  max-width: 480px;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 2px 12px rgba(10,22,40,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10,22,40,0.1);
}

.feature-icon {
  margin-bottom: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--navy);
  padding: 5rem 2rem;
}

.manifesto-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.manifesto-mark {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mark-rule {
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.25);
}

.mark-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.5;
  padding: 0 2rem;
}

.manifesto-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.manifesto-pillar { }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.pillar-text {
  font-size: 0.85rem;
  color: rgba(244,237,228,0.55);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  background: var(--cream-dark);
  padding: 5rem 2rem;
}

.closing-bg {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  color: var(--navy);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.closing-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.closing-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy-mid);
  font-style: italic;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  padding: 2.5rem 2rem;
}

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

.footer-brand { }

.footer-wordmark {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(244,237,228,0.35);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: rgba(244,237,228,0.4);
  font-family: var(--font-mono);
}

.footer-legal {
  font-size: 0.7rem;
  color: rgba(244,237,228,0.25);
  font-family: var(--font-mono);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 2rem 3rem;
  }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-three { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero-stats-row { flex-wrap: wrap; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}