:root {
  --paper: #f7f9f7;
  --paper-strong: #ffffff;
  --ink: #101313;
  --muted: #5b6464;
  --line: #cfd8d5;
  --steel: #2b3334;
  --teal: #1a7374;
  --teal-soft: #d7eeee;
  --amber: #d9952f;
  --amber-soft: #f8ead2;
  --red: #9e2f3f;
  --green: #4e7b58;
  --shadow: 0 24px 70px rgba(17, 24, 24, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "IBM Plex Sans", "Segoe UI", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: rgba(247, 249, 247, 0.88);
  border-bottom: 1px solid rgba(207, 216, 213, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-family: "Avenir Next Condensed", "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  border: 2px solid var(--steel);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--teal);
  transform: translateX(-50%);
}

.brand-mark::before {
  top: 3px;
}

.brand-mark::after {
  bottom: 3px;
  background: var(--amber);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

main > section[id] {
  scroll-margin-top: 96px;
}

.hero {
  min-height: 88vh;
  padding: 132px 30px 32px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(260px, 0.45fr);
  align-items: end;
  gap: 28px;
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 249, 247, 0.98) 0%,
      rgba(247, 249, 247, 0.88) 38%,
      rgba(247, 249, 247, 0.30) 67%,
      rgba(247, 249, 247, 0.04) 100%
    ),
    url("assets/labspine-workcell-hero.png");
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 249, 247, 0.98) 0%,
      rgba(247, 249, 247, 0.88) 38%,
      rgba(247, 249, 247, 0.30) 67%,
      rgba(247, 249, 247, 0.04) 100%
    ),
    image-set(
      url("assets/labspine-workcell-hero.webp") type("image/webp"),
      url("assets/labspine-workcell-hero.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(100%, 720px);
  min-width: 0;
  max-width: 720px;
  padding-bottom: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 6.8rem;
  line-height: 0.92;
  font-weight: 900;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 2.35rem;
  line-height: 1.08;
}

.hero-body {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--steel);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(16, 19, 19, 0.08);
}

.button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.primary span {
  background: var(--teal);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: rgba(16, 19, 19, 0.16);
}

.button.secondary span {
  background: var(--amber-soft);
  color: #6f4712;
}

.hero-proof {
  justify-self: end;
  width: min(100%, 420px);
  display: grid;
  gap: 10px;
  margin-bottom: 44px;
}

.hero-proof div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  min-height: 72px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(207, 216, 213, 0.82);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.hero-proof strong {
  font-size: 1.32rem;
}

.hero-proof span {
  color: var(--muted);
  line-height: 1.35;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(26, 115, 116, 0.08), transparent 46%),
    var(--paper-strong);
}

.intro-inner {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px;
}

.intro-inner p {
  max-width: 920px;
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.section,
.split-section,
.demo-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 30px;
}

.section-heading {
  width: min(100%, 760px);
  min-width: 0;
  max-width: 760px;
  margin-bottom: 34px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 3.4rem;
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

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

.model-card,
.deploy-grid article {
  min-height: 260px;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(16, 19, 19, 0.05);
}

.card-index {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--amber);
  font-weight: 900;
}

.model-card p,
.deploy-grid p,
.split-copy p,
.finding-header p {
  color: var(--muted);
  line-height: 1.58;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: center;
}

.split-copy {
  width: min(100%, 520px);
  min-width: 0;
  max-width: 520px;
}

.flow-board {
  padding: 16px;
  background: #162021;
  color: #edf3f1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(160px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(237, 243, 241, 0.13);
}

.flow-row:last-child {
  border-bottom: 0;
}

.flow-row span {
  color: #aebdbc;
}

.flow-row b {
  font-size: 1.1rem;
}

.demo-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(217, 149, 47, 0.10), transparent 42%),
    #edf4f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-section > .section-heading,
.demo-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 16px;
}

.scenario-panel {
  display: grid;
  gap: 10px;
  align-self: start;
}

.api-health {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper-strong);
  border: 1px solid rgba(16, 19, 19, 0.18);
  border-radius: var(--radius);
}

.api-health strong,
.api-health span:last-child {
  grid-column: 2;
}

.api-health span:last-child {
  color: #dbe4e1;
  font-size: 0.9rem;
}

.health-dot {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.api-health[data-state="live"] .health-dot {
  background: #74b986;
}

.api-health[data-state="offline"] .health-dot {
  background: var(--red);
}

.scenario-button {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  background: var(--paper-strong);
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.scenario-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  background: #e7ecea;
  color: var(--steel);
  font-size: 0.78rem;
}

.scenario-button.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 115, 116, 0.12);
}

.scenario-button.is-active span {
  background: var(--teal);
  color: #fff;
}

.diagnostic-panel {
  min-width: 0;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.finding-header {
  min-width: 0;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.finding-header h3 {
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 2.05rem;
  line-height: 1.1;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 16px 0 0;
  padding: 0 10px;
  color: var(--steel);
  background: var(--teal-soft);
  border: 1px solid rgba(26, 115, 116, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.sample-thread {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 18px 24px 8px;
}

.thread-node {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.thread-node strong {
  display: block;
  margin-bottom: 8px;
}

.thread-node span {
  color: var(--muted);
  font-size: 0.92rem;
}

.thread-node.ok {
  border-color: rgba(78, 123, 88, 0.45);
  background: #eef6ef;
}

.thread-node.fail {
  border-color: rgba(158, 47, 63, 0.45);
  background: #fbebee;
}

.js .noscript-note {
  display: none;
}

.noscript-note {
  margin: 12px 24px 0;
  padding: 12px 14px;
  color: var(--steel);
  background: var(--amber-soft);
  border: 1px solid rgba(217, 149, 47, 0.36);
  border-radius: var(--radius);
  line-height: 1.45;
}

.trace-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 16px 24px 24px;
}

.trace-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.trace-table th,
.trace-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.trace-table th {
  color: var(--muted);
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 900;
}

.status.ok {
  color: #214b2b;
  background: #dff0e2;
}

.status.fail {
  color: #6e1f2c;
  background: #f4d9de;
}

.live-output-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 14px;
  padding: 0 24px 24px;
}

.findings-panel,
.artifact-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.panel-heading {
  min-width: 0;
}

.panel-heading h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.22rem;
  line-height: 1.15;
}

.findings-panel {
  padding: 18px;
}

.finding-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.finding-list li {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid var(--teal);
  background: #eef6ef;
}

.finding-list strong {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.finding-list span {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.45;
}

.artifact-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.artifact-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.artifact-tab {
  min-height: 34px;
  padding: 0 10px;
  color: var(--steel);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.artifact-tab.is-active {
  color: var(--paper-strong);
  background: var(--teal);
  border-color: var(--teal);
}

.artifact-output {
  height: 270px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  color: #dfe8e4;
  background: #111616;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: "SFMono-Regular", "Cascadia Code", "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
}

.deploy-section {
  padding-bottom: 110px;
}

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

.deploy-grid article {
  min-height: 220px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px;
  color: #dbe4e1;
  background: var(--ink);
}

.site-footer span:first-child {
  font-weight: 900;
}

@media (max-width: 900px) {
  main > section[id] {
    scroll-margin-top: 104px;
  }

  .site-header {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 118px 20px 28px;
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 249, 247, 0.96) 0%,
        rgba(247, 249, 247, 0.90) 54%,
        rgba(247, 249, 247, 0.30) 100%
      ),
      url("assets/labspine-workcell-hero.png");
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 249, 247, 0.96) 0%,
        rgba(247, 249, 247, 0.90) 54%,
        rgba(247, 249, 247, 0.30) 100%
      ),
      image-set(
        url("assets/labspine-workcell-hero.webp") type("image/webp"),
        url("assets/labspine-workcell-hero.png") type("image/png")
      );
    background-position: center right;
  }

  .hero-copy,
  .hero-proof {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-lede {
    font-size: 1.85rem;
  }

  .hero-proof {
    justify-self: stretch;
  }

  .intro-inner,
  .section,
  .split-section,
  .demo-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h2 {
    font-size: 2.55rem;
  }

  .model-grid,
  .split-section,
  .demo-shell,
  .live-output-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .model-card,
  .deploy-grid article {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 28px;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 20px 12px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 14px;
    justify-content: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 4px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .hero-lede {
    font-size: 1.48rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-proof div {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 6px;
  }

  .intro-inner p {
    font-size: 1.18rem;
  }

  .section,
  .split-section,
  .demo-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .sample-thread {
    grid-template-columns: 1fr;
  }

  .artifact-toolbar {
    display: grid;
  }

  .artifact-tabs {
    justify-content: start;
  }

  .site-footer {
    display: grid;
  }
}
