/* FundFlow — Autonomous Philanthropy Intelligence */
/* Typography: Playfair Display (editorial) + DM Sans (body) */
/* Palette: Forest Green #1a3a2a + Parchment #f5f0e8 + Gold #c9a84c */

:root {
  --bg: #f5f0e8;
  --fg: #1a3a2a;
  --accent: #c9a84c;
  --accent-light: rgba(201,168,76,0.15);
  --accent-mid: rgba(201,168,76,0.4);
  --green-deep: #0f2518;
  --green-mid: #1a3a2a;
  --text-light: #4a6b52;
  --text-muted: #7a9a82;
  --border: rgba(26,58,42,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--green-deep);
  color: #f5f0e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(26,58,42,0.6) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  flex: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  color: #f5f0e8;
}

.hero-accent {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(245,240,232,0.72);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-ring-outer {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  animation: rotate-slow 40s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.visual-ring-middle {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: rotate-slow 28s linear infinite reverse;
}

.visual-ring-inner {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 50%;
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.visual-node {
  position: absolute;
  background: rgba(26,58,42,0.8);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.node-1 { top: 10%; left: 55%; }
.node-2 { top: 35%; right: 2%; }
.node-3 { bottom: 30%; right: 5%; }
.node-4 { bottom: 8%; left: 50%; }

.data-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
  height: 1px;
  animation: pulse-line 3s ease-in-out infinite;
}

.dl-1 { width: 120px; top: 18%; left: 30%; transform: rotate(20deg); animation-delay: 0s; }
.dl-2 { width: 100px; top: 42%; right: 18%; transform: rotate(-15deg); animation-delay: 0.8s; }
.dl-3 { width: 90px; bottom: 35%; right: 15%; transform: rotate(10deg); animation-delay: 1.6s; }
.dl-4 { width: 110px; bottom: 15%; left: 35%; transform: rotate(-5deg); animation-delay: 2.4s; }

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.visual-metrics {
  position: absolute;
  right: 0;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}

.metric-bar {
  height: 4px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(201,168,76,0.4));
  border-radius: 2px;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 auto;
  padding-top: 40px;
}

/* ── SECTION COMMON ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 32px;
}

.section-body {
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
}

/* ── AGENTS SECTION ── */
.agents {
  padding: 120px 0;
  background: var(--bg);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.agent-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(26,58,42,0.08);
}

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

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.agent-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.agent-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── COMPLIANCE SECTION ── */
.compliance {
  padding: 120px 0;
  background: var(--green-mid);
  color: #f5f0e8;
}

.compliance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.compliance-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.comp-shield {
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.3));
}

.comp-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
}

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

.dot-green { background: #4ade80; }
.dot-gold { background: var(--accent); }

.comp-status-val {
  margin-left: auto;
  color: rgba(245,240,232,0.5);
  font-size: 0.75rem;
}

.comp-timeline {
  width: 100%;
}

.timeline-label {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}

.tl-segment { border-radius: 3px; }

.timeline-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: rgba(245,240,232,0.3);
}

.compliance-content .section-label { color: var(--accent); }
.compliance-content .section-title { color: #f5f0e8; }
.compliance-content .section-body { color: rgba(245,240,232,0.65); }

.compliance-stat {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,240,232,0.1);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.comp-big-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.comp-big-label {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  max-width: 200px;
  line-height: 1.5;
}

/* ── REPORTING SECTION ── */
.reporting {
  padding: 120px 0;
  background: #faf8f3;
}

.reporting-content {
  margin-top: 48px;
}

.report-stages {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.stage {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.stage-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.stage-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.stage-content p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.stage-arrow { flex-shrink: 0; }

/* Report Preview */
.report-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(26,58,42,0.08);
}

.report-header {
  background: var(--green-mid);
  color: #f5f0e8;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.report-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.report-title {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.7);
  flex: 1;
}

.report-period {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.4);
}

.report-body {
  padding: 28px;
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--border);
}

.report-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.rm-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rm-change {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}

.rm-change.positive { color: #2d9b6a; }
.rm-change.neutral { color: var(--text-muted); }

.report-chart {
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 80px;
}

.rchart-bar {
  flex: 1;
  background: var(--accent-light);
  border-radius: 4px 4px 0 0;
  min-height: 12px;
}

.rchart-bar.active {
  background: var(--accent);
}

.report-insight {
  padding: 20px 28px;
  background: #f9f7f2;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.insight-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--green-deep);
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.report-insight p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.manifesto-quote {
  margin-bottom: 56px;
}

.manifesto-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.4;
  max-width: 760px;
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}

.manifesto-attr {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
  padding-left: 32px;
}

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

.manifesto-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.manifesto-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.principle h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.principle p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── CLOSING ── */
.closing {
  background: var(--green-deep);
  color: #f5f0e8;
  padding: 120px 0;
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 28px;
  color: #f5f0e8;
}

.closing-body {
  font-size: 1rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-vision p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245,240,232,0.5);
  line-height: 1.7;
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-top: 32px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--green-mid);
  padding: 32px 0;
  border-top: 1px solid rgba(245,240,232,0.08);
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.4);
}

.footer-links {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep { color: rgba(245,240,232,0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }

  .hero-visual { display: none; }

  .hero-title { font-size: 2.2rem; }

  .hero-stats { gap: 24px; }

  .section-inner { padding: 0 24px; }

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

  .compliance-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .report-stages {
    flex-direction: column;
    gap: 16px;
  }

  .stage-arrow { transform: rotate(90deg); }

  .manifesto-body { grid-template-columns: 1fr; }

  .manifesto-principles { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}