:root {
  --bg: #0b0f1a;
  --surface: #111827;
  --surface-alt: #162032;
  --border: rgba(255,255,255,0.07);
  --fg: #e8edf5;
  --fg-muted: #8899aa;
  --accent: #4f8ef7;
  --accent-glow: rgba(79,142,247,0.15);
  --teal: #2dd4bf;
  --warm: #f59e0b;
  --green: #22c55e;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status-text {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Hero */
.hero {
  padding: 80px 32px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.65;
}

/* Agent monitor widget */
.agent-monitor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.agent-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.agent-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.agent-feed {
  padding: 8px 0;
  max-height: 340px;
  overflow-y: auto;
}
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: rgba(255,255,255,0.02); }
.feed-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(79,142,247,0.15);
  color: var(--accent);
  white-space: nowrap;
  margin-top: 1px;
}
.feed-tag-cool { background: rgba(245,158,11,0.12); color: var(--warm); }
.feed-tag-research { background: rgba(45,212,191,0.12); color: var(--teal); }
.feed-tag-done { background: rgba(34,197,94,0.1); color: var(--green); }
.feed-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.feed-time {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.5;
  white-space: nowrap;
}

/* Live feed section */
.livefeed-section {
  padding: 64px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17,24,39,0.5) 50%, var(--bg) 100%);
}
.livefeed-inner { max-width: 1200px; margin: 0 auto; }
.lf-header { margin-bottom: 48px; }
.lf-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.lf-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.65;
}
.lf-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.lf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.lf-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.lf-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.source-chip {
  font-size: 12px;
  padding: 5px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
}
.lf-criteria { display: flex; flex-direction: column; gap: 12px; }
.criteria-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
}
.criteria-bar {
  flex: 1;
  height: 4px;
  background: var(--surface-alt);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.criteria-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w);
  background: var(--accent);
  border-radius: 2px;
}
.lf-stats { display: flex; flex-direction: column; gap: 20px; }
.lf-stat { display: flex; flex-direction: column; gap: 2px; }
.lf-stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
}
.lf-stat-label { font-size: 12px; color: var(--fg-muted); }

/* Capabilities */
.capabilities {
  padding: 80px 32px;
}
.cap-inner { max-width: 1200px; margin: 0 auto; }
.cap-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  line-height: 1.2;
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cap-item { display: flex; flex-direction: column; gap: 12px; }
.cap-num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 4px;
}
.cap-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
}
.cap-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Philosophy */
.philosophy {
  padding: 80px 32px;
  background: var(--surface);
}
.phil-inner { max-width: 1200px; margin: 0 auto; }
.phil-quote-block { margin-bottom: 56px; }
.phil-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  max-width: 800px;
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}
.phil-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.ps-item { display: flex; flex-direction: column; gap: 6px; }
.ps-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.ps-label { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }

/* Closing */
.closing {
  padding: 100px 32px;
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .lf-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .phil-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero { padding: 48px 20px 40px; }
  .closing { padding: 64px 20px; }
}