:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #eaf0ef;
  background: #10191c;
  color-scheme: dark;
  --yellow: #ffdb0a;
  --muted: #86969b;
  --line: #ffffff18;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #ad9400;
  outline-offset: 4px;
}
.scene {
  max-width: 1440px;
  min-height: 100svh;
  margin: auto;
  padding: 26px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand b {
  font-size: 23px;
  letter-spacing: -1px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 15px;
}
h1 {
  font-size: clamp(40px, 5.2vw, 67px);
  font-weight: 500;
  letter-spacing: -3.5px;
  line-height: 1.02;
  margin: 0;
}
h1 em {
  font-style: normal;
  color: var(--yellow);
}
.description {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 4px;
  max-width: 200px;
}
.workbench {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 22px;
  flex: 1;
  min-height: 355px;
}
.window {
  border: 1px solid #344247;
  border-radius: 13px;
  background: #152125;
  overflow: hidden;
  box-shadow: 0 24px 65px #0004;
  min-width: 0;
}
.window-bar {
  height: 41px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45555c;
}
.window-bar b {
  font-size: 12px;
  margin-left: 10px;
  letter-spacing: -0.2px;
}
.window-bar small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 20px;
  height: 38px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.tabs .selected {
  align-self: stretch;
  padding-top: 13px;
  border-bottom: 2px solid var(--yellow);
  color: var(--yellow);
}
.editor-body {
  padding: 20px 0 15px;
  min-height: 232px;
}
.code-row {
  height: 33px;
  display: flex;
  gap: 21px;
  align-items: center;
  font:
    13px Consolas,
    monospace;
  padding: 0 20px;
  border-left: 2px solid transparent;
  white-space: pre;
}
.code-row.active {
  background: #ffdb0a0b;
  border-left-color: var(--yellow);
}
.line-number {
  font-size: 10px;
  color: #52666e;
  width: 16px;
  flex-shrink: 0;
}
.code-row code {
  font: inherit;
  color: #d6e6e9;
}
.code-row:first-child code {
  color: #6e9292;
}
.token {
  color: var(--yellow);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--yellow);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
.window-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 9px;
  color: var(--muted);
}
.window-foot b {
  font-weight: normal;
  color: #c4d6d0;
}
.workbench .window {
  display: flex;
  flex-direction: column;
}
.workbench .editor-body,
.workbench .cell-view {
  flex: 1;
}
.cell-view {
  display: grid;
  grid-template-columns: 138px 1fr;
  min-height: 258px;
}
.tree {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  font-size: 10px;
  color: #9eafb4;
}
.tree .tree-label {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 22px;
  color: #658088;
}
.tree p {
  margin: 0 0 15px;
}
.tree b {
  color: #d4e1dc;
  font-weight: 500;
}
.tree .branch {
  padding-left: 12px;
}
.tree .file {
  padding: 9px 7px;
  border-radius: 4px;
  background: #ffdb0a16;
  color: var(--yellow);
  font:
    9px Consolas,
    monospace;
}
.viewport {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #101c20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 0H28M0 0V28' fill='none' stroke='white' stroke-opacity='.016'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  min-width: 0;
  overflow: hidden;
}
.viewport img {
  width: 85%;
  height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 15px 16px #0004);
  animation: robot-reveal 18s ease-in-out infinite;
}
.viewport-label {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #648088;
  font-size: 8px;
  letter-spacing: 1px;
}
.viewport-bottom {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font:
    8px Consolas,
    monospace;
  color: #81949a;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2dacf;
}
.badge:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79d7aa;
}
.transfer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1px;
  font-size: 11px;
}
.transfer-bar .count {
  color: var(--yellow);
  font:
    11px Consolas,
    monospace;
}
.transfer-track {
  height: 2px;
  background: #ffffff13;
  flex: 1;
}
.transfer-track i {
  display: block;
  background: var(--yellow);
  height: 100%;
  width: 0;
  transition: width 0.25s linear;
}
.transfer-bar small {
  color: var(--muted);
  font-size: 9px;
  min-width: 195px;
  text-align: right;
}
.controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.controls div {
  display: flex;
  gap: 7px;
}
.controls button {
  background: transparent;
  border: 1px solid #788b9145;
  color: inherit;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 9px;
}
.timeline {
  height: 1px;
  background: var(--line);
  margin-top: 14px;
}
.timeline i {
  display: block;
  height: 100%;
  background: var(--yellow);
  width: 0;
}
footer {
  margin-top: auto;
}
.connect {
  background: #f4f2e9;
  color: #202a2d;
  color-scheme: light;
  --muted: #758078;
  --line: #2434291b;
}
.connect h1 em {
  color: #927b00;
}
.connect .heading {
  align-items: center;
}
.connect .description {
  max-width: 220px;
}
.connection-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.network {
  display: grid;
  grid-template-columns: 1fr 95px 1fr 95px 1fr;
  align-items: center;
  padding: 5px 0;
}
.node {
  background: #fff;
  border: 1px solid #d3d9d0;
  border-radius: 13px;
  min-height: 128px;
  padding: 19px 21px;
  position: relative;
  transition:
    background 0.5s,
    border-color 0.5s,
    transform 0.5s;
}
.node b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.9px;
  font-weight: 500;
  margin: 8px 0;
}
.node small {
  font-size: 10px;
  color: #81897e;
}
.node .node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    9px Consolas,
    monospace;
  color: #7c867a;
}
.node .node-top i {
  width: 7px;
  height: 7px;
  background: #cdd4c9;
  border-radius: 50%;
}
.node.active {
  background: #ffdf28;
  border-color: #e3c217;
  transform: translateY(-4px);
}
.node.active small,
.node.active .node-top {
  color: #6e652c;
}
.node.done .node-top i {
  background: #3d8064;
}
.node img {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 47px;
  height: 52px;
  object-fit: contain;
}
.node:last-child {
  padding-right: 55px;
}
.link {
  height: 1px;
  background: #cbd2c6;
  position: relative;
  margin: 0 9px;
}
.link:after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #a3afa0;
  border-right: 1px solid #a3afa0;
  transform: rotate(45deg);
}
.packet {
  position: absolute;
  height: 5px;
  width: 24px;
  top: -2px;
  border-radius: 10px;
  background: #978211;
  opacity: 0;
}
.link.active .packet {
  opacity: 1;
  animation: packet 1.7s ease-in-out infinite;
}
.link.active:after {
  border-color: #978211;
}
.connection-console {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: #172125;
  color: #ebeee8;
  border-radius: 13px;
  overflow: hidden;
  min-height: 180px;
  box-shadow: 0 15px 35px #28301d13;
}
.connection-status {
  padding: 25px 27px;
  border-right: 1px solid #ffffff12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}
.connection-status .eyebrow {
  color: #84958e;
  margin: 0;
  font-size: 8px;
}
.connection-status h2 {
  font-size: 23px;
  font-weight: 450;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 0;
}
.connection-status p {
  font-size: 10px;
  color: #8c9b95;
  margin: 0;
}
.file-list {
  padding: 20px 26px;
}
.file-list-head {
  display: flex;
  justify-content: space-between;
  color: #72867e;
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.file-row {
  display: grid;
  grid-template-columns: 25px 1fr 65px;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #ffffff0c;
  opacity: 0.25;
  transform: translateX(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
  font:
    11px Consolas,
    monospace;
}
.file-row.visible {
  opacity: 1;
  transform: none;
}
.file-row i {
  font:
    8px Arial,
    sans-serif;
  color: #dcc856;
  border: 1px solid #dcc85633;
  padding: 4px 2px;
  text-align: center;
  border-radius: 3px;
}
.file-row small {
  color: #90a49a;
  font:
    9px Arial,
    sans-serif;
  text-align: right;
}
.connect .timeline i {
  background: #a38a00;
}
.connect .transfer-bar .count {
  color: #8e7800;
}
.connect .transfer-track {
  background: #24342915;
}
.connect .transfer-track i {
  background: #a38a00;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes packet {
  from {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  to {
    left: calc(100% - 24px);
    opacity: 0;
  }
}
@keyframes robot-reveal {
  0%,
  100% {
    transform: translateY(4px) scale(0.97);
  }
  45%,
  75% {
    transform: translateY(-4px) scale(1.02);
  }
}
.stopped * {
  animation-play-state: paused !important;
}
.stopped .node,
.stopped .file-row,
.stopped .transfer-track i {
  transition: none;
}
body.embedded {
  overflow: hidden;
}
.embedded .scene {
  width: 1200px;
  height: 750px;
  min-height: 0;
  max-width: none;
  transform: scale(var(--scale, 1));
  transform-origin: top left;
  position: absolute;
  left: 0;
  top: 0;
}
.embedded h1 {
  font-size: 64px;
}
.embedded .heading {
  display: flex;
  flex-direction: row;
}
.embedded .workbench {
  grid-template-columns: 1.08fr 1fr;
  min-height: 355px;
}
.embedded .network {
  grid-template-columns: 1fr 95px 1fr 95px 1fr;
}
.embedded .connection-console {
  grid-template-columns: 1fr 1.4fr;
}
.embedded .description {
  display: block;
}
.embedded .scene {
  padding: 26px 48px;
  gap: 20px;
}
.embedded .node {
  min-height: 128px;
}
.embedded .connection-layout {
  gap: 24px;
}
@media (max-width: 760px) {
  body:not(.embedded) .scene {
    padding: 24px;
    gap: 20px;
  }
  .brand span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .heading {
    display: block;
  }
  h1 {
    letter-spacing: -2px;
  }
  .description {
    display: none;
  }
  .workbench {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cell-view {
    min-height: 255px;
  }
  .network {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .node {
    min-height: 112px;
  }
  .link {
    height: 28px;
    width: 1px;
    justify-self: center;
    margin: 0;
  }
  .link:after {
    top: auto;
    bottom: 0;
    right: -3px;
    transform: rotate(135deg);
  }
  .link .packet {
    display: none;
  }
  .connection-console {
    grid-template-columns: 1fr;
  }
  .connection-status {
    border-right: 0;
    border-bottom: 1px solid #ffffff12;
    gap: 17px;
  }
  .controls {
    align-items: start;
    line-height: 1.5;
  }
  .controls > span {
    max-width: 150px;
  }
  .transfer-bar small {
    min-width: 0;
    max-width: 130px;
  }
  .code-row {
    font-size: 12px;
    gap: 12px;
  }
  .embedded .code-row {
    font-size: 13px;
    gap: 21px;
  }
  .embedded .link {
    height: 1px;
    width: auto;
    margin: 0 9px;
    justify-self: stretch;
  }
  .embedded .link:after {
    top: -3px;
    bottom: auto;
    right: 0;
    transform: rotate(45deg);
  }
  .embedded .link .packet {
    display: block;
  }
  .embedded .network {
    gap: 0;
  }
  .embedded .connection-status {
    border-right: 1px solid #ffffff12;
    border-bottom: 0;
  }
  .embedded .controls > span {
    max-width: none;
  }
  .embedded .transfer-bar small {
    min-width: 195px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
