/* === TOKENS === */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #6b6760;
  --fg-subtle: #9c9890;
  --accent: #b8956a;
  --accent-light: #f0e8dc;
  --border: #e8e4dc;
  --alert: #c0392b;
  --alert-bg: #fdf2f1;
  --up: #2d7d5e;
  --up-bg: #edf7f3;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === NAV === */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-logo-mark { width: 18px; height: 18px; background: var(--fg); border-radius: 3px; }
.nav-tagline { font-size: 0.8rem; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* === HERO === */
.hero { max-width: 1200px; margin: 0 auto; padding: 80px 32px 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.hero-headline { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 28px; color: var(--fg); }
.hero-ledge { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 16px; }
.hero-ledge:last-of-type { margin-bottom: 0; }

/* === DASHBOARD FRAME === */
.dash-frame { background: #16161a; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04); font-size: 0.8rem; }
.dash-bar { background: #1e1e24; padding: 10px 16px; display: flex; align-items: center; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dash-title { margin-left: auto; margin-right: auto; font-size: 0.7rem; color: rgba(255,255,255,0.4); font-family: var(--font-sans); letter-spacing: 0.05em; }
.dash-body { padding: 20px; }
.dash-metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.dash-metric { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; }
.dash-metric-label { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dash-metric-value { display: block; font-size: 1.1rem; font-weight: 600; color: #fff; font-family: var(--font-serif); }
.dash-metric-value.warn { color: #e8735a; }
.dash-metric-delta { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.dash-metric-delta.up { color: #4ecb8f; }
.dash-chart-label { font-size: 0.65rem; color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.dash-chart { margin-bottom: 16px; }
.dash-bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.dbc { flex: 1; background: rgba(184,149,106,0.35); border-radius: 3px 3px 0 0; position: relative; min-height: 20px; }
.dbc span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: rgba(255,255,255,0.35); white-space: nowrap; }
.dbc:nth-child(4) { background: rgba(184,149,106,0.8); }
.dbc:nth-child(6) { background: rgba(184,149,106,0.8); }
.dash-alert { background: rgba(224,57,42,0.12); border: 1px solid rgba(224,57,42,0.25); border-radius: 6px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 0.65rem; color: #e8735a; }
.alert-dot { width: 6px; height: 6px; border-radius: 50%; background: #e8735a; flex-shrink: 0; }

/* === MANIFESTO === */
.manifesto { background: var(--fg); color: #fff; padding: 64px 32px; }
.manifesto-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: center; }
.manifesto-stat { text-align: center; padding: 0 32px; }
.manifesto-num { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 12px; }
.manifesto-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.manifesto-divider { width: 1px; height: 64px; background: rgba(255,255,255,0.1); }

/* === AGENTS === */
.agents { max-width: 1200px; margin: 0 auto; padding: 96px 32px; }
.agents-header { margin-bottom: 56px; }
.section-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.agents-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.agent-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: box-shadow 0.2s ease; }
.agent-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.agent-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 20px rgba(184,149,106,0.12); }
.agent-icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.agent-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.agent-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 20px; }
.agent-features li { font-size: 0.82rem; color: var(--fg-muted); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.agent-features li:last-child { border-bottom: none; }
.agent-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* === DASHBOARD SECTION === */
.dashboard-section { background: #f4f0e9; padding: 96px 32px; }
.dashboard-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.dashboard-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; }
.dashboard-desc { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 28px; }
.dashboard-integrations { display: flex; flex-direction: column; gap: 10px; }
.dashboard-integrations li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--fg-muted); }
.int-check { width: 18px; height: 18px; background: var(--accent); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.int-check::after { content: '✓'; color: #fff; font-size: 0.65rem; font-weight: 700; }
.dashboard-vis { display: flex; flex-direction: column; gap: 14px; }
.vis-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.vis-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vis-card-title { font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 600; }
.vis-score { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.vis-score-max { font-size: 0.7rem; color: var(--fg-subtle); font-weight: 400; }
.vis-score.warn { color: #c0392b; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.vis-date { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--fg); }
.vis-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.vis-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #d4aa7a); border-radius: 2px; }
.vis-detail { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.4; }
.vis-action { margin-top: 10px; font-size: 0.78rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vis-action-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* === CLOSING === */
.closing { padding: 120px 32px; background: var(--fg); color: #fff; }
.closing-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.closing-headline { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; color: #fff; }
.closing-sub { font-size: 1.05rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 48px; }
.closing-vision { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.closing-vision p { font-size: 0.88rem; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 480px; margin: 0 auto; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1rem; font-weight: 600; }
.footer-logo-mark { width: 16px; height: 16px; background: var(--fg); border-radius: 3px; }
.footer-desc { font-size: 0.82rem; color: var(--fg-subtle); }
.footer-links { display: flex; gap: 24px; font-size: 0.82rem; color: var(--fg-subtle); }
.footer-links a:hover { color: var(--fg); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 32px; }
  .manifesto-divider { display: none; }
  .manifesto-stat { padding: 0; text-align: left; }
  .agents-grid { grid-template-columns: 1fr; }
  .dashboard-inner { grid-template-columns: 1fr; }
  .dash-metric-row { grid-template-columns: 1fr; }
  .nav-tagline { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 64px; }
  .agents { padding: 64px 20px; }
  .dashboard-section { padding: 64px 20px; }
  .closing { padding: 80px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}