:root {
  --bg: #FDFAF6;
  --bg-alt: #F5EFE6;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --accent: #1B6B5A;
  --accent-light: #E8F4F1;
  --accent-warm: #E8A838;
  --border: #E2DDD6;
  --card-bg: #FFFFFF;
}

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

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

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

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  max-width: 140px;
  line-height: 1.4;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* HERO RIGHT CARD */
.hero-card-stack {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(27,107,90,0.15);
  border-radius: 12px;
  padding: 14px 18px;
}

.agent-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-info { flex: 1; }
.agent-name { font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.agent-status { font-size: 0.75rem; color: var(--fg-muted); }

.agent-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.grant-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.grant-icon {
  width: 28px;
  height: 28px;
  background: rgba(232,168,56,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.grant-info { flex: 1; }
.grant-name { font-weight: 600; font-size: 0.875rem; color: var(--fg); margin-bottom: 4px; }
.grant-meta { font-size: 0.75rem; color: var(--fg-muted); }
.match-tag {
  color: var(--accent);
  font-weight: 600;
}

.draft-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: 8px;
}

/* HOW IT WORKS */
.howitworks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.process-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step { flex: 1; padding-right: 0; }

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 280px;
}

.process-arrow {
  display: flex;
  align-items: center;
  padding: 0 24px;
  padding-top: 40px;
}

/* FEATURES */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

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

/* OUTCOMES */
.outcomes {
  background: var(--accent);
  color: white;
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.outcomes .section-label { color: rgba(255,255,255,0.6); }
.outcomes h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

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

.outcome { padding: 0; }

.outcome-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.outcome-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* CLOSING */
.closing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px 80px;
  text-align: center;
}

.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.closing-signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 24px 56px;
    gap: 40px;
  }

  .howitworks { padding: 64px 24px; }

  .process-row {
    flex-direction: column;
    gap: 32px;
  }

  .process-arrow { display: none; }

  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }

  .outcomes-inner { padding: 64px 24px; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }

  .closing { padding: 64px 24px 48px; }

  .navbar { padding: 0 24px; }

  footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 20px; }
}