/* ---- Variables ---- */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2EFE8;
  --fg: #1A1A2E;
  --fg-muted: #5A5A72;
  --accent: #F0A500;
  --accent-dark: #C48A00;
  --ink: #2A2A3E;
  --border: #E2DDD5;
  --shadow: rgba(26, 26, 46, 0.08);
  --doc-bg: #FFFFFF;
  --doc-border: #D6CFC4;
  --extracted: #D4EDDA;
  --extracted-text: #155724;
  --working: #FFF3CD;
  --working-text: #856404;
  --pending: #F8F9FA;
  --pending-text: #6C757D;
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */
.site-nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background: var(--bg);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(240, 165, 0, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(240, 165, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---- RFP Document Visual ---- */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.rfp-document {
  width: 100%;
  max-width: 420px;
  background: var(--doc-bg);
  border: 1.5px solid var(--doc-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px var(--shadow), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.doc-header {
  background: var(--ink);
  padding: 14px 18px;
}
.doc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.doc-title-bar {
  width: 140px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.doc-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
}
.doc-status.processing {
  background: rgba(240, 165, 0, 0.15);
  color: var(--accent);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.doc-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.doc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.requirement-row {
  border-radius: var(--radius);
  padding: 10px 12px;
  border: 1px solid transparent;
}
.requirement-row.extracted { background: var(--extracted); border-color: #B8DACC; }
.requirement-row.working { background: var(--working); border-color: #E6D7A0; }
.requirement-row.pending { background: var(--pending); border-color: #E2E2E2; }
.req-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.req-text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 6px;
}
.req-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--extracted-text);
  color: white;
}
.req-badge.working { background: var(--working-text); }
.req-badge.pending { background: var(--pending-text); }
.doc-footer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ---- Stats ---- */
.stats-section {
  background: var(--ink);
  padding: 56px 0;
}
.stats-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.stats-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.stat-card {
  flex: 1;
  padding: 0 40px;
  text-align: center;
}
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { padding-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.stat-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ---- How It Works ---- */
.hiw-section {
  padding: 88px 0;
  background: var(--bg);
}
.hiw-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  max-width: 600px;
}
.hiw-steps {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hiw-step {
  flex: 1;
  padding: 28px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.hiw-step-arrow {
  flex-shrink: 0;
  color: var(--accent);
}
.hiw-cta-note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ---- Features ---- */
.features-section {
  padding: 88px 0;
  background: var(--bg-alt);
}
.features-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 24px var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- Manifesto ---- */
.manifesto-section {
  padding: 96px 0;
  background: var(--ink);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; padding: 0 32px; text-align: center; }
.manifesto-mark { margin-bottom: 40px; display: flex; justify-content: center; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 28px;
}
.manifesto-byline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Closing ---- */
.closing-section { padding: 96px 0; background: var(--bg); }
.closing-inner { max-width: 800px; margin: 0 auto; padding: 0 32px; text-align: center; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.closing-note {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ---- Footer ---- */
.site-footer {
  padding: 32px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  border-left: 1px solid var(--border);
  padding-left: 24px;
  flex: 1;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--fg-muted);
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .stats-row { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .stat-card { padding: 0; text-align: left; }
  .hiw-steps { flex-direction: column; }
  .hiw-step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-tagline, .footer-copy { border-left: none; padding-left: 0; }
  .nav-tagline { display: none; }
}