:root {
  --bg: #080C14;
  --surface: #0E1520;
  --surface2: #141E2C;
  --border: #1E2D3D;
  --fg: #E8F0F8;
  --fg-muted: #7A8FA6;
  --accent: #00E5A0;
  --accent-dim: rgba(0,229,160,0.12);
  --green: #00D4A0;
  --red: #FF4D6A;
  --yellow: #F5C842;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 60px 60px;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner { flex: 1; }

.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
  color: #fff;
}

.hero-sub {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* Terminal mock */
.hero-visual { flex: 1.1; max-width: 520px; }

.terminal-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,160,0.05);
}

.terminal-bar {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }

.terminal-title { font-size: 12px; color: var(--fg-muted); margin-left: 8px; }

.terminal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }

.t-line { font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.t-tag { color: var(--accent); font-weight: 600; margin-right: 8px; }
.t-summary { color: var(--fg); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; }

/* ── DASHBOARD ── */
.dashboard {
  padding: 80px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.dashboard h2, .process h2, .features h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 16px; color: #fff; }
.section-sub { color: var(--fg-muted); max-width: 520px; margin-bottom: 48px; font-size: 15px; }

.dashboard-mock { display: flex; gap: 16px; max-width: 1000px; }

.dash-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  flex: 1.4;
}

.dash-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dash-row:last-child { border-bottom: none; }
.dash-row.header { color: var(--fg-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

.gain { color: var(--green); }
.loss { color: var(--red); }

.thesis-tag { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.long { background: rgba(0,212,160,0.15); color: var(--green); }
.hold { background: rgba(122,143,166,0.15); color: var(--fg-muted); }

.stats-panel { flex: 0.7; display: flex; flex-direction: column; justify-content: space-between; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; }
.mini-val { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.mini-val.accent { color: var(--accent); }
.mini-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── PROCESS ── */
.process { padding: 80px 60px; max-width: 1200px; margin: 0 auto; }

.steps { display: flex; align-items: flex-start; gap: 0; margin-bottom: 48px; }
.step { flex: 1; padding: 0 32px; }
.step:first-child { padding-left: 0; }
.step-connector { width: 48px; height: 1px; background: var(--border); margin-top: 28px; flex-shrink: 0; }

.step-num { font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.step h3 { font-family: 'Syne', sans-serif; font-size: 18px; margin-bottom: 10px; color: #fff; }
.step p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

.agents-row { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip {
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.2);
  color: var(--accent);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── FEATURES ── */
.features { padding: 80px 60px; background: var(--surface); border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin-top: 40px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.feat-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,229,160,0.15);
}

.feature h3 { font-family: 'Syne', sans-serif; font-size: 16px; margin-bottom: 10px; color: #fff; }
.feature p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

/* ── CLOSING ── */
.closing {
  padding: 100px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.closing h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; color: #fff; }
.closing p { color: var(--fg-muted); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }
.closing-note { font-size: 14px; color: var(--accent); font-weight: 500; }

/* ── FOOTER ── */
footer { padding: 32px 60px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: #fff; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--fg-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--fg-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 32px 40px; gap: 40px; }
  .hero-visual { max-width: 100%; width: 100%; }
  .dashboard { padding: 60px 32px; }
  .dashboard-mock { flex-direction: column; }
  .process { padding: 60px 32px; }
  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .step { padding: 0; }
  .features { padding: 60px 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .closing { padding: 60px 32px; }
  footer { padding: 24px 32px; flex-wrap: wrap; gap: 16px; }
  .dash-row { grid-template-columns: 1fr 1fr; }
}

/* ── RESEARCH HEADER ── */
.research-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark { font-size: 20px; color: var(--accent); }
.brand-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: #fff; }

.search-form { flex: 1; max-width: 480px; }
.search-wrap { display: flex; gap: 0; }

.search-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 8px 14px;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.search-input::placeholder { color: var(--fg-muted); text-transform: none; }
.search-input:focus { border-color: var(--accent); }

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0 6px 6px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-btn:hover { opacity: 0.85; }

/* ── REPORT WRAP ── */
.report-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.report-ticker {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.report-company {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.report-price {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
}

.report-price.muted { color: var(--fg-muted); font-size: 20px; }

.report-change { font-size: 16px; font-weight: 600; margin-top: 4px; }
.report-change.gain { color: var(--green); }
.report-change.loss { color: var(--red); }
.report-change span { font-size: 13px; }

.report-mktcap { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }

/* ── VERDICT BANNER ── */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid;
}

.verdict-bull { background: rgba(0, 212, 160, 0.08); border-color: rgba(0, 212, 160, 0.25); }
.verdict-bear { background: rgba(255, 77, 106, 0.08); border-color: rgba(255, 77, 106, 0.25); }
.verdict-neutral { background: rgba(122, 143, 166, 0.08); border-color: rgba(122, 143, 166, 0.25); }

.verdict-label {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.verdict-bull .verdict-label { color: var(--green); }
.verdict-bear .verdict-label { color: var(--red); }
.verdict-neutral .verdict-label { color: var(--fg-muted); }

.verdict-thesis { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }

/* ── REGEN ROW ── */
.regen-row { display: flex; justify-content: flex-end; margin-bottom: 24px; }

/* ── REPORT BODY ── */
.report-body { display: flex; flex-direction: column; gap: 0; }

.report-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.section-icon { font-size: 12px; }
.hl-icon { color: var(--accent); }
.risk-icon { color: var(--red); }
.val-icon { color: var(--yellow); }

.point-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.point-list li {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.point-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

.risk-list li::before { content: '▲'; color: var(--red); opacity: 0.5; }

.section-body { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

.analyst-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.analyst-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.analyst-note p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
}

.empty-icon { color: var(--fg-muted); margin-bottom: 24px; }

.empty-state h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.empty-state p { color: var(--fg-muted); font-size: 15px; margin-bottom: 32px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* ── COMPETITOR PANEL ── */
.competitor-panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px;
}

.competitor-panel > .comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.comp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.comp-sub { font-size: 13px; color: var(--fg-muted); }

.comp-table { display: flex; flex-direction: column; gap: 0; }

.comp-row-hd {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 120px 120px;
  gap: 12px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.comp-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 120px 120px;
  gap: 12px;
  padding: 14px 12px;
  align-items: center;
  border-bottom: 1px solid rgba(30, 45, 61, 0.5);
  transition: background 0.15s;
}

.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: var(--surface2); border-radius: 6px; }

.comp-ticker {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.comp-name { font-size: 13px; color: var(--fg-muted); }

.comp-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
}

.comp-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-muted);
}

.comp-mktcap { font-size: 12px; color: var(--fg-muted); }

.btn-research {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.25);
  color: var(--accent);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}

.btn-research:hover { background: rgba(0, 229, 160, 0.2); opacity: 0.9; }

/* ── LOADING OVERLAY ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-ticker {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.loading-label { font-size: 14px; color: var(--fg-muted); }