/* ═══════════════════════════════════════════════════════════════
   ExposureBoard — Regulatory Intelligence Terminal v3
   Aesthetic: Cold-war ops room × OSINT dashboard × enforcement grid
   Fonts: JetBrains Mono + Barlow Condensed
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #04080f;
  --bg1:       #07101e;
  --bg2:       #0b1525;
  --bg3:       #101d30;
  --bg4:       #152238;

  --border:    rgba(60, 130, 200, 0.10);
  --border2:   rgba(60, 130, 200, 0.18);
  --border3:   rgba(60, 130, 200, 0.28);

  --text:      #8baac8;
  --text2:     #b0c8e0;
  --text3:     #cfe0f0;
  --dim:       rgba(100, 140, 180, 0.45);
  --dim2:      rgba(100, 140, 180, 0.28);

  --ice:       #4aaae8;
  --ice-dim:   rgba(74, 170, 232, 0.12);
  --ice-glow:  rgba(74, 170, 232, 0.20);
  --ice-border:rgba(74, 170, 232, 0.30);

  --red:       #e84040;
  --red-dim:   rgba(232, 64, 64, 0.12);
  --red-glow:  rgba(232, 64, 64, 0.20);
  --red-border:rgba(232, 64, 64, 0.30);

  --amber:     #e8a030;
  --amber-dim: rgba(232, 160, 48, 0.12);
  --amber-border: rgba(232, 160, 48, 0.30);

  --green:     #30c88a;
  --green-dim: rgba(48, 200, 138, 0.10);
  --green-border: rgba(48, 200, 138, 0.28);

  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', sans-serif;
}

/* ── Body + Scan Lines ─────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(60,130,200,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* scan line overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

.grain { display: none; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border3); }
* { scrollbar-width: thin; scrollbar-color: var(--bg4) var(--bg); }

/* ── Utility ─────────────────────────────────────────────────── */
.mono  { font-family: var(--mono); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.wrap { position: relative; z-index: 1; }

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 20px;
  background: rgba(4, 8, 15, 0.96);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(16px);
  /* Faint ice glow along bottom edge */
  box-shadow: 0 1px 0 rgba(74,170,232,0.08), 0 4px 24px rgba(4,8,15,0.8);
}

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

.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--ice);
  background: var(--ice-dim);
  border: 1px solid var(--ice-border);
  padding: 2px 7px;
  border-radius: 2px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--text3);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  font-family: var(--mono);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-clock {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  font-family: var(--mono);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text);
  font-family: var(--mono);
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--red); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px var(--red); }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 52px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Radial glow behind hero headline */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -80px;
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(74, 170, 232, 0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Keep eyebrow and headline above the pseudo-element */
.hero-eyebrow, .headline, .subhead-block, .hero-cta, .micro-proof, .subhead-meta {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.eyebrow-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
}

.eyebrow-sep {
  color: var(--border2);
  font-size: 12px;
}

.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.0;
  letter-spacing: 1px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.headline-accent { color: var(--ice); }

.subhead-block {
  max-width: 620px;
  margin-bottom: 24px;
}

.subhead-primary {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text3);
  margin-bottom: 8px;
}

.subhead-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  background: var(--ice-dim);
  color: var(--ice);
  border: 1px solid var(--ice-border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-primary:hover {
  background: rgba(74,170,232,0.20);
  border-color: var(--ice);
  box-shadow: 0 0 16px var(--ice-glow);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-secondary:hover {
  border-color: var(--border3);
  color: var(--text3);
}

/* ── Micro proof strip ───────────────────────────────────────── */
.micro-proof {
  background: rgba(7, 16, 30, 0.8);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(74,170,232,0.25);
  border-radius: 0 2px 2px 0;
  padding: 12px 16px;
  max-width: 600px;
}

.micro-proof-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

#microProofList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#microProofList li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#microProofList li::before {
  content: '›';
  color: var(--ice);
  margin-right: 8px;
}

/* ── KPI Strip ───────────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  /* Top gradient accent line */
  border-top: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* Top accent line across full strip */
.kpi-strip::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74,170,232,0.25) 20%,
    rgba(74,170,232,0.40) 50%,
    rgba(74,170,232,0.25) 80%,
    transparent
  );
}

.kpi-cell {
  padding: 28px 32px 22px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
  text-align: center;
}

.kpi-cell:last-child { border-right: none; }

/* Hover radial glow on KPI cells */
.kpi-cell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-border), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.kpi-cell:hover { background: var(--bg2); }
.kpi-cell:hover::after { opacity: 1; }
.kpi-cell:hover .kpi-value { color: #e0effa; }

.kpi-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--text3);
  letter-spacing: -1px;
  margin-bottom: 6px;
  transition: color 0.25s;
  /* Subtle number text shadow for depth */
  text-shadow: 0 0 30px rgba(74,170,232,0.28);
}

.kpi-value.loading {
  color: var(--bg4);
  text-shadow: none;
  /* pulsing placeholder */
  animation: kpi-skeleton 1.6s ease-in-out infinite;
}

@keyframes kpi-skeleton {
  0%, 100% { color: var(--bg4); }
  50%       { color: var(--bg3); }
}

.kpi-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--dim);
  text-transform: uppercase;
}

.kpi-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 1px;
}

.kpi-badge--up {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── Recent Activity Sub-strip ────────────────────────────────── */
.kpi-strip--recent {
  grid-template-columns: auto 1fr 1fr 1fr;
  background: var(--bg);
}
.kpi-strip--recent::before { display: none; }

.kpi-strip--recent .kpi-cell {
  padding: 12px 24px 10px;
}

.kpi-strip--recent .kpi-cell:hover { background: var(--bg1); }

.kpi-strip-label {
  padding: 10px 20px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--dim);
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.kpi-strip--recent .kpi-value {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-shadow: none;
}

.kpi-strip--recent .kpi-label {
  font-size: 8px;
  letter-spacing: 1.4px;
}

.kpi-feed-active {
  color: var(--green) !important;
  text-shadow: 0 0 16px rgba(74,232,140,0.2) !important;
  font-size: 13px !important;
  letter-spacing: 2.5px;
  padding-top: 4px;
}

/* ── Main dashboard layout ────────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  /* Full-bleed like a real terminal */
  width: 100%;
}

/* ── Section headers ─────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  /* Subtle top line */
  box-shadow: inset 0 1px 0 rgba(74,170,232,0.12);
}

.section-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .live-dot { width: 5px; height: 5px; }

.section-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
}

/* ── Signal Feed ──────────────────────────────────────────────── */
.feed-panel {
  border-right: 1px solid var(--border);
  min-height: 520px;
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-row {
  display: grid;
  grid-template-columns: 46px 36px 1fr 44px;
  align-items: center;
  gap: 0;
  padding: 9px 16px 9px 20px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.14s;
  position: relative;
}

/* Left severity accent bar */
.feed-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  opacity: 0;
  transition: opacity 0.14s;
}

.feed-row:hover::before { opacity: 1; }

/* Severity-specific bar colors */
.feed-row:has(.sev--high)::before,
.feed-row:has(.sev--critical)::before {
  background: var(--red);
  box-shadow: 2px 0 8px rgba(232,64,64,0.3);
}
.feed-row:has(.sev--medium)::before,
.feed-row:has(.sev--med)::before {
  background: var(--amber);
  box-shadow: 2px 0 8px rgba(232,160,48,0.3);
}
.feed-row:has(.sev--low)::before,
.feed-row:has(.sev--watch)::before {
  background: var(--border3);
}

.feed-row:hover {
  background: rgba(74,170,232,0.03);
}
.feed-row:hover .feed-title { color: var(--text3); }

.feed-sev {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 1px;
  border: 1px solid;
  white-space: nowrap;
}

.sev--critical, .sev--high {
  color: var(--red);
  background: var(--red-dim);
  border-color: var(--red-border);
}

.sev--medium, .sev--med {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: var(--amber-border);
}

.sev--low, .sev--watch, .sev--info {
  color: var(--dim);
  background: transparent;
  border-color: var(--border2);
}

.feed-state {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ice);
  padding-left: 8px;
}

.feed-state--mtge { color: var(--amber); }

.feed-content { overflow: hidden; padding: 0 10px; }

.feed-title {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  line-height: 1.4;
}

a.feed-title:hover { color: var(--ice); }

.feed-summary {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.feed-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  text-align: right;
  white-space: nowrap;
}

.feed-empty {
  padding: 32px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim2);
  letter-spacing: 0.5px;
}

/* swapping animation */
.feed-row.is-swapping { opacity: 0; transition: opacity 0.18s; }

/* ── Right panels ──────────────────────────────────────────────── */
.panels-right {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.panel {
  border-bottom: 1px solid var(--border);
}

.panel:last-child { border-bottom: none; }

.panel-body {
  padding: 14px 16px;
}

/* ── State Rankings ─────────────────────────────────────────────── */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.rank-state {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ice);
}

.rank-bar {
  height: 2px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ice), rgba(74,170,232,0.5));
  border-radius: 2px;
  width: 0%; /* Start at 0, JS sets target — CSS transitions it */
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* First-ranked state gets an ice glow */
.rank-row:first-child .rank-bar-fill {
  box-shadow: 0 0 6px rgba(74,170,232,0.4);
}
.rank-row:first-child .rank-state {
  color: #7cc4f0;
}

.rank-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  text-align: right;
}

/* ── Category bars ──────────────────────────────────────────────── */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-row {}

.cat-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cat-name {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.cat-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
}

.cat-bar {
  height: 2px;
  background: var(--bg4);
  border-radius: 1px;
}

.cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), rgba(232,160,48,0.5));
  border-radius: 1px;
  width: 0%;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Jurisdiction pressure ─────────────────────────────────────── */
.pressure-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pressure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red-border);
  border-radius: 0 1px 1px 0;
  transition: border-left-color 0.2s, background 0.2s;
}

.pressure-row:hover {
  background: rgba(232,64,64,0.06);
  border-left-color: var(--red);
}

.pressure-state {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  letter-spacing: 1px;
}

.pressure-trend {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.5px;
}

/* ── Subscribe section ─────────────────────────────────────────── */
.subscribe-section {
  padding: 48px 24px;
  max-width: 640px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.subscribe-section .section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.subscribe-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.subscribe-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* brief gate */
.unlock-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  display: block;
  transition: color 0.15s;
}
.unlock-btn:hover { color: var(--text2); }
.unlock-arrow { margin-left: 6px; }

.brief-gate {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-top: 1px solid var(--ice-border);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 20px;
}

.brief-heading {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.brief-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brief-list li {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.brief-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ice);
  font-size: 11px;
}

/* subscribe form */
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.sub-form input[type="email"] {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 14px;
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text3);
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
  box-sizing: border-box;
}

.sub-form input[type="email"]:focus {
  border-color: var(--ice-border);
  box-shadow: 0 0 0 3px var(--ice-glow);
}

.sub-form input::placeholder { color: var(--dim2); }

.sub-form button[type="submit"],
button[type="submit"] {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 20px;
  background: var(--ice-dim);
  color: var(--ice);
  border: 1px solid var(--ice-border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
}
.sub-form button[type="submit"]:hover,
button[type="submit"]:hover {
  background: rgba(74,170,232,0.20);
  border-color: var(--ice);
  box-shadow: 0 0 16px var(--ice-glow);
}
.sub-form button[type="submit"]:disabled,
button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trust-line {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim2);
  margin-top: 8px;
}

/* ── Push section ──────────────────────────────────────────────── */
.push-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.push-enable-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.push-enable-btn:hover { border-color: var(--border3); color: var(--text3); }
.push-enable-btn.push-enabled { color: var(--green); border-color: var(--green-border); }

.push-status-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
}

/* ── Messages ─────────────────────────────────────────────────── */
.message {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: 2px;
  margin-top: 10px;
  display: none;
}
.message.success { display: block; color: var(--green); background: var(--green-dim); border: 1px solid var(--green-border); }
.message.error   { display: block; color: var(--red);   background: var(--red-dim);   border: 1px solid var(--red-border);   }
.message.info    { display: block; color: var(--text);  background: var(--bg1);       border: 1px solid var(--border2);      }

/* ── Methodology ─────────────────────────────────────────────── */
.method-section {
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.method-block {
  padding: 18px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

/* Numbered accent line at top */
.method-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ice-border), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.method-block:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.method-block:hover::before { opacity: 1; }

.method-icon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ice);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.method-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.method-desc {
  font-family: var(--body);
  font-size: 12px;
  color: var(--text);
  line-height: 1.65;
}

.section-label-lg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.section-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Intake form ──────────────────────────────────────────────── */
.intake-section {
  padding: 48px 24px;
  max-width: 680px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.intake-header {
  margin-bottom: 28px;
}

.intake-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intake-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}

.intake-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intake-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intake-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
}

.field-label-text { color: var(--dim); }
.req-mark { color: var(--red); }
.field-optional { color: var(--dim2); font-size: 8px; }
.intake-char-count { margin-left: auto; font-size: 9px; color: var(--dim2); }
.intake-char-count.near-limit { color: var(--amber); }

.intake-field select,
.intake-field input[type="email"],
.intake-field textarea {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text2);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
}

.intake-field select option { background: var(--bg2); color: var(--text2); }

.intake-field select:focus,
.intake-field input:focus,
.intake-field textarea:focus {
  border-color: var(--ice-border);
  box-shadow: 0 0 0 3px var(--ice-glow);
}

.intake-field textarea { resize: vertical; min-height: 100px; }

.intake-field.field-error select,
.intake-field.field-error input,
.intake-field.field-error textarea {
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.field-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.intake-actions { margin-top: 4px; }

.intake-submit-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  background: var(--bg2);
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Trailing arrow indicator */
.intake-submit-btn::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.intake-submit-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.intake-submit-btn:hover {
  background: var(--bg3);
  border-color: var(--border3);
  color: var(--text3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.intake-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.disclaimer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  margin-top: 20px;
  line-height: 1.5;
}

/* ── Push modal ────────────────────────────────────────────────── */
.push-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,8,15,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
}

.push-modal-card {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.push-modal-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
}

.push-prefs-form { display: flex; flex-direction: column; gap: 18px; }

.push-pref-group { display: flex; flex-direction: column; gap: 6px; }

.push-pref-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.push-pref-half {}

.push-select-multi,
.push-select-single,
.push-input-num,
.push-input-time {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text2);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.push-select-multi option { background: var(--bg2); }

.push-select-multi:focus,
.push-select-single:focus,
.push-input-num:focus,
.push-input-time:focus {
  border-color: var(--ice-border);
}

.push-pref-checkbox-row { }
.push-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.push-checkbox-label input { accent-color: var(--ice); }

.push-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.push-modal-actions button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
}

.push-modal-actions button:first-child {
  background: var(--ice-dim);
  color: var(--ice);
  border: 1px solid var(--ice-border);
}
.push-modal-actions button:first-child:hover {
  background: rgba(74,170,232,0.22);
  border-color: var(--ice);
}

.btn-reject {
  background: transparent !important;
  color: var(--dim) !important;
  border: 1px solid var(--border2) !important;
}
.btn-reject:hover { color: var(--red) !important; border-color: var(--red-border) !important; }

/* ── Ticker ─────────────────────────────────────────────────────── */
.intel-ticker {
  overflow: hidden;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  position: relative;
}

/* Edge fade masks */
.intel-ticker::before,
.intel-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.intel-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg1), transparent);
}
.intel-ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg1), transparent);
}

.intel-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 52s linear infinite;
}

.intel-ticker:hover .intel-ticker__track {
  animation-play-state: paused;
}

/* Base item */
.t-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--text2);
  text-transform: uppercase;
  padding: 0 0;
}

/* Severity accents */
.t-item--ice   { color: var(--ice);   opacity: 0.85; }
.t-item--amber { color: var(--amber); opacity: 0.85; }
.t-item--red   { color: var(--red);   opacity: 0.80; }

/* Separator */
.t-sep {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--border3);
  padding: 0 22px;
  user-select: none;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg1);
  padding: 20px 24px;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim2);
  letter-spacing: 0.4px;
  line-height: 1.6;
}

.site-footer-link {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-link:hover { color: var(--ice); }

.site-footer-mono { color: var(--dim); }

.site-footer-verify-link {
  color: var(--dim);
  text-decoration: none;
}
.site-footer-verify-link:hover { color: var(--amber); }

/* ── Rotator ─────────────────────────────────────────────────── */
.rotator { transition: opacity 0.4s; }
.rotator.is-fading { opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .feed-panel { border-right: none; }
  .panels-right { border-top: 1px solid var(--border); }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .kpi-strip--recent { grid-template-columns: auto 1fr 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 14px; }
  .topbar-clock { display: none; }
  .hero { padding: 32px 16px 28px; }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .kpi-strip--recent { grid-template-columns: 1fr 1fr 1fr; }
  .kpi-strip-label { display: none; }
  .kpi-value { font-size: 28px; }
  .intake-row { grid-template-columns: 1fr; }
  .subscribe-section,
  .intake-section,
  .method-section { padding: 32px 16px; }
  .feed-row { grid-template-columns: 40px 30px 1fr 40px; padding: 8px 12px; }
}

/* ── Cursor blink ────────────────────────────────────────────── */
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ice);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Fade-in on load ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 0.5s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Number tick animation ───────────────────────────────────── */
.kpi-value { transition: color 0.3s; }
