:root {
  --black: #0f0f0f;
  --black-2: #161616;
  --layer: #262626;
  --layer-2: #393939;
  --white: #f4f4f4;
  --muted: #c6c6c6;
  --soft: #a8a8a8;
  --blue: #0f62fe;
  --blue-hover: #0353e9;
  --cyan: #33b1ff;
  --green: #42be65;
  --border: #525252;
  --border-soft: #393939;
  --paper: #f7f7f5;
  --paper-line: #e0e0e0;
  color: var(--white);
  background: var(--black);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--black);
  background-size: 64px 64px;
  margin: 0;
  min-width: 320px;
}

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

button {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand,
nav,
.actions,
.tabs,
.hero-panel-heading,
.terminal-header,
.command-toolbar {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: 40px;
}

nav {
  color: var(--muted);
  gap: 2px;
}

nav a {
  min-height: 48px;
  padding: 15px 18px 0;
}

nav a:hover {
  background: var(--layer);
  color: var(--white);
}

main {
  margin: 0 auto;
  max-width: 1440px;
}

.hero {
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 68px);
  padding: 42px 48px 58px;
}

.hero-copy {
  align-self: center;
  max-width: 830px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  color: var(--white);
  font-size: 5.9rem;
  font-weight: 300;
  line-height: 0.96;
  margin: 0;
  max-width: 920px;
}

h2 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.06;
  margin: 0;
  max-width: 720px;
}

h3 {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 400;
  margin: 0 0 18px;
}

.summary {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
  margin: 26px 0 0;
  max-width: 720px;
}

.bob-note,
.panel-copy {
  color: var(--soft);
  line-height: 1.6;
}

.bob-note {
  border-left: 3px solid var(--blue);
  margin: 22px 0 0;
  max-width: 660px;
  padding-left: 14px;
}

.actions {
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 34px;
}

.primary,
.secondary,
.tab,
.terminal-header button,
.command-toolbar button {
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.primary,
.secondary {
  align-items: center;
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
}

.primary {
  background: var(--blue);
  color: #ffffff;
}

.primary:hover {
  background: var(--blue-hover);
}

.secondary {
  background: var(--layer);
  color: var(--white);
}

.secondary:hover {
  background: var(--layer-2);
}

.hero-panel {
  align-self: center;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid var(--border);
  padding: 26px;
  position: relative;
}

.hero-panel::before {
  background: var(--blue);
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.hero-panel-heading {
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
  padding-bottom: 22px;
}

.hero-panel-heading img {
  filter: drop-shadow(0 0 16px rgba(15, 98, 254, 0.45));
  height: 68px;
  width: 68px;
}

.hero-panel-heading p {
  color: var(--soft);
  margin: 0 0 4px;
}

.hero-panel-heading strong {
  color: var(--white);
  display: block;
  font-size: 1.35rem;
  font-weight: 400;
}

.terminal,
.command-panel pre,
.flow-grid pre,
.tree-panel {
  background: #000000;
  border: 1px solid var(--border-soft);
}

.terminal {
  margin-top: 24px;
}

.terminal-header,
.command-toolbar {
  border-bottom: 1px solid var(--border-soft);
  color: var(--soft);
  font-size: 0.82rem;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px 0 16px;
}

.terminal-header button,
.command-toolbar button {
  background: transparent;
  color: var(--white);
  min-height: 32px;
  padding: 0 10px;
}

.terminal-header button:hover,
.command-toolbar button:hover {
  background: var(--layer);
}

.terminal-header button[data-copied],
.command-toolbar button[data-copied],
.primary[data-copied] {
  background: var(--green);
  color: #161616;
}

pre {
  color: var(--white);
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-result {
  border-top: 1px solid var(--border-soft);
  color: var(--green);
  padding-top: 14px;
}

code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.hero-output {
  border-bottom: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
  padding: 18px 0;
}

.hero-output span {
  color: var(--green);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.hero-output ul {
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-grid div {
  border-right: 1px solid var(--border-soft);
  min-height: 82px;
  padding: 18px 18px 0;
}

.signal-grid div:first-child {
  padding-left: 0;
}

.signal-grid div:not(:first-child) {
  padding-left: 22px;
}

.signal-grid div:last-child {
  border-right: 0;
}

.signal-grid strong {
  color: var(--white);
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
}

.signal-grid span {
  color: var(--soft);
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 6px;
}

.flow,
.workbench,
.artifacts {
  padding: 52px 48px;
}

.flow,
.workbench {
  border-bottom: 1px solid var(--border-soft);
}

.section-heading {
  display: block;
  margin-bottom: 28px;
}

.flow-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-grid article {
  background: var(--black-2);
  border: 1px solid var(--border-soft);
  min-height: 250px;
  padding: 20px;
}

.flow-grid article > span,
.artifact-grid article > span {
  color: var(--blue);
  display: block;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  margin-bottom: 30px;
}

.flow-grid pre {
  margin-top: 18px;
  min-height: 96px;
  padding: 14px;
}

.flow-grid p {
  color: var(--soft);
  line-height: 1.55;
  margin: 0;
  min-height: 48px;
}

.workbench {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
  padding-top: 44px;
}

.command-panel,
.status-panel {
  background: var(--black-2);
  border: 1px solid var(--border-soft);
  min-height: 100%;
  padding: 24px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.panel-copy {
  margin: 14px 0 0;
  max-width: 520px;
}

.tabs {
  background: #000000;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.tab {
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding: 0 16px;
}

.tab.active {
  background: var(--blue);
  color: #ffffff;
}

.tab:not(.active):hover {
  background: var(--layer);
  color: var(--white);
}

.command-set {
  display: none;
  margin-top: 24px;
}

.command-set.active {
  display: block;
}

.command-toolbar {
  background: #000000;
}

.command-toolbar span {
  line-height: 1.45;
  max-width: 70%;
}

dl {
  margin: 34px 0 0;
}

dl div {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 20px;
  grid-template-columns: 112px 1fr;
  min-height: 58px;
  padding: 18px 0 0;
}

dt {
  color: var(--soft);
}

dd {
  color: var(--white);
  margin: 0;
}

.artifacts {
  background: var(--paper);
  color: #161616;
}

.artifacts .section-kicker {
  color: var(--blue);
}

.artifacts h2,
.artifacts h3 {
  color: #161616;
}

.artifact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
}

.tree-panel {
  background: #161616;
  min-height: 100%;
}

.tree-panel pre {
  min-height: 100%;
}

.artifact-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artifact-grid article {
  background: #ffffff;
  border: 1px solid var(--paper-line);
  min-height: 250px;
  padding: 24px;
}

.artifact-grid p {
  color: #525252;
  line-height: 1.62;
  margin: 0;
}

.toast {
  background: var(--blue);
  bottom: 20px;
  color: #ffffff;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .hero {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    position: static;
  }

  nav {
    flex-wrap: wrap;
    width: 100%;
  }

  nav a {
    min-height: 38px;
    padding: 10px 12px 0 0;
  }

  .hero,
  .flow,
  .workbench,
  .artifacts {
    padding: 42px 18px;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .summary {
    font-size: 1rem;
  }

  .flow-grid,
  .artifact-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid div {
    border-bottom: 1px solid var(--border-soft);
    border-right: 0;
    min-height: auto;
    padding: 16px 0;
  }

  .signal-grid div:last-child {
    border-bottom: 0;
  }

  .panel-heading {
    display: block;
  }

  .tabs {
    display: inline-flex;
    margin-top: 18px;
  }

  .command-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .command-toolbar span {
    max-width: none;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 14px;
  }
}
