/* ===================================
   SIGNAL — LAYOUT & NAV
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5,8,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,204,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 28px;
}
.proof-stat { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 100px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,229,204,0.05), 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  background: var(--surface2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.amber { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-row {
  display: grid;
  grid-template-columns: 44px 72px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,37,64,0.5);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  animation: slideIn 0.4s ease-out both;
}
.feed-row.fade { opacity: 0.35; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.feed-row:nth-child(1) { animation-delay: 0.1s; }
.feed-row:nth-child(2) { animation-delay: 0.25s; }
.feed-row:nth-child(3) { animation-delay: 0.4s; }
.feed-row:nth-child(4) { animation-delay: 0.55s; }
.feed-row:nth-child(5) { animation-delay: 0.7s; }
.feed-row:nth-child(6) { animation-delay: 0.85s; }
.feed-time { color: var(--text-muted); }
.feed-tag {
  color: var(--text-muted);
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  text-align: center;
}
.feed-text { color: var(--text); }
.feed-priority { font-size: 9px; letter-spacing: 0.08em; padding: 2px 5px; border-radius: 3px; font-weight: 600; }
.feed-priority.high { background: rgba(255,71,87,0.15); color: #ff4757; }
.feed-priority.med { background: rgba(245,158,11,0.12); color: var(--amber); }
.feed-scan {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.scan-text {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--cyan);
  opacity: 0.5;
  display: flex;
  gap: 16px;
  animation: scanPulse 3s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ===================================
   FEED SECTION
   =================================== */
.feed-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.feed-container {
  max-width: 1200px;
  margin: 0 auto;
}
.feed-header {
  text-align: center;
  margin-bottom: 60px;
}
.feed-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.feed-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}
.feed-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.channel {
  background: var(--surface2);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.channel:hover { background: var(--surface); }
.channel-icon {
  color: var(--cyan);
  margin-bottom: 4px;
}
.channel-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-bright);
}
.channel-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

/* ===================================
   FEATURES
   =================================== */
.features {
  padding: 100px 24px;
  background: var(--bg);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.section-label::before, .section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}
.features-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.features-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.feature-num {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.6;
}
.feature-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   MANIFESTO
   =================================== */
.manifesto {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}
.manifesto-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.manifesto-quote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  border-left: 2px solid var(--amber);
  padding-left: 24px;
  font-style: normal;
}
.manifesto-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.manifesto-solution {
  margin-top: 48px;
  padding: 32px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: 12px;
}
.manifesto-solution-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.manifesto-solution-text {
  font-size: 16px;
  color: var(--text-bright);
  line-height: 1.7;
}

/* ===================================
   CLOSING
   =================================== */
.closing {
  padding: 100px 24px 120px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,229,204,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.closing-radar {
  margin: 0 auto 48px;
  width: 200px;
  height: 200px;
}
.radar-svg { width: 100%; height: 100%; }
.pulse {
  animation: radarPulse 2.5s ease-out infinite;
}
@keyframes radarPulse {
  0% { r: 18; opacity: 0.2; }
  100% { r: 90; opacity: 0; }
}
.closing-headline {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}
.closing-tagline {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-block;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-bright);
}
.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================
   DASHBOARD
   =================================== */
.dashboard {
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.dash-actions { display: flex; gap: 10px; align-items: center; }
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.stat-cell {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}
.stat-cell.cyan .stat-value { color: var(--cyan); }
.stat-cell.amber .stat-value { color: var(--amber); }

/* Pipeline log */
.pipeline-log {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 32px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pipeline-log.error { color: var(--red); }
.pipeline-log .ts { color: var(--text-muted); margin-right: 12px; }

/* Section headings */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--cyan);
  border-radius: 2px;
}

/* Brief card */
.brief-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
}
.brief-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.brief-week {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.brief-stats {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.brief-raw {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.finding-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.finding-num {
  width: 28px;
  height: 28px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,204,0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
}
.finding-content { padding-top: 4px; }
.finding-topic {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.finding-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.finding-meta {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Clusters grid */
.clusters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.cluster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.cluster-card:hover { border-color: rgba(0,229,204,0.3); }
.cluster-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.cluster-topic {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
  flex: 1;
}
.cluster-count {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cluster-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.cluster-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sample-item {
  font-size: 11px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 8px;
  font-family: 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-source {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Integration cards */
.integrations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.integration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.integration-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
}
.integration-badge {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.integration-badge.active { background: rgba(0,229,204,0.12); color: var(--cyan); }
.integration-badge.inactive { background: var(--surface2); color: var(--text-muted); }
.integration-form { display: flex; flex-direction: column; gap: 10px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-label {
  font-size: 11px;
  font-family: 'Fira Code', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-bright);
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-input::placeholder { color: var(--text-muted); }
.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on { background: var(--cyan); border-color: var(--cyan); }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px;
  left: 2px;
  transition: transform 0.2s, background 0.2s;
}
.toggle-switch.on::after { transform: translateX(16px); background: var(--bg); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Loading state */
.loading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: loadingPulse 1s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-terminal { display: none; }
  .feed-channels { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feed-channels { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-proof { flex-direction: column; align-items: flex-start; }
  .proof-divider { display: none; }
  .closing-radar { width: 140px; height: 140px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}