/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08080c;
  --bg-secondary: #0f0f16;
  --bg-card: #13131b;
  --border: #1e1e2e;
  --fg: #e8e6e0;
  --fg-muted: #7a7a8c;
  --fg-dim: #4a4a5e;
  --accent: #f5a623;
  --accent-dim: #f5a62333;
  --signal-high: #34d399;
  --signal-med: #fbbf24;
  --signal-low: #6b7280;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--fg);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-high);
  letter-spacing: 0.15em;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-high);
  box-shadow: 0 0 6px var(--signal-high);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  padding: 6rem 4rem 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.terminal-frame {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}
.terminal-live {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--signal-high);
  letter-spacing: 0.1em;
}
.terminal-body { padding: 1rem; }
.deal-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.deal-row:last-of-type { border-bottom: none; }
.deal-row.muted { opacity: 0.5; }
.deal-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
  width: 20px;
}
.deal-info { flex: 1; }
.deal-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.deal-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
}
.score-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.score-badge.high { background: #34d39922; color: var(--signal-high); }
.score-badge.med { background: #fbbf2422; color: var(--signal-med); }
.score-badge:not(.high):not(.med) { background: var(--bg-card); color: var(--fg-muted); }
.terminal-footer {
  padding: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* === FEEDS === */
.feeds {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.feeds-header {
  margin-bottom: 3rem;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.6;
}
.feeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feed-card {
  background: var(--bg);
  padding: 2rem;
}
.feed-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.feed-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.feed-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.feed-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* === CAPABILITIES === */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.cap-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.cap-headline {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.cap-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.cap-list { display: flex; flex-direction: column; gap: 0; }
.cap-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cap-item:last-child { border-bottom: none; }
.cap-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  padding-top: 0.15rem;
}
.cap-text h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.cap-text p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === THESIS === */
.thesis {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.thesis-header { margin-bottom: 3rem; }
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.thesis-card {
  background: var(--bg);
  padding: 2rem;
}
.thesis-icon { color: var(--accent); margin-bottom: 1rem; }
.thesis-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.thesis-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 7rem 4rem;
  text-align: center;
}
.closing-statement {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.closing-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* === FOOTER === */
.footer {
  padding: 4rem 4rem 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: var(--fg);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}
.footer-link {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .capabilities { grid-template-columns: 1fr; gap: 3rem; }
  .feeds-grid { grid-template-columns: repeat(2, 1fr); }
  .thesis-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero, .feeds, .capabilities, .thesis, .closing, .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .nav { padding: 1rem 1.5rem; }
  .hero-headline { font-size: 2.2rem; }
  .feeds-grid, .thesis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .hero-stats { flex-wrap: wrap; }
}