@charset "utf-8";

:root {
  color-scheme: dark;
  --bg: #0f1216;
  --panel: #171b21;
  --panel-2: #1b2027;
  --text: #e6edf3;
  --muted: #98a2b3;
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --accent-3: #f59e0b;
  --border: #2b313b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  background: var(--panel-2);
  color: var(--accent);
}

.back-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  color: var(--accent);
}

.node-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.node-nav a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
}

.node-nav a:hover,
.node-nav a.active {
  background: var(--panel-2);
  color: var(--accent);
}

.node-nav img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

.catalog-filter-status {
  color: var(--text);
  margin: 6px 0 0;
}

.content {
  padding: 28px 36px 80px;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hero-light-x: 50%;
  --hero-light-y: 50%;
  --hero-light-radius: 190px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 60px 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #020703;
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero::before {
  z-index: 0;
  background: url("assets/MatrixRainInception_Thumbnail_006_Contrast_L.png") center center / cover no-repeat;
}

.landing-hero::after {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(2, 7, 3, 0.82) 0%,
      rgba(2, 7, 3, 0.58) 34%,
      rgba(2, 7, 3, 0.18) 66%,
      rgba(2, 7, 3, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 7, 3, 0.16) 0%,
      rgba(2, 7, 3, 0.02) 44%,
      rgba(2, 7, 3, 0.24) 100%
    );
}

.landing-hero.flashlight-active:not(.splat-debug)::after {
  -webkit-mask-image: radial-gradient(
    circle var(--hero-light-radius) at var(--hero-light-x) var(--hero-light-y),
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 68%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle var(--hero-light-radius) at var(--hero-light-x) var(--hero-light-y),
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 68%,
    #000 100%
  );
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.94;
  pointer-events: none;
}

.landing-hero.splat-debug::after {
  opacity: 0;
}

.landing-hero.splat-debug .hero-canvas {
  opacity: 1;
}

.hero-debug-toggle {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(99, 255, 151, 0.5);
  border-radius: 6px;
  background: rgba(2, 7, 3, 0.68);
  color: #d9ffe4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hero-debug-toggle[aria-pressed="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-debug-toggle:hover,
.hero-debug-toggle[aria-pressed="true"] {
  border-color: rgba(99, 255, 151, 0.95);
}

.hero-debug-toggle[aria-pressed="true"] {
  background: rgba(23, 83, 43, 0.86);
  color: #f1fff5;
  box-shadow: 0 0 0 1px rgba(99, 255, 151, 0.22), 0 0 18px rgba(34, 197, 94, 0.28);
}

.hero-kicker,
.landing-hero h1,
.hero-lead,
.hero-actions,
.hero-strip {
  position: relative;
  z-index: 3;
}

.hero-kicker {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.58);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.lead {
  color: var(--muted);
  margin: 0;
  max-width: 900px;
}

.hero-lead {
  max-width: 760px;
  color: #d6e2ec;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #425061;
  border-radius: 8px;
  color: var(--text);
  background: rgba(27, 32, 39, 0.92);
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.button.primary {
  background: linear-gradient(180deg, #16a34a 0%, #0f7a3d 100%);
  border-color: #35d071;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 120, 55, 0.24);
}

.button.primary:hover {
  background: linear-gradient(180deg, #22c55e 0%, #128144 100%);
  border-color: #66f29a;
  color: #ffffff;
}

.button.ghost {
  background: rgba(15, 18, 22, 0.56);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-width: 860px;
}

.hero-strip span {
  border: 1px solid #354252;
  border-radius: 999px;
  background: rgba(16, 21, 27, 0.76);
  color: #c9d6e2;
  padding: 5px 9px;
  font-size: 13px;
}

code {
  background: #10151b;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: "Consolas", "Cascadia Mono", monospace;
  font-size: 0.93em;
}

.section {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 12px;
}

.section h3 {
  margin: 18px 0 6px;
}

.muted {
  color: var(--muted);
}

.callout {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid.latest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.grid.node-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.grid.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1500px) {
  .grid.latest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1700px) {
  .grid.pipeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .grid.latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.node-catalog-grid,
  .grid.pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid.node-catalog-grid,
  .grid.pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid.latest-grid {
    grid-template-columns: 1fr;
  }

  .grid.node-catalog-grid,
  .grid.pipeline-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 14px 16px;
}

.card > h3:first-child {
  position: relative;
  margin: -14px -16px 14px;
  padding: 12px 16px 13px;
  background: rgb(0 111 90 / 15%);
  border-bottom: 1px solid rgb(0 111 90 / 32%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.link-card p {
  color: var(--muted);
  margin: 8px 0 12px;
}

.text-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

.feature-card h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-height: 118px;
  text-align: center;
}

.feature-card h3 .inline-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.bullet {
  list-style: disc;
  padding-left: 20px;
}

.inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.node-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.node-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.node-catalog-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.node-catalog-link:hover strong {
  color: var(--accent);
}

.node-inline-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  margin-top: 2px;
}

.tool-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.tool-wrap {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  width: min(100%, 760px);
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #10151b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}

.tool-item img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
}

.steps {
  padding-left: 18px;
}

.table-wrap {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  overflow-x: auto;
  max-width: 960px;
}

pre {
  background: #10151b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  margin: 10px 0;
}

pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .content {
    padding: 20px 18px 60px;
  }
  .landing-hero {
    min-height: 420px;
    padding: 38px 20px;
    background: #020703;
  }
  .hero-debug-toggle {
    top: 10px;
    right: 10px;
  }
  .landing-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(2, 7, 3, 0.82) 0%,
        rgba(2, 7, 3, 0.48) 64%,
        rgba(2, 7, 3, 0.18) 100%
      ),
      linear-gradient(
        180deg,
        rgba(2, 7, 3, 0.2) 0%,
        rgba(2, 7, 3, 0.08) 56%,
        rgba(2, 7, 3, 0.34) 100%
      );
  }
  .hero-lead {
    font-size: 16px;
  }
  .landing-hero h1 {
    font-size: 46px;
  }
  .button {
    width: 100%;
  }
  .tool-wrap {
    width: 100%;
  }
}
