:root {
  color-scheme: dark;
  --bg: #07100f;
  --bg-2: #101918;
  --panel: #121c1b;
  --panel-2: #162422;
  --ink: #f5f7f4;
  --muted: #a8b6b2;
  --line: rgba(211, 232, 224, 0.16);
  --accent: #55f1cf;
  --accent-dark: #0fb99d;
  --blue: #3da7f5;
  --green: #55f1cf;
  --warning: #f0cd68;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(85, 241, 207, 0.18), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(61, 167, 245, 0.16), transparent 32%),
    linear-gradient(135deg, #050a0a 0%, #0b1514 48%, #081817 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(245, 247, 244, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
a { color: inherit; text-decoration: none; }
main { width: min(1180px, calc(100vw - 32px)); margin: 32px auto 64px; }
.topbar {
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.86);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.brand img {
  height: 42px;
  width: auto;
  display: block;
}
nav { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
nav a { color: #dce8e4; font-weight: 700; }
button, .button {
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(245, 247, 244, 0.06);
  color: var(--ink);
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 650;
}
.primary { background: var(--accent); border-color: var(--accent); color: #04100f; }
.primary:hover { background: var(--accent-dark); color: white; }
.hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(85, 241, 207, 0.16), rgba(61, 167, 245, 0.10) 42%, rgba(18, 28, 27, 0.82)),
    var(--panel);
}
h1 { font-size: clamp(22px, 2vw, 30px); line-height: 1.16; margin: 0 0 10px; max-width: 920px; }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { margin: 0 0 8px; font-size: 18px; }
p { color: var(--muted); line-height: 1.5; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { color: #d8e2df; font-weight: 650; }
.auth-panel, .panel, .guidelines {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}
.auth-panel {
  width: min(440px, 100%);
  margin: 80px auto;
  background:
    linear-gradient(145deg, rgba(85, 241, 207, 0.10), rgba(61, 167, 245, 0.08)),
    var(--panel);
}
.login-logo {
  height: 82px;
  width: auto;
  display: block;
  margin: 0 0 8px;
}
.wide { max-width: 900px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 650; color: #333; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: rgba(245, 247, 244, 0.06);
  color: var(--ink);
}
select {
  color-scheme: dark;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: var(--bg-2);
  color: var(--ink);
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
}
select option {
  background: #121c1b;
  color: #f5f7f4;
  padding: 8px;
}
label { color: #dfe8e4; }
textarea { resize: vertical; }
.error { color: #a22316; }
.guidelines {
  margin-bottom: 28px;
  border-left: 5px solid var(--green);
  background:
    linear-gradient(90deg, rgba(85, 241, 207, 0.09), rgba(18, 28, 27, 0.92)),
    var(--panel);
}
.guidelines ul, aside ul { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}
.button-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.home-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
}
.home-card .button {
  justify-self: start;
  margin-top: 8px;
}
.card:hover, .row:hover { border-color: var(--accent); }
.list { display: grid; gap: 10px; }
.crm-filters-panel {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(85, 241, 207, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}
.crm-results {
  padding-top: 4px;
}
.row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  justify-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.list-header {
  background: transparent;
  border: 0;
  padding: 0 16px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.list-header:hover { border-color: transparent; }
.prospect-row {
  grid-template-columns: minmax(300px, 1.5fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(90px, 0.45fr) minmax(150px, 0.75fr);
}
.crm-row {
  grid-template-columns: minmax(300px, 1.5fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(150px, 0.75fr);
}
.status {
  display: inline-flex;
  justify-content: flex-start;
  border-radius: 999px;
  background: rgba(85, 241, 207, 0.12);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--accent);
}
.priority {
  display: inline-flex;
  justify-content: flex-start;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}
.priority.high { background: rgba(240, 104, 82, 0.16); color: #ff9b8a; }
.priority.medium { background: rgba(240, 205, 104, 0.15); color: var(--warning); }
.priority.low { background: rgba(168, 182, 178, 0.12); color: var(--muted); }
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 220px auto;
  gap: 14px;
  align-items: end;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1211;
  padding: 18px;
  line-height: 1.55;
}
.hashtags { color: var(--green); font-weight: 650; }
dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
dt { font-weight: 800; }
dd { margin: 0; color: var(--muted); }
.comment {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.comment span { color: var(--muted); margin-left: 8px; font-size: 13px; }
@media (max-width: 760px) {
  main { width: min(100vw - 20px, 1180px); margin-top: 20px; }
  .hero, .split, .two-col { grid-template-columns: 1fr; display: grid; }
  .three-col, .filters { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; padding: 16px; gap: 12px; flex-direction: column; }
}


/* ─── Event & Intel Modules ─────────────────────────── */
.home-grid {
  display: grid; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--accent); }
.card h2 { margin: 0; }
.card p { margin: 0; font-size: 14px; }
.card .button { align-self: flex-start; margin-top: 6px; }
.tab-section { margin-bottom: 28px; }
.tab-section h3 { display: flex; align-items: center; gap: 8px; }
.tab-section h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); margin-bottom: 14px; }
.inline-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.inline-form input, .inline-form textarea { background: var(--bg); }
.inline-form select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; color: var(--ink); font-size: 13px; }
.inline-form .full-width { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
fieldset legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
fieldset label { display: inline-flex; align-items: center; gap: 4px; }
.compact-row { display: grid; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); margin-bottom: 4px; font-size: 13px; }
.compact-row:hover { border-color: var(--accent); }
.compact-row select { background: var(--bg-2); }
.compact-row input { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; color: var(--ink); font-size: 12px; }
.compact-row button { padding: 6px 12px; font-size: 12px; cursor: pointer; }
.service-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 650; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.service-badge.active { background: rgba(85, 241, 207, 0.12); color: var(--accent); border-color: var(--accent); }
.signal-timeline { border-left: 2px solid var(--line); padding-left: 16px; margin-left: 4px; }
.signal-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.signal-item:last-child { border-bottom: none; }
.signal-item .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meta-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.meta-grid dt { color: var(--muted); }
.meta-grid dd { margin: 0; }
.threat-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 650; }
.threat-badge.high { background: rgba(240, 104, 82, 0.16); color: #ff9b8a; }
.threat-badge.medium { background: rgba(240, 205, 104, 0.15); color: var(--warning); }
.threat-badge.low { background: rgba(168, 182, 178, 0.12); color: var(--muted); }
.threat-badge.disruptor { background: rgba(61, 167, 245, 0.15); color: var(--blue); }
/* ─── Competitor Cards (List Page) ───────────────────── */
.competitor-cards { display: grid; gap: 12px; }
.competitor-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 16px 18px;
  transition: border-color 0.15s;
}
.competitor-card:hover { border-color: var(--accent); }
.cc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cc-name { display: flex; align-items: baseline; gap: 8px; }
.cc-shortcode { font-size: 12px; color: var(--muted); }
.cc-body { display: flex; flex-direction: column; gap: 10px; }
.cc-meta { display: flex; gap: 20px; }
.cc-stat { display: flex; flex-direction: column; }
.cc-stat-value { font-size: 18px; font-weight: 700; line-height: 1.2; }
.cc-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cc-tags { display: flex; gap: 6px; }
.tier-tag, .cat-tag {
  font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); text-transform: capitalize;
}
.tier-tag.direct { color: #ff9b8a; border-color: rgba(240,104,82,0.3); }
.tier-tag.disruptor { color: var(--blue); border-color: rgba(61,167,245,0.3); }
.tier-tag.substitute { color: var(--warning); border-color: rgba(240,205,104,0.3); }
.tier-tag.established { color: var(--muted); }
.cc-signal-preview {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 6px 10px; background: var(--bg-2);
  border-radius: 6px; border: 1px solid var(--line);
}
.cc-signal-type { font-weight: 650; color: var(--accent); text-transform: uppercase; font-size: 10px; }
.cc-signal-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Competitor Detail Page ────────────────────────── */
/* Stats bar */
.cd-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
}
.cd-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 0 0; border-right: 1px solid var(--line); }
.cd-stat:last-child { border-right: none; }
.cd-stat-value { font-size: 20px; font-weight: 700; line-height: 1.2; }
.cd-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cd-stat .threat-badge { font-size: 14px; }

/* Two-column layout */
.cd-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 700px) { .cd-grid { grid-template-columns: 1fr; } }

.cd-panel {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  background: var(--panel); margin-bottom: 14px;
}
.cd-panel h3 { font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cd-panel p { font-size: 14px; margin: 0; line-height: 1.5; }
.cd-green { color: var(--accent); }
.cd-red { color: #ff9b8a; }
.cd-empty { color: var(--muted); font-style: italic; }

.cd-meta-table { width: 100%; font-size: 13px; }
.cd-meta-table tr td { padding: 4px 0; }
.cd-meta-table tr td:first-child { color: var(--muted); width: 80px; vertical-align: top; }
.cd-link { color: var(--accent); font-size: 13px; }

/* Services grid */
.cd-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cd-service {
  font-size: 12px; font-weight: 650; padding: 6px 8px; border-radius: 6px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); text-align: center;
}
.cd-service.on { background: rgba(85, 241, 207, 0.12); color: var(--accent); border-color: var(--accent); }

/* Section headers */
.cd-section { margin-bottom: 28px; }
.cd-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cd-section-header h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.cd-section-header h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.cd-hidden { display: none !important; }
.cd-toggle-form { font-size: 12px; padding: 6px 12px; }

/* Timeline for signals */
.cd-timeline { position: relative; padding-left: 22px; }
.cd-timeline::before {
  content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line);
}
.cd-timeline-item { position: relative; padding: 0 0 16px 18px; }
.cd-timeline-item:last-child { padding-bottom: 0; }
.cd-timeline-dot {
  position: absolute; left: -18px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--muted); border: 2px solid var(--panel);
}
.cd-timeline-dot.positive { background: var(--accent); }
.cd-timeline-dot.negative { background: #ff9b8a; }
.cd-timeline-dot.neutral { background: var(--warning); }
.cd-timeline-dot.unknown { background: var(--muted); }
.cd-timeline-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 2px; }
.cd-tl-date { color: var(--muted); }
.cd-tl-type { font-weight: 650; text-transform: uppercase; font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--bg-2); }
.cd-tl-type.positive { color: var(--accent); }
.cd-tl-type.negative { color: #ff9b8a; }
.cd-tl-sentiment { font-size: 11px; color: var(--muted); }
.cd-timeline-body strong { font-size: 14px; }
.cd-timeline-body p { font-size: 13px; margin: 2px 0; color: var(--muted); }

/* Table for projects/techs */
.cd-table { display: flex; flex-direction: column; gap: 6px; }
.cd-table-row {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); font-size: 13px;
}
.cd-table-row:hover { border-color: var(--accent); }
.cd-table-main { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 180px; }
.cd-table-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.cd-table-meta { font-size: 12px; color: var(--muted); width: 100%; }
.cd-tag {
  font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 4px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.cd-confirmed { color: var(--accent); border-color: rgba(85,241,207,0.3); }
.cd-rumored { color: var(--warning); border-color: rgba(240,205,104,0.3); }
.cd-maturity.production { color: var(--accent); }
.cd-maturity.prototype { color: var(--warning); }
.cd-maturity.research { color: var(--blue); }
.cd-claimed { color: var(--muted); }
.cd-client { color: var(--muted); font-size: 13px; }
.cd-verify-badge { font-size: 11px; color: var(--muted); }
.cd-muted { color: var(--muted); }


/* ─── Home guide grid ──────────────────────────────── */
.guide-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
}
.guide-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color 0.15s;
  font-size: 13px;
}
.guide-item:hover {
  border-color: var(--accent);
}
.guide-module {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.guide-question {
  color: var(--muted);
}
/* ─── Card question line ─────────────────────────────── */
.card-question {
  font-size: 14px;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 6px;
  line-height: 1.3;
}

/* ─── Inline form buttons ────────────────────────────── */
.inline-form button, .inline-form .button { justify-self: start; align-self: center; }

