:root {
  --background: #060a12;
  --background-alt: #0f151d;
  --foreground: #e6ebf2;
  --muted: #91a0b3;
  --border: rgba(148, 163, 184, 0.12);
  --surface: rgba(12, 16, 24, 0.72);
  --surface-strong: rgba(14, 19, 28, 0.88);
  --surface-elevated: rgba(18, 24, 35, 0.92);
  --accent: #84a0d4;
  --accent-strong: #6788c7;
  --accent-soft: rgba(132, 160, 212, 0.1);
  --accent-soft-strong: rgba(132, 160, 212, 0.18);
  --cyan-glow: rgba(77, 215, 255, 0.14);
  --amber-glow: rgba(255, 180, 92, 0.1);
  --hero-grid: rgba(71, 85, 105, 0.12);
  --shadow-soft: 0 24px 70px -28px rgba(15, 23, 42, 0.28);
  --shadow-strong: 0 30px 80px -36px rgba(15, 23, 42, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, rgba(77, 215, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 180, 92, 0.06), transparent 28%),
    linear-gradient(180deg, var(--background), var(--background-alt));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-position: 50%;
  background-size: 160px 160px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
  opacity: 0.18;
}

body::after {
  background:
    radial-gradient(circle at top center, transparent 0, transparent 45%, rgba(3, 7, 18, 0.08) 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 28px));
  margin: 18px auto 28px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  left: -5rem;
  top: 4rem;
  width: 18rem;
  height: 18rem;
  background: var(--cyan-glow);
  animation: float-orb-slow 14s ease-in-out infinite;
}

.page-shell::after {
  right: -3rem;
  bottom: 3rem;
  width: 20rem;
  height: 20rem;
  background: var(--amber-glow);
  filter: blur(130px);
  animation: float-orb-fast 10s ease-in-out infinite;
}

.hero,
.search-card,
.filter-card,
.content,
.detail-card,
.empty-state {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
}

.hero::before,
.search-card::before,
.filter-card::before,
.content::before,
.detail-card::before,
.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.hero-brand,
.hero-panel,
.layout {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  width: min(280px, 68%);
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
  color: #fff;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.1;
}

h3 {
  font-size: 1.08rem;
}

.hero-subcopy {
  max-width: 32rem;
  margin: 10px 0 0;
  color: rgba(145, 160, 179, 0.92);
  line-height: 1.6;
  font-size: 0.96rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
}

.stat-card,
.update-item,
.detail-meta,
.tag-button,
.tag,
.collector-run {
  border: 1px solid var(--border);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-elevated);
}

.stat-card span,
.search-card span,
.section-heading p,
.collector-run,
.update-summary,
.detail-meta span,
.empty-state p,
.stat-note,
.hero-subcopy {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.25;
}

.stat-note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

#runCollectorButton,
.ghost-button,
.tag-button {
  border: 0;
  cursor: pointer;
}

#runCollectorButton {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

#runCollectorButton:hover,
.update-item:hover,
.tag-button:hover {
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 420px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.search-card,
.filter-card,
.content,
.detail-card,
.empty-state {
  border-radius: 28px;
  padding: 20px;
}

.search-card input {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.search-card input::placeholder {
  color: rgba(145, 160, 179, 0.9);
}

.filter-card {
  margin-top: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 0;
}

.ghost-button {
  background: transparent;
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.tag-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: rgba(230, 235, 242, 0.92);
}

.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.tag-button {
  background: rgba(255, 255, 255, 0.04);
}

.tag-button.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
}

.tag-button small {
  color: inherit;
  opacity: 0.8;
}

.tag.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.collector-run {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.collector-actions {
  margin-top: 14px;
}

.collector-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.collector-status-line strong {
  color: var(--foreground);
  font-size: 0.95rem;
}

.collector-run p {
  margin: 0;
}

.collector-run p + p {
  margin-top: 8px;
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-item {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 24, 35, 0.88);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.update-item.active {
  border-color: rgba(132, 160, 212, 0.34);
  background:
    radial-gradient(circle at top right, var(--accent-soft-strong), transparent 70%),
    rgba(18, 24, 35, 0.96);
}

.update-topline,
.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(145, 160, 179, 0.9);
}

.update-subject {
  margin-top: 10px;
  font-size: 1.35rem;
  color: #fff;
}

.update-summary {
  margin: 12px 0 16px;
  line-height: 1.7;
}

.detail-card {
  position: sticky;
  top: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--surface-strong);
}

.detail-header p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-meta {
  margin: 20px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-meta div {
  flex: 1;
}

.detail-meta strong,
.collector-run strong {
  display: block;
  margin-top: 8px;
  color: var(--foreground);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.96rem;
}

.body-text {
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #09111b;
  color: #dfe8f4;
  white-space: pre-wrap;
  line-height: 1.7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.empty-state {
  text-align: center;
  padding: 32px 22px;
}

.empty-state.compact {
  padding: 24px;
}

.hidden {
  display: none;
}

@keyframes float-orb-slow {
  0%,
  100% {
    transform: translateZ(0);
  }

  50% {
    transform: translate3d(18px, -16px, 0);
  }
}

@keyframes float-orb-fast {
  0%,
  100% {
    transform: translateZ(0);
  }

  50% {
    transform: translate3d(-16px, 20px, 0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .detail-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    margin: 10px auto 20px;
  }

  .hero {
    padding: 22px;
  }

  .hero-pill-row,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.9rem;
  }

  .update-topline,
  .detail-meta {
    flex-direction: column;
  }
}
