:root {
  --bg-0: #020409;
  --bg-1: #050911;
  --panel: rgba(7, 12, 24, 0.82);
  --panel-strong: rgba(4, 9, 20, 0.94);
  --text: #e8f5ff;
  --muted: #87a4bf;
  --line: rgba(110, 182, 255, 0.3);
  --cyan: #27d3ff;
  --blue: #4a7dff;
  --lime: #70ffa6;
  --pink: #ff5fbf;
  --violet: #8e6dff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(1200px 560px at -10% -20%, rgba(39, 211, 255, 0.22), transparent 60%),
    radial-gradient(920px 520px at 110% -5%, rgba(255, 95, 191, 0.18), transparent 62%),
    linear-gradient(160deg, var(--bg-0) 0%, #071022 45%, var(--bg-1) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
  opacity: 0.4;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(850px 420px at 8% -15%, rgba(39, 211, 255, 0.18), transparent 62%),
    radial-gradient(760px 390px at 88% 0%, rgba(142, 109, 255, 0.18), transparent 65%);
}

.topbar,
main,
footer {
  position: relative;
  z-index: 2;
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.topbar {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(7, 14, 31, 0.95), rgba(4, 8, 18, 0.85));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow:
    0 0 0 1px rgba(39, 211, 255, 0.14) inset,
    0 0 26px rgba(39, 211, 255, 0.15);
  animation: rise 460ms ease both;
}

.eyebrow {
  margin: 0;
  color: var(--lime);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.brand-wrap h1 {
  margin: 0.24rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(39, 211, 255, 0.28);
}

.brand-wrap h1::after {
  content: " _";
  color: var(--cyan);
  animation: blink 1s steps(1, end) infinite;
}

.meta-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.chip {
  border: 1px solid rgba(110, 182, 255, 0.42);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  color: #b7d8ff;
  background: rgba(15, 26, 48, 0.72);
}

main {
  margin-top: 1rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem;
  background:
    linear-gradient(130deg, rgba(6, 18, 38, 0.95), rgba(18, 11, 46, 0.82));
  box-shadow:
    0 0 0 1px rgba(255, 95, 191, 0.16) inset,
    0 0 30px rgba(74, 125, 255, 0.16);
  animation: rise 540ms ease both;
}

.hero-kicker {
  margin: 0;
  color: var(--pink);
  letter-spacing: 0.14em;
  font-size: 0.73rem;
}

.hero h2 {
  margin: 0.48rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.32rem, 3.8vw, 2.3rem);
  line-height: 1.12;
  max-width: 840px;
}

.hero-copy {
  margin: 0.72rem 0 0;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.52;
}

.kpi-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.kpi-card {
  border: 1px solid rgba(110, 182, 255, 0.28);
  border-radius: 13px;
  background: rgba(5, 12, 26, 0.78);
  padding: 0.82rem 0.88rem;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.kpi-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1.28rem;
  color: #e8fdff;
}

.panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(6, 13, 26, 0.96), rgba(3, 9, 19, 0.95));
  padding: 1rem;
  box-shadow: 0 0 0 1px rgba(39, 211, 255, 0.1) inset;
}

.panel-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  color: #d9eeff;
}

.panel-head p {
  margin: 0.34rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.protocol-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.protocol-card {
  border: 1px solid rgba(110, 182, 255, 0.26);
  border-radius: 14px;
  background: rgba(6, 13, 28, 0.82);
  padding: 0.84rem;
  display: grid;
  gap: 0.64rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.protocol-card:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 182, 255, 0.48);
  box-shadow: 0 8px 22px rgba(39, 211, 255, 0.12);
}

.protocol-card:nth-child(1) .tag.type,
.protocol-card:nth-child(2) .tag.type {
  border-color: rgba(39, 211, 255, 0.55);
  color: #9ff1ff;
}

.protocol-card:nth-child(3) .tag.type,
.protocol-card:nth-child(4) .tag.type {
  border-color: rgba(255, 95, 191, 0.55);
  color: #ffc5e7;
}

.protocol-card:nth-child(5) .tag.type,
.protocol-card:nth-child(6) .tag.type {
  border-color: rgba(112, 255, 166, 0.55);
  color: #ccffe0;
}

.protocol-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.protocol-head h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
}

.protocol-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.protocol-actions {
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(110, 182, 255, 0.38);
  border-radius: 10px;
  background: rgba(14, 29, 52, 0.56);
  color: #dff6ff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.46rem 0.68rem;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 182, 255, 0.68);
  box-shadow: 0 0 14px rgba(39, 211, 255, 0.2);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.primary {
  background: linear-gradient(120deg, rgba(39, 211, 255, 0.28), rgba(142, 109, 255, 0.25));
  border-color: rgba(39, 211, 255, 0.72);
}

.btn.ghost {
  background: rgba(14, 28, 48, 0.45);
}

.filters {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.search-wrap {
  display: grid;
  gap: 0.38rem;
}

.search-wrap span {
  color: var(--muted);
  font-size: 0.8rem;
}

.search-wrap input {
  width: 100%;
  border: 1px solid rgba(110, 182, 255, 0.36);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  font-size: 0.84rem;
  color: #e9fbff;
  background: rgba(9, 19, 37, 0.88);
}

.search-wrap input:focus {
  outline: none;
  border-color: rgba(39, 211, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(39, 211, 255, 0.14);
}

.protocol-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.tab {
  border: 1px solid rgba(110, 182, 255, 0.36);
  border-radius: 999px;
  background: rgba(11, 24, 43, 0.7);
  color: #d8eeff;
  font: inherit;
  font-size: 0.79rem;
  padding: 0.4rem 0.72rem;
  cursor: pointer;
}

.tab.active {
  border-color: rgba(39, 211, 255, 0.82);
  background: linear-gradient(120deg, rgba(39, 211, 255, 0.22), rgba(255, 95, 191, 0.2));
}

.timeline-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.release-card {
  border: 1px solid rgba(110, 182, 255, 0.3);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 13, 29, 0.82);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.release-card:hover {
  border-color: rgba(110, 182, 255, 0.52);
  box-shadow: 0 10px 24px rgba(74, 125, 255, 0.14);
}

.release-card.expanded {
  box-shadow: 0 0 0 1px rgba(39, 211, 255, 0.24) inset, 0 10px 26px rgba(39, 211, 255, 0.16);
}

.release-top {
  padding: 0.82rem 0.88rem;
  display: grid;
  gap: 0.7rem;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.release-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
}

.release-sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.release-tags {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid rgba(110, 182, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.71rem;
  color: #b2d1f0;
}

.tag.type {
  border-color: rgba(39, 211, 255, 0.56);
  color: #a0eefe;
}

.release-actions {
  display: flex;
  gap: 0.46rem;
  flex-wrap: wrap;
}

.release-body {
  display: none;
  border-top: 1px solid rgba(110, 182, 255, 0.22);
  padding: 0.82rem;
}

.release-card.expanded .release-body {
  display: block;
  animation: rise 260ms ease both;
}

.release-columns {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.8fr 0.7fr;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.73rem;
  margin-bottom: 0.45rem;
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
  max-height: 290px;
  overflow: auto;
}

.release-list::-webkit-scrollbar {
  width: 8px;
}

.release-list::-webkit-scrollbar-thumb {
  background: rgba(110, 182, 255, 0.36);
  border-radius: 999px;
}

.release-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.8fr 0.7fr;
  gap: 0.58rem;
  padding: 0.46rem 0.54rem;
  border: 1px solid rgba(110, 182, 255, 0.18);
  border-radius: 10px;
  background: rgba(11, 23, 42, 0.56);
  font-size: 0.77rem;
}

.endpoint {
  font-family: "IBM Plex Mono", monospace;
  color: #dbf5ff;
}

.release-empty {
  border: 1px dashed rgba(110, 182, 255, 0.44);
  border-radius: 12px;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
  background: rgba(6, 14, 28, 0.7);
}

footer {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #7f9cbc;
  font-size: 0.8rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .kpi-grid,
  .protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .release-columns {
    display: none;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 560px) {
  .kpi-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }
}
