/* Design tokens from landing page */
:root {
  --bg: #0F172A;
  --surface: #1A2332;
  --surface-hover: #243044;
  --accent: #0D9375;
  --accent-light: #10B981;
  --text: #F0F4F8;
  --text-muted: #94A3B8;
  --border: #1E2D42;
  --positive: #10B981;
  --negative: #F87171;
  --neutral: #94A3B8;
  --twitter: #1DA1F2;
  --reddit: #FF4500;
  --hackernews: #FF6600;
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav { padding: 1.25rem 2rem; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Instrument Serif', serif; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.nav-tagline { font-size: 0.8rem; color: var(--text-muted); }

/* Layout helpers */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.section-headline { font-family: 'Instrument Serif', serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 3.5rem; letter-spacing: -0.02em; }

/* Hero */
.hero { padding: 5rem 2rem 4rem; max-width: 1100px; margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-headline { font-family: 'Instrument Serif', serif; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); margin-bottom: 1.5rem; }
.hero-lede { font-size: 1.1rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 2rem; max-width: 480px; }
.hero-badge { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--accent); border-radius: 2rem; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--accent); color: var(--text); border-radius: 0.5rem; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.hero-cta:hover { background: var(--accent-light); }

/* Mention feed */
.feed-section { padding: 0 2rem 5rem; max-width: 1100px; margin: 0 auto; }
.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.feed-title { font-family: 'Instrument Serif', serif; font-size: 1.75rem; color: var(--text); }
.feed-filters { display: flex; gap: 0.5rem; }
.filter-btn { padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 2rem; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; background: transparent; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(13, 147, 117, 0.1); }

.mentions-grid { display: flex; flex-direction: column; gap: 1rem; }

.mention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.2s, transform 0.2s;
}
.mention-card:hover { border-color: var(--surface-hover); transform: translateY(-2px); }

.source-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.source-icon.twitter { background: rgba(29, 161, 242, 0.15); color: var(--twitter); }
.source-icon.reddit { background: rgba(255, 69, 0, 0.15); color: var(--reddit); }
.source-icon.hackernews { background: rgba(255, 102, 0, 0.15); color: var(--hackernews); }

.mention-body { min-width: 0; }
.mention-author { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.mention-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.6rem; word-break: break-word; }
.mention-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.mention-url { color: var(--text-muted); text-decoration: none; }
.mention-url:hover { color: var(--accent-light); }
.mention-time { opacity: 0.7; }

.sentiment-block { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.sentiment-badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 2rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.sentiment-badge.positive { background: rgba(16, 185, 129, 0.15); color: var(--positive); }
.sentiment-badge.neutral  { background: rgba(148, 163, 184, 0.15); color: var(--neutral); }
.sentiment-badge.negative { background: rgba(248, 113, 113, 0.15); color: var(--negative); }

.score-bar-wrap { width: 60px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 2px; }
.score-bar.positive { background: var(--positive); }
.score-bar.neutral  { background: var(--neutral); }
.score-bar.negative { background: var(--negative); }

/* Loading / empty states */
.feed-loading, .feed-empty { padding: 3rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.feed-error { padding: 2rem; background: rgba(248, 113, 113, 0.1); border: 1px solid var(--negative); border-radius: 0.75rem; color: var(--negative); }

/* Stats row */
.stats-row { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-val { font-family: 'Instrument Serif', serif; font-size: 2rem; color: var(--text); }
.stat-lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }