:root {
  color-scheme: dark;
  --bg: #090d12;
  --panel: #101821;
  --panel-2: #15212b;
  --text: #eef6f4;
  --muted: #9db1ad;
  --line: rgba(160, 255, 231, 0.22);
  --cyan: #45f0d2;
  --green: #a8ff78;
  --amber: #ffd166;
  --rose: #ff7aa8;
  --blue: #7fb7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(69, 240, 210, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 0%, rgba(255, 209, 102, 0.12), transparent 24rem),
    linear-gradient(180deg, #080b10 0%, #0b1117 45%, #0a0d12 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 11rem;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(69, 240, 210, 0.18), rgba(255, 209, 102, 0.12));
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

nav a,
.button,
.agent-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

nav a {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

nav a:hover,
nav a:focus-visible,
.button:hover,
.button:focus-visible,
.agent-tab:hover,
.agent-tab:focus-visible {
  border-color: var(--cyan);
  color: var(--text);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 4.6rem);
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem) 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.button.primary {
  background: var(--cyan);
  color: #06100e;
}

.command-visual {
  position: relative;
  min-height: 33rem;
}

.laser-board {
  position: absolute;
  inset: 0 0 7rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(69, 240, 210, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(69, 240, 210, 0.08) 1px, transparent 1px),
    rgba(16, 24, 33, 0.78);
  background-size: 2.4rem 2.4rem;
  box-shadow: 0 0 4rem rgba(69, 240, 210, 0.12);
}

.board-title {
  color: var(--cyan);
  font-weight: 800;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  color: var(--text);
  font-size: 0.86rem;
}

.pipeline-row span {
  min-height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(69, 240, 210, 0.06);
  text-align: center;
}

.pipeline-row i,
.laser-line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 1rem var(--cyan);
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.pulse-grid b {
  display: block;
  min-height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.robot-team {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.55rem;
}

.robot {
  position: relative;
  min-height: 9rem;
}

.robot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  width: 3.2rem;
  height: 5.8rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.5rem 1.5rem 0.7rem 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(110, 132, 147, 0.42));
  box-shadow: 0 0 1.2rem rgba(69, 240, 210, 0.2);
}

.robot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7.2rem;
  width: 3rem;
  height: 2.6rem;
  transform: translateX(-50%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #dce8ed;
}

.robot span {
  position: absolute;
  left: 50%;
  bottom: 8.3rem;
  width: 1.45rem;
  height: 0.38rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0.8rem currentColor;
}

.robot-oss { color: var(--cyan); }
.robot-paper { color: var(--blue); }
.robot-report { color: var(--amber); }
.robot-radar { color: var(--green); }
.robot-synthesis { color: var(--rose); }

.system-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.system-strip div {
  min-height: 4.6rem;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.section {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.agent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.agent-tab {
  min-height: 2.55rem;
  padding: 0.68rem 0.85rem;
  cursor: pointer;
  font: inherit;
}

.agent-tab.active {
  border-color: var(--cyan);
  background: rgba(69, 240, 210, 0.16);
  color: var(--text);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.agent-card,
.pficc-grid article,
.status-table,
.graph-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.agent-card {
  min-height: 18rem;
  padding: 1rem;
  opacity: 0.62;
}

.agent-card.selected {
  border-color: var(--cyan);
  opacity: 1;
}

.agent-card p,
.pficc-grid p,
.status p,
.split p,
footer p {
  color: var(--muted);
  line-height: 1.65;
}

.agent-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.graph-panel {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 7rem;
  min-height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.88);
  color: var(--text);
  font-weight: 800;
}

.source { left: 8%; top: 15%; }
.repo { right: 10%; top: 13%; }
.event { left: 12%; bottom: 18%; }
.conclusion { right: 8%; bottom: 20%; }
.hypothesis { left: 38%; top: 41%; color: var(--green); }
.experiment { left: 39%; bottom: 8%; color: var(--amber); }

.laser-line {
  position: absolute;
  z-index: 1;
  transform-origin: left center;
}

.line-a { left: 23%; top: 24%; width: 32%; transform: rotate(26deg); }
.line-b { right: 22%; top: 24%; width: 29%; transform: rotate(151deg); }
.line-c { left: 24%; bottom: 27%; width: 30%; transform: rotate(-25deg); }
.line-d { right: 23%; bottom: 29%; width: 28%; transform: rotate(205deg); }

.pficc {
  background: rgba(255, 255, 255, 0.025);
}

.pficc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pficc-grid article {
  padding: 1rem;
  min-height: 12rem;
}

.status {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.status-table {
  display: grid;
}

.status-table div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  min-height: 3.5rem;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-table div:last-child {
  border-bottom: 0;
}

.status-table span {
  color: var(--muted);
}

footer {
  padding: 2rem clamp(1rem, 5vw, 5rem) 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  max-width: 64rem;
  margin-bottom: 0;
}

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

  .hero {
    min-height: auto;
  }

  .agent-grid,
  .pficc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3rem;
  }

  .command-visual {
    min-height: 28rem;
  }

  .pipeline-row,
  .system-strip,
  .agent-grid,
  .pficc-grid,
  .status-table div {
    grid-template-columns: 1fr;
  }

  .pipeline-row i {
    height: 1.3rem;
    width: 2px;
    margin: 0 auto;
  }

  .robot-team {
    gap: 0.2rem;
  }

  .robot::before {
    width: 2.3rem;
  }

  .robot::after {
    width: 2.2rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

