:root {
  font-family: Inter, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #191919;
  background: #fafafa;
  --bg: #fafafa;
  --surface: #fff;
  --ink: #191919;
  --muted: #737373;
  --line: #e5e5e5;
  --soft: #f1f1f1;
  --inverse: #fff;
  color-scheme: light;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101010;
    --surface: #161616;
    --ink: #eee;
    --muted: #929292;
    --line: #303030;
    --soft: #202020;
    --inverse: #111;
    color: var(--ink);
    background: var(--bg);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #101010;
  --surface: #161616;
  --ink: #eee;
  --muted: #929292;
  --line: #303030;
  --soft: #202020;
  --inverse: #111;
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button,
input,
textarea {
  color: var(--ink);
}
a,
button {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 550;
}
.muted,
small {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 30;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--inverse);
}
.skip-link:focus {
  top: 20px;
}
.site-shell {
  max-width: 1320px;
  padding: 0 64px;
  margin: auto;
}
.site-header {
  height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand-suffix {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.5px;
  margin-left: 0;
}
.mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
  transform: rotate(-10deg);
}
.mark i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 1.5px;
}
.mark i:last-child {
  opacity: 0.4;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 13px;
}
.site-header nav > a:not(.subtle-button) {
  color: var(--muted);
}
.site-header nav > a:hover {
  color: var(--ink);
}
.button,
.subtle-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 21px;
  font-size: 13px;
  font-weight: 500;
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}
.button {
  background: var(--ink);
  color: var(--inverse);
}
.subtle-button {
  border-color: var(--line);
  background: transparent;
  padding: 8px 14px;
}
.button:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}
.subtle-button:hover {
  background: var(--soft);
}
.button:active,
.subtle-button:active {
  transform: translateY(0);
}
.theme-button {
  border: 0;
  background: transparent;
  font-size: 21px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.theme-button:hover {
  background: var(--soft);
}
.text-link {
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover {
  text-decoration: underline;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 26px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.hero {
  padding: 82px 0 110px;
}
.hero-copy {
  max-width: 740px;
  margin: 0 auto 70px;
  text-align: center;
  animation: arrive 650ms ease both;
}
.hero-copy .eyebrow {
  justify-content: center;
}
.hero h1 {
  font-size: clamp(40px, 4.3vw, 62px);
  letter-spacing: -2px;
  margin: 0 0 27px;
  line-height: 1.32;
  text-wrap: balance;
}
.hero-description {
  max-width: 550px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.release-note {
  font-size: 11px;
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 580px;
}
.workbench-preview {
  max-width: 860px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 22px 80px #00000006;
  animation: arrive 900ms 100ms ease both;
}
.preview-top,
.preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
  font-size: 10px;
  color: var(--muted);
}
.preview-top {
  border-bottom: 1px solid var(--line);
}
.preview-top > span:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}
.preview-top .mark {
  transform: scale(0.65);
}
.preview-bottom {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.preview-canvas {
  height: 340px;
  position: relative;
  overflow: hidden;
}
.preview-rail {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 15px #00000005;
}
.preview-rail > span {
  width: 25px;
  height: 29px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.preview-node {
  position: absolute;
  width: 23%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 17px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px #00000003;
}
.preview-node strong {
  font-size: 14px;
  font-weight: 500;
}
.preview-node > span:last-of-type {
  font-size: 10px;
  color: var(--muted);
}
.node-label {
  font:
    8px/1.5 ui-monospace,
    monospace;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.preview-node i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  position: absolute;
  right: -3px;
  top: 50%;
  background: var(--surface);
}
.node-input {
  top: 70px;
  left: 13%;
}
.node-agent {
  top: 145px;
  left: 42%;
}
.node-view {
  top: 67px;
  left: 71%;
}
.preview-lines {
  display: grid;
  gap: 5px;
  padding: 7px 0 0;
}
.preview-lines b {
  height: 4px;
  border-radius: 2px;
  width: 100%;
  background: var(--line);
}
.preview-lines b:nth-child(2) {
  width: 65%;
}
.preview-lines b:nth-child(3) {
  width: 80%;
}
.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.connections path {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.canvas-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.possibilities {
  border-top: 1px solid var(--line);
  padding: 76px 0 82px;
}
.section-heading {
  max-width: 580px;
}
.section-heading .eyebrow {
  margin-bottom: 20px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
.section-heading > p:last-child,
.ecosystem p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.9;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 50px;
}
.feature-number {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.feature-grid h3 {
  font-size: 16px;
  margin: 20px 0 12px;
}
.feature-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.ecosystem {
  border-top: 1px solid var(--line);
  padding: 68px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.ecosystem .eyebrow {
  margin-bottom: 20px;
}
.ecosystem-links {
  padding-top: 10px;
}
.ecosystem-links > a {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease;
}
.ecosystem-links > a:hover {
  padding-inline: 8px;
}
.ecosystem-links strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.ecosystem-links small {
  font-size: 11px;
}
.site-footer {
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.site-footer .brand {
  font-size: 14px;
  color: var(--ink);
}
.corner-brand {
  position: absolute;
  top: 40px;
  left: 48px;
}
.auth-card {
  width: min(430px, calc(100% - 48px));
  margin: min(22vh, 200px) auto 60px;
}
.auth-card h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.auth-card > p {
  color: var(--muted);
  font-size: 14px;
}
.auth-card .wide {
  width: 100%;
  justify-content: space-between;
  margin: 22px 0 20px;
  padding: 15px 20px;
}
.auth-card .fine-print {
  font-size: 11px;
  margin-bottom: 36px;
}
.auth-card > a:not(.button) {
  display: block;
  margin-top: 22px;
  font-size: 13px;
}
.manage-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 5px 8px;
  gap: 24px;
  box-shadow: 0 4px 20px #00000005;
  z-index: 10;
}
.rail-brand {
  display: flex;
  padding: 4px;
}
.manage-rail nav {
  display: grid;
  gap: 7px;
}
.manage-rail nav button {
  border: 0;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  background: none;
  font-size: 21px;
  color: var(--muted);
}
.manage-rail nav button[aria-current='page'],
.manage-rail nav button:hover {
  background: var(--soft);
  color: var(--ink);
}
.manage-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 40px 70px 110px;
}
.manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.manage-header .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.manage-header h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
.account-menu small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.status-message {
  min-height: 25px;
  font-size: 12px;
  margin: 15px 0;
}
.status-message[data-error='true'] {
  font-weight: 600;
}
.panel-heading {
  margin-bottom: 35px;
}
.panel-heading h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  max-width: 580px;
}
#settings-form {
  max-width: 640px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 23px 0 9px;
}
label .muted {
  font-weight: 400;
  margin-left: 8px;
}
input,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
  font-size: 13px;
  line-height: 1.8;
  transition: border-color 160ms ease;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input:focus,
textarea:focus {
  border-color: var(--muted);
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
  font-size: 11px;
}
.preview-link {
  display: inline-block;
  margin: 25px 25px 0 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 400;
  color: var(--muted);
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td small {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  font:
    9px ui-monospace,
    monospace;
  margin-top: 4px;
}
.audit-entry {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.audit-entry summary {
  cursor: pointer;
  font-size: 12px;
}
.audit-entry summary span {
  color: var(--muted);
  font-size: 10px;
  margin-left: 15px;
}
.audit-entry p {
  font-size: 10px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 15px;
}
.audit-entry pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    11px/1.8 ui-monospace,
    monospace;
  background: var(--soft);
  border-radius: 8px;
  padding: 15px;
}
.empty-state {
  padding: 40px 0;
  color: var(--muted);
  font-size: 12px;
}
.more-button {
  margin-top: 25px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 32px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 30px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 850px) {
  .site-shell {
    padding: 0 28px;
  }
  .site-header {
    height: 90px;
  }
  .site-header nav {
    gap: 16px;
  }
  .hero {
    padding-top: 50px;
  }
  .feature-grid {
    gap: 25px;
  }
  .ecosystem {
    gap: 40px;
  }
  .preview-canvas {
    height: 300px;
  }
  .manage-main {
    padding-left: 105px;
    padding-right: 25px;
  }
}
@media (max-width: 560px) {
  .site-shell {
    padding: 0 22px;
  }
  .site-header nav > a:first-child {
    display: none;
  }
  .site-header nav {
    gap: 12px;
    font-size: 11px;
  }
  .site-header nav .subtle-button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .site-header nav .theme-button {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .hero {
    padding: 46px 0 55px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-copy {
    margin-bottom: 42px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 11px 15px;
    gap: 13px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .release-note {
    font-size: 10px;
  }
  .preview-canvas {
    height: 240px;
  }
  .preview-rail {
    left: 9px;
    padding: 4px;
  }
  .preview-rail > span {
    width: 18px;
    height: 22px;
    font-size: 12px;
  }
  .preview-node {
    padding: 10px 9px;
    width: 26%;
    gap: 4px;
  }
  .preview-node strong {
    font-size: 10px;
  }
  .preview-node > span:last-of-type {
    font-size: 8px;
  }
  .node-label {
    font-size: 6px;
    letter-spacing: 0;
  }
  .node-input {
    top: 45px;
    left: 14%;
  }
  .node-agent {
    top: 116px;
    left: 41%;
  }
  .node-view {
    top: 39px;
    left: 69%;
  }
  .preview-top,
  .preview-bottom {
    padding-inline: 13px;
    font-size: 8px;
  }
  .canvas-caption {
    font-size: 8px;
  }
  .possibilities {
    padding: 48px 0;
  }
  h2 {
    font-size: 23px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 35px;
  }
  .feature-grid h3 {
    margin-top: 10px;
  }
  .ecosystem {
    grid-template-columns: 1fr;
    padding: 45px 0;
    gap: 15px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
    font-size: 10px;
  }
  .site-footer > span {
    display: none;
  }
  .corner-brand {
    left: 24px;
    top: 27px;
  }
  .auth-card {
    margin-top: 23vh;
  }
  .auth-card h1 {
    font-size: 28px;
  }
  .manage-rail {
    width: 43px;
    left: 9px;
    padding: 12px 2px 5px;
    gap: 17px;
  }
  .manage-rail nav button {
    width: 32px;
    height: 34px;
  }
  .manage-main {
    padding: 30px 18px 50px 69px;
  }
  .manage-header {
    display: block;
    padding-bottom: 18px;
  }
  .account-menu {
    margin-top: 22px;
    justify-content: space-between;
  }
  .manage-header h1 {
    font-size: 25px;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  .panel-heading {
    margin-bottom: 24px;
  }
  .form-footer {
    gap: 10px;
  }
  .audit-entry summary span {
    display: block;
    margin: 6px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.account-shell {
  max-width: 850px;
  margin: 0 auto;
  padding: 70px 24px;
}
.account-panel {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.account-value {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.account-panel .muted,
.account-panel .fine-print {
  max-width: 640px;
  line-height: 1.8;
}
.account-panel h2 {
  margin: 12px 0;
}
.account-panel .text-link {
  display: inline-block;
  margin-top: 18px;
}
.account-panel small {
  display: block;
  font-size: 14px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .account-shell {
    padding: 28px 22px;
  }
  .account-shell .manage-header {
    padding-bottom: 22px;
  }
}
