:root {
  --bg: #050607;
  --bg-soft: #101214;
  --panel: rgba(15, 16, 18, 0.9);
  --panel-strong: rgba(10, 11, 12, 0.96);
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f5f7f8;
  --muted: #b4bcc3;
  --accent: #6ae87a;
  --accent-strong: #23b5ff;
  --accent-soft: rgba(92, 233, 147, 0.12);
  --ok: #5ad495;
  --warn: #f0b35e;
  --danger: #ff7361;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(106, 232, 122, 0.08), transparent 24%),
    radial-gradient(circle at 85% 5%, rgba(35, 181, 255, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, #040404 0%, #0b0c0d 100%);
  background-size: auto, auto, 30px 30px, 30px 30px, auto;
}
.site-bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.site-bg-orb-a {
  width: 320px;
  height: 320px;
  top: 60px;
  left: -70px;
  background: rgba(106, 232, 122, 0.09);
}
.site-bg-orb-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 220px;
  background: rgba(35, 181, 255, 0.08);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 9, 0.84);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px 12px;
}
.header-ribbon {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.header-ribbon span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-icon {
  display: block;
  width: 64px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.brand-copy strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .brand {
    gap: 12px;
  }
  .brand-icon {
    width: 52px;
    max-height: 52px;
  }
  .brand-copy strong {
    font-size: 1.35rem;
  }
  .brand-copy small {
    font-size: 0.72rem;
  }
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--accent-soft); color: var(--ink) !important; }
.page-shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 28px 20px 80px; }
.mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 12;
  padding: 10px;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  align-items: stretch;
}
.mobile-nav a {
  flex: 1 1 calc(25% - 8px);
  min-width: 72px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 20px;
}
.hero > div, .stat-card, .filter-form, .auth-card, .form-card, .prose-card, .plan-card, .stat-panel, .tier-card { padding: 24px; }
.hero-card {
  background:
    radial-gradient(circle at top right, rgba(35, 181, 255, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(20, 20, 22, 0.98) 0%, rgba(10, 10, 11, 0.98) 100%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 0.98; margin: 0 0 12px; }
h2 { margin: 0 0 12px; font-size: 1.35rem; }
.lede, .muted, .meta, .report-footer { color: var(--muted); line-height: 1.6; }
.hero-actions, .toolbar-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.trust-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.92) 0%, rgba(10, 10, 11, 0.92) 100%);
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.metric-chip {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 4px;
}
.metric-chip strong { font-size: 1.15rem; }
.metric-chip span { color: var(--muted); font-size: 0.9rem; }
.spotlight-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.pill-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); color: #041018; }
.btn-secondary { background: rgba(255,255,255,0.07); color: var(--ink); }
.area-list, .stack-list { display: grid; gap: 10px; }
.area-pill {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
}
.plan-strip, .page-head { margin-bottom: 20px; }
.filter-layout { margin-bottom: 20px; }
.filter-inline {
  grid-template-columns: 1fr 220px auto;
  align-items: end;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  margin-bottom: 20px;
}
.headline-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 20px;
}
.headline-card, .rapid-list-card { padding: 24px; }
.headline-card {
  background:
    linear-gradient(135deg, rgba(94, 209, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15, 29, 43, 0.96) 0%, rgba(10, 21, 31, 0.96) 100%);
}
.headline-copy {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 58ch;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.trust-badge-verified {
  background: rgba(37, 193, 138, 0.14);
  color: #9cf2ce;
}
.trust-badge-witness {
  background: rgba(94, 209, 255, 0.14);
  color: #aee8ff;
}
.trust-badge-community {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
}
.trust-badge-reviewed {
  background: rgba(94, 209, 255, 0.14);
  color: #aee8ff;
}
.trust-badge-review_pending {
  background: rgba(242, 166, 75, 0.14);
  color: #ffd08a;
}
.headline-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pricing-grid, .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-card, .empty-state { padding: 20px; }
.empty-state {
  background: linear-gradient(180deg, rgba(14, 29, 43, 0.94) 0%, rgba(9, 19, 29, 0.94) 100%);
}
.report-card h2 { font-size: 1.22rem; line-height: 1.2; }
.report-card {
  background: linear-gradient(180deg, rgba(14, 28, 40, 0.94) 0%, rgba(10, 20, 31, 0.94) 100%);
}
.report-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 14px 0 16px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}
.report-image-inline {
  max-height: 210px;
}
.map-card, .map-legend-card { padding: 24px; }
.map-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.map-caption {
  color: var(--muted);
  font-size: 0.85rem;
}
.report-map {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1e2b 0%, #0a1824 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.compact-map { min-height: 300px; }
.report-map .leaflet-control-attribution,
.report-map .leaflet-control-zoom a {
  background: rgba(7, 17, 26, 0.92);
  color: var(--ink);
  border-color: rgba(255,255,255,0.08);
}
.report-map .leaflet-popup-content-wrapper,
.report-map .leaflet-popup-tip {
  background: rgba(8, 19, 29, 0.96);
  color: var(--ink);
}
.report-map .leaflet-container {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.map-picker-wrap {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.map-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}
.report-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.status, .source {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-live { background: rgba(37, 193, 138, 0.14); color: #7cf0c0; }
.status-monitoring { background: rgba(242, 166, 75, 0.14); color: #ffd28f; }
.status-resolved { background: rgba(73, 198, 255, 0.14); color: #94e1ff; }
.source { background: rgba(255,255,255,0.06); color: var(--muted); }
.filter-form, .form-card, .auth-card { display: grid; gap: 10px; }
input, select, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; }
label { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.auth-wrap, .form-wrap { display: flex; justify-content: center; }
.auth-card, .form-card { width: min(720px, 100%); }
.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.dashboard-head-copy {
  max-width: 760px;
}
.dashboard-strip {
  margin-bottom: 20px;
}
.dashboard-headline-layout .headline-card,
.dashboard-headline-layout .rapid-list-card {
  min-height: 100%;
}
.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-panel {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.mini-row {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mini-row-strong strong {
  font-size: 1rem;
}
.mini-row-strong span {
  color: var(--muted);
}
.mini-row:last-child { border-bottom: 0; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.plan-card {
  display: grid;
  gap: 14px;
}
.coming-soon-banner {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.coming-soon-banner strong {
  color: var(--ink);
}
.coming-soon-banner span {
  color: var(--muted);
}
.coming-soon-cta {
  display: grid;
  gap: 10px;
}
.btn-disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none !important;
  filter: saturate(0.75);
}
.insight-card {
  padding: 24px;
}
.chart-list {
  display: grid;
  gap: 16px;
}
.chart-row {
  display: grid;
  gap: 10px;
}
.chart-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
}
.chart-row-head strong {
  color: var(--ink);
}
.chart-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}
.chart-fill-warm {
  background: linear-gradient(135deg, #ffd28f 0%, #f2a64b 100%);
}
.chart-fill-cool {
  background: linear-gradient(135deg, #94e1ff 0%, #5ed1ff 100%);
}
.timeline-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
}
.timeline-bar {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-items: end;
}
.timeline-bar strong {
  font-size: 0.85rem;
  color: var(--muted);
}
.timeline-bar small {
  color: var(--muted);
  font-size: 0.74rem;
}
.timeline-bar-fill {
  display: block;
  width: 100%;
  min-height: 12px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.timeline-bar-fill-cool {
  background: linear-gradient(180deg, #94e1ff 0%, #5ed1ff 100%);
}
.plan-card-accent {
  background: linear-gradient(180deg, rgba(18, 40, 58, 0.98) 0%, rgba(10, 25, 38, 0.98) 100%);
  border-color: rgba(94, 209, 255, 0.18);
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;
}
.plan-price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}
.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.flash-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 0;
}
.flash {
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 10px;
}
.flash-ok { background: rgba(37, 193, 138, 0.14); color: #9cf2ce; }
.flash-warn { background: rgba(242, 166, 75, 0.14); color: #ffd08a; }
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  background: rgba(7, 17, 26, 0.72);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer-inner strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.footer-inner p {
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero, .feed-grid, .dashboard-grid, .pricing-grid, .stats-grid, .check-grid, .map-layout, .trust-strip, .headline-layout { grid-template-columns: 1fr; }
  .dashboard-head, .header-inner, .site-header, .footer-inner { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; }
  .nav { display: none; }
  .mobile-nav { display: flex; gap: 8px; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .btn { width: 100%; }
  .hero-metrics { display: grid; grid-template-columns: 1fr; }
  .header-ribbon { padding-bottom: 12px; }
  .page-shell { padding-bottom: 120px; }
  .map-picker-head, .map-head, .spotlight-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .mobile-nav a {
    flex-basis: calc(33.333% - 8px);
    font-size: 0.78rem;
  }
}
