/* =====================
   TOKENS & RESET
   ===================== */
:root {
  --bg: #09090b;
  --bg-2: #0f0f13;
  --bg-3: #151518;
  --surface: #1a1a20;
  --border: #222228;
  --teal: #00e5c3;
  --teal-dim: rgba(0, 229, 195, 0.12);
  --teal-glow: rgba(0, 229, 195, 0.06);
  --amber: #f5a623;
  --green: #4ade80;
  --muted: #444450;
  --text: #e8e8ec;
  --text-2: #8888a0;
  --text-3: #555560;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =====================
   NAV
   ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* =====================
   HERO
   ===================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 48px 80px;
  min-height: 680px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-metric-row {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
}

.metric-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* =====================
   HERO VISUAL — SIGNAL RINGS
   ===================== */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.signal-rings {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--teal);
  animation: ring-pulse 3s ease-out infinite;
}
.ring-2 {
  width: 100px;
  height: 100px;
  border: 1px solid var(--teal);
  border-opacity: 0.4;
  animation: ring-pulse 3s ease-out infinite 0.6s;
}
.ring-3 {
  width: 150px;
  height: 150px;
  border: 1px solid var(--teal);
  border-opacity: 0.25;
  animation: ring-pulse 3s ease-out infinite 1.2s;
}
.ring-4 {
  width: 200px;
  height: 200px;
  border: 1px solid var(--teal);
  border-opacity: 0.12;
  animation: ring-pulse 3s ease-out infinite 1.8s;
}
.ring-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--teal), 0 0 40px rgba(0,229,195,0.3);
  animation: core-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--teal), 0 0 40px rgba(0,229,195,0.3); }
  50% { box-shadow: 0 0 30px var(--teal), 0 0 60px rgba(0,229,195,0.5); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Particles */
.signal-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.p1 { top: 10%; left: 20%; opacity: 0.7; animation: float 4s ease-in-out infinite; }
.p2 { top: 30%; right: 5%; opacity: 0.5; animation: float 5s ease-in-out infinite 0.8s; }
.p3 { bottom: 20%; left: 5%; opacity: 0.6; animation: float 3.5s ease-in-out infinite 1.2s; }
.p4 { bottom: 10%; right: 25%; opacity: 0.4; animation: float 4.5s ease-in-out infinite 0.5s; }
.p5 { top: 5%; right: 30%; opacity: 0.3; animation: float 5.5s ease-in-out infinite 1.5s; }
.p6 { bottom: 40%; left: 10%; opacity: 0.5; animation: float 4s ease-in-out infinite 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Signal events feed */
.signal-events {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.event-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.event-dot.teal { background: var(--teal); box-shadow: 0 0 8px rgba(0,229,195,0.4); }
.event-dot.amber { background: var(--amber); }
.event-dot.muted { background: var(--muted); }

.event-label {
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
}

.event-time {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* =====================
   SIGNAL DEMO
   ===================== */
.signal-demo {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.demo-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.demo-card:hover {
  border-color: rgba(0,229,195,0.3);
}

.fade-card {
  opacity: 0.6;
}

.card-signal-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-company {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.card-signal-detail {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.action-chip.active {
  background: rgba(0,229,195,0.1);
  color: var(--teal);
  border-color: rgba(0,229,195,0.3);
}

.action-chip.sent {
  background: rgba(74,222,128,0.08);
  color: var(--green);
  border-color: rgba(74,222,128,0.2);
}

.action-chip.done {
  background: rgba(0,229,195,0.06);
  color: var(--text-3);
  border-color: var(--border);
  text-decoration: line-through;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how-it-works {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 64px;
  line-height: 1.1;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.workflow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,229,195,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body { flex: 1; }

.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.step-connector {
  flex-shrink: 0;
  align-self: center;
  padding-top: 28px;
  padding-left: 8px;
  padding-right: 8px;
}

/* =====================
   MANIFESTO
   ===================== */
.manifesto {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
}

.manifesto-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.comparison-block {
  margin-bottom: 20px;
}

.comparison-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.old-label { color: var(--text-3); }
.new-label { color: var(--teal); }

.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-row span:first-child {
  color: var(--text-3);
  font-weight: 400;
}

.wrong { color: var(--muted); text-decoration: line-through; }
.right { color: var(--teal); font-weight: 500; }

.new-block .comparison-row:last-child { border-bottom: none; }

/* =====================
   CLOSER
   ===================== */
.closer {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closer-signal-art {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 48px;
}

.closer-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.c1 { width: 60px; height: 60px; opacity: 0.6; animation: ring-pulse 3s ease-out infinite; }
.c2 { width: 90px; height: 90px; opacity: 0.35; animation: ring-pulse 3s ease-out infinite 1s; }
.c3 { width: 120px; height: 120px; opacity: 0.15; animation: ring-pulse 3s ease-out infinite 2s; }

.closer-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.closer-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
}

.closer-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-visual { order: -1; }
  .signal-rings { width: 140px; height: 140px; }
  .ring-4 { width: 140px; height: 140px; }
  .ring-3 { width: 100px; height: 100px; }
  .demo-cards { grid-template-columns: 1fr; }
  .how-it-works { padding: 60px 24px; }
  .workflow-steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto { padding: 60px 24px; }
  .closer { padding: 80px 24px; }
  .signal-demo { padding: 60px 24px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-metric-row { gap: 24px; }
  .metric-value { font-size: 18px; }
}

/* =====================
   DASHBOARD
   ===================== */
.dashboard { padding: 48px; max-width: 1100px; margin: 0 auto; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.dashboard-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); }
.dashboard-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); }
.stat-value.teal { color: var(--teal); }
.stat-value.amber { color: var(--amber); }
.stat-value.green { color: var(--green); }

/* Section */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); }

/* Repos table */
.repos-table { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 500; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-3); }
.repo-name { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.repo-meta { color: var(--text-2); font-size: 12px; }
.threshold-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 11px; background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,229,195,0.2); }
.threshold-badge.triggered { background: rgba(74,222,128,0.1); color: var(--green); border-color: rgba(74,222,128,0.2); }
.threshold-badge.pending { background: rgba(245,166,35,0.1); color: var(--amber); border-color: rgba(245,166,35,0.2); }

/* Campaign rows */
.campaign-body { max-width: 400px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.status-badge.sent { background: rgba(0,229,195,0.1); color: var(--teal); }
.status-badge.failed { background: rgba(239,68,68,0.1); color: #ef4444; }
.status-badge.pending { background: rgba(245,166,35,0.1); color: var(--amber); }
.status-badge.opened { background: rgba(74,222,128,0.1); color: var(--green); }
.status-badge.replied { background: rgba(74,222,128,0.15); color: #86efac; }

/* Add repo form */
.add-form { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr 120px 180px auto; gap: 12px; align-items: end; }
.form-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); display: block; margin-bottom: 6px; }
.form-input { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 14px; font-family: var(--font-body); width: 100%; }
.form-input:focus { outline: none; border-color: var(--teal); }
.btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; font-family: var(--font-body); cursor: pointer; border: none; transition: opacity 0.15s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--teal); color: #000; }
.btn-danger { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.btn-small { padding: 5px 10px; font-size: 12px; }
.trash-btn { color: var(--text-3); background: none; border: none; cursor: pointer; padding: 4px; font-size: 16px; }
.trash-btn:hover { color: #ef4444; }

/* Navigation button */
.nav-dashboard-btn { font-size: 13px; color: var(--text-2); text-decoration: none; border: 1px solid var(--border); padding: 7px 14px; border-radius: 8px; transition: all 0.15s; }
.nav-dashboard-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-dim); }

/* Empty state */
.empty-state { text-align: center; padding: 48px; color: var(--text-2); font-size: 14px; }

/* Inline form row */
.inline-form { display: flex; gap: 8px; align-items: end; }
.inline-form .form-input { flex: 1; }
