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

:root {
  --bg: #020606;
  --panel: #061011;
  --panel-2: #091516;
  --line: #2d3839;
  --line-soft: #172324;
  --text: #f6f7f1;
  --muted: #9ca5a4;
  --dim: #66706f;
  --green: #9aff19;
  --green-soft: rgba(154, 255, 25, 0.14);
  --green-line: rgba(154, 255, 25, 0.52);
  --amber: #ff9f1c;
  --amber-soft: rgba(255, 159, 28, 0.2);
  --radius: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Rajdhani", "Arial Narrow", Arial, sans-serif;
  --body: "Rajdhani", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(154, 255, 25, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(154, 255, 25, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.35;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.console-app-shell {
  width: min(100%, 1240px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px;
}

.console-body .console-app-shell {
  padding-top: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 6, 6, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.console-title,
.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--green);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
}

.brand-mark,
.mini-mark,
.symbol {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.mini-mark {
  width: 24px;
  height: 24px;
}

.topnav {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
}

.topnav a {
  font-size: 16px;
}

.topnav a:hover,
.panel a:hover {
  color: var(--green);
}

.topbar > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 20px;
  color: var(--text);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  border-color: var(--green);
  color: #071009;
}

.button-primary:hover {
  background: #b0ff44;
  color: #071009;
}

.button-large {
  min-width: 188px;
  min-height: 48px;
}

.button-secondary {
  min-width: 188px;
}

.full-width {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, 430px) minmax(500px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 18px 10px;
}

.eyebrow,
.section-label,
.flow-card h2,
.panel h3,
.network-strip h2,
.score-card p,
.project-card p {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
}

.hero-copy h1 {
  max-width: 430px;
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.98;
  font-weight: 700;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-lede {
  max-width: 430px;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 26px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  min-height: 96px;
  padding: 16px 14px;
  background: rgba(8, 18, 18, 0.65);
  border-right: 1px solid var(--line-soft);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item i,
.network-strip i,
.module-list i,
.ownership-row i {
  color: var(--green);
  font-size: 24px;
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 8px;
}

.proof-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-system {
  display: grid;
  gap: 12px;
}

.flow-strip,
.score-row,
.dashboard-grid,
.network-strip {
  display: grid;
  gap: 12px;
}

.flow-strip {
  grid-template-columns: 1fr 26px 1.15fr 26px 1fr;
  align-items: center;
}

.flow-card,
.score-card,
.panel,
.target-brief,
.clean-room-bar,
.console-frame,
.network-strip,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 16, 17, 0.74);
}

.flow-card {
  height: 202px;
  padding: 14px 18px;
  overflow: hidden;
}

.flow-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.18;
}

.flow-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.flow-card li span,
.dots::before,
.dots::after,
.dots {
  --dot-color: var(--green);
}

.flow-card li span {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
}

.flow-card-center {
  text-align: center;
}

.symbol {
  width: 62px;
  height: 62px;
  margin: 8px auto 6px;
}

.flow-card-center p {
  margin: 3px 0;
  font-size: 11px;
}

.flow-arrow,
.rail {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.clean-room-bar {
  display: grid;
  place-items: center;
  min-height: 42px;
  text-align: center;
}

.clean-room-bar strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.clean-room-bar span {
  color: var(--text);
  font-size: 12px;
}

.score-row {
  grid-template-columns: repeat(3, 1fr);
}

.score-card {
  min-height: 88px;
  padding: 14px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: end;
}

.score-card p {
  grid-column: 1 / -1;
  color: var(--muted);
}

.score-card strong {
  color: var(--green);
  font-family: var(--display);
  font-size: 46px;
  line-height: 0.86;
}

.score-card-warning strong {
  color: var(--amber);
}

.score-card small {
  color: var(--muted);
  font-size: 14px;
  align-self: end;
}

.meter {
  grid-column: 1 / -1;
  height: 8px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0 7px, transparent 7px 10px);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 10px);
}

.score-card-warning .meter span {
  background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 10px);
}

.console-frame {
  display: grid;
  grid-template-columns: 188px 1fr;
  margin: 0 0 10px;
  overflow: hidden;
}

.console-page {
  min-height: calc(100vh - 32px);
  margin: 0;
}

.console-sidebar {
  min-height: 902px;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

.console-title {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 22px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.side-link i {
  font-size: 20px;
}

.side-link.active {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--text);
}

.project-card {
  margin-top: auto;
  padding: 16px;
}

.project-card strong {
  display: block;
  margin: 12px 0 34px;
  color: var(--green);
  font-family: var(--mono);
}

.save-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.project-card button,
.target-brief button {
  width: 100%;
  min-height: 38px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.console-main {
  min-width: 0;
}

.console-status {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 48px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.console-status b {
  color: var(--green);
}

.console-status.pulse {
  animation: pulse 900ms ease;
}

@keyframes pulse {
  0%, 100% { background: transparent; }
  35% { background: rgba(154, 255, 25, 0.12); }
}

.target-brief {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 108px;
  gap: 22px;
  align-items: start;
  margin: 0;
  padding: 20px 28px 18px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(5, 12, 13, 0.54);
}

.target-brief h2 {
  margin: 8px 0 4px;
  font-size: 28px;
}

.target-brief p {
  margin: 0;
  color: var(--muted);
}

.target-brief dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
}

.target-brief dt {
  color: var(--muted);
  font-size: 12px;
}

.target-brief dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 16px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.panel a {
  color: var(--text);
  font-size: 14px;
}

.wide {
  grid-column: span 9;
}

.signal-panel,
.thesis-panel {
  grid-column: span 6;
}

.stack-panel {
  grid-column: span 3;
}

.milestones-panel,
.repo-panel,
.ownership-panel,
.next-panel {
  grid-column: span 6;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 10px;
}

th {
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}

td,
th {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

td {
  color: var(--text);
}

.table-note {
  margin: 12px 8px 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.dots {
  display: inline-block;
  width: 42px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 10px);
}

.dots.four {
  width: 34px;
}

.thesis-callout {
  border: 1px solid var(--green-line);
  border-radius: 4px;
  background: var(--green-soft);
  padding: 16px;
  font-size: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.blueprint-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}

.module-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.module-list b {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.architecture {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 242px;
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

.arch-top,
.arch-services,
.arch-data {
  display: grid;
  gap: 8px;
}

.arch-top {
  grid-template-columns: repeat(2, 120px);
  justify-content: center;
}

.arch-services,
.arch-data {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.architecture span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
}

.arch-services span {
  border-color: rgba(255, 159, 28, 0.7);
  color: var(--amber);
}

.stack-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.stack-list dt {
  color: var(--text);
  font-weight: 700;
}

.stack-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.done {
  color: var(--green);
}

.active {
  color: var(--amber);
}

.queued {
  color: var(--muted);
}

.repo-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
}

pre {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.compact {
  margin: 0;
}

.ownership-panel,
.next-panel {
  min-height: 210px;
}

.ownership-panel p {
  color: var(--muted);
  margin: 0 0 18px;
}

.ownership-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ownership-row span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.ownership-row b {
  display: block;
  color: var(--text);
}

.next-panel ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.next-panel li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.network-strip {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin: 0;
  padding: 26px;
}

.network-strip article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
}

.network-strip i {
  font-size: 50px;
}

.network-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  justify-content: center;
  gap: 14px;
  min-height: 82px;
  color: var(--text);
  font-family: var(--mono);
  font-style: italic;
}

.site-footer strong {
  color: var(--green);
  font-weight: 700;
}

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

  .hero-copy h1,
  .hero-lede {
    max-width: 720px;
  }

  .network-strip {
    grid-template-columns: 1fr 1fr;
  }

  .rail {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-shell {
    padding: 0 10px 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .brand {
    font-size: 26px;
  }

  .hero-grid {
    padding: 28px 4px 10px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .proof-row,
  .score-row,
  .dashboard-grid,
  .blueprint-layout,
  .ownership-row,
  .repo-grid,
  .network-strip,
  .target-brief,
  .target-brief dl {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .console-frame {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .project-card {
    display: none;
  }

  .target-brief button {
    width: auto;
    margin-top: 0;
  }

  .wide {
    grid-column: span 1;
  }

  .arch-top,
  .arch-services,
  .arch-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 66px;
  }

  .topbar > .button {
    padding: 0 14px;
    min-height: 38px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-actions {
    display: grid;
  }

  .button-large,
  .button-secondary {
    width: 100%;
    min-width: 0;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    padding: 10px;
  }

  .console-status {
    padding: 12px;
  }

  .target-brief {
    padding: 18px 14px;
  }

  .panel {
    padding: 14px;
  }

  table {
    font-size: 11px;
  }
}
