@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

:root {
  --ssx-bg: #08090b;
  --ssx-surface-1: #0d0f12;
  --ssx-surface-2: #111419;
  --ssx-surface-3: #171b21;
  --ssx-line: #282d35;
  --ssx-ink: #f2efe9;
  --ssx-dim: #aab2bf;
  --ssx-accent: #e0a14a;
  --ssx-accent-rgb: 224 161 74;
  --bg: var(--ssx-bg);
  --bg-2: var(--ssx-surface-1);
  --panel: var(--ssx-surface-1);
  --panel-2: var(--ssx-surface-2);
  --obsidian-card: var(--ssx-surface-1);
  --obsidian-border: var(--ssx-line);
  --text: var(--ssx-ink);
  --muted: var(--ssx-dim);
  --soft: var(--ssx-dim);
  --line: var(--ssx-line);
  --line-strong: #3a414c;
  --accent: var(--ssx-accent);
  --accent-hover: #f0b762;
  --accent-2: var(--ssx-accent);
  --accent-warm: var(--ssx-accent);
  --accent-warm-hover: #f0b762;
  --accent-sky: var(--ssx-accent);
  --accent-purple: var(--ssx-accent);
  --display: "Instrument Serif", Georgia, serif;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.07) inset, 0 24px 70px rgb(0 0 0 / 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 78% 6%, rgb(var(--ssx-accent-rgb) / 0.06), transparent 27rem),
    radial-gradient(circle at 8% 36%, rgb(66 157 190 / 0.04), transparent 26rem);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  background: rgb(8 9 11 / 0.9);
  border-color: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgb(8 9 11 / 0.97);
}

.nav {
  max-width: 1340px;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
  font-style: italic;
}

.nav-links > a:not(.nav-pypi) {
  color: #b4bbc6;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-links > a:not(.nav-pypi):hover,
.nav-links > a[aria-current="page"] {
  color: var(--text);
}

.nav-pypi {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.025);
  color: var(--text);
}

.button {
  border-radius: 0.55rem;
  min-height: 46px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--accent);
  color: #11100e;
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgb(var(--ssx-accent-rgb) / 0.18);
}

.button.primary:hover {
  background: var(--accent-hover);
  color: #11100e;
  transform: translateY(-2px);
}

.button.secondary {
  background: rgb(255 255 255 / 0.025);
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:hover {
  background: rgb(255 255 255 / 0.055);
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-workbench {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.hero-workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgb(255 255 255 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-workbench::after {
  content: "";
  position: absolute;
  width: 44rem;
  height: 44rem;
  top: -18rem;
  right: -9rem;
  border: 1px solid rgb(var(--ssx-accent-rgb) / 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgb(var(--ssx-accent-rgb) / 0.025),
    0 0 0 14rem rgb(var(--ssx-accent-rgb) / 0.018);
  pointer-events: none;
}

.hero-workbench-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(27rem, 0.96fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-workbench .eyebrow,
.tooling-section .eyebrow,
.mcp-tool-section .eyebrow,
.hardware-product-section .eyebrow,
.limits-section .eyebrow {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-workbench .eyebrow::before,
.tooling-section .eyebrow::before,
.mcp-tool-section .eyebrow::before,
.hardware-product-section .eyebrow::before,
.limits-section .eyebrow::before {
  content: "> ";
}

.hero-workbench h1 {
  max-width: 12ch;
  margin: 1.35rem 0 1.5rem;
  font-size: clamp(4.1rem, 7.4vw, 7.3rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero-workbench h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-workbench .hero-lead {
  max-width: 42rem;
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.55;
}

.hero-workbench .hero-detail {
  max-width: 41rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-workbench .hero-actions {
  margin-top: 2rem;
  align-items: stretch;
}

.hero-workbench .install-copy {
  min-height: 48px;
  flex: 1 1 20rem;
  justify-content: space-between;
  border-color: var(--line);
  border-radius: 0.55rem;
  background: #0a0c0f;
}

.hero-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.4rem;
}

.hero-link-row a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.hero-link-row a:hover {
  color: var(--accent);
}

.verification-console {
  position: relative;
  transform: rotate(0.45deg);
  border: 1px solid #343a44;
  border-radius: 0.65rem;
  background: rgb(10 12 15 / 0.92);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.08) inset,
    0 30px 90px rgb(0 0 0 / 0.55),
    0 0 80px rgb(var(--ssx-accent-rgb) / 0.08);
  overflow: hidden;
}

.verification-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 30%, rgb(255 255 255 / 0.035), transparent 65%);
}

.console-rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: #858e9c;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.console-pass {
  color: #9ad1ac;
}

.console-body {
  position: relative;
  padding: 1.15rem;
}

.console-command {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #07090b;
  color: #d8dde6;
  font-family: var(--mono);
  font-size: 0.73rem;
  white-space: nowrap;
}

.console-command span {
  margin-right: 0.55rem;
  color: var(--accent);
}

.console-result {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 1px 0 1rem;
  background: var(--line);
}

.console-result div {
  padding: 0.8rem;
  background: #0c0e11;
}

.console-result dt,
.console-result dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.console-result dt {
  color: #7f8895;
}

.console-result dd {
  margin-top: 0.25rem;
  color: #dce1e8;
}

.console-envelope {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1fr;
  gap: 0.55rem 1rem;
  padding: 1rem;
  border-left: 2px solid var(--accent);
  background: rgb(var(--ssx-accent-rgb) / 0.055);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.console-envelope span {
  color: #8d96a3;
}

.console-envelope strong {
  color: var(--text);
  font-weight: 500;
}

.console-note {
  position: relative;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: #828b97;
  font-size: 0.72rem;
  line-height: 1.6;
}

.release-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgb(9 11 14 / 0.82);
}

.release-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.release-strip span {
  padding: 1.1rem 1.25rem;
  border-left: 1px solid var(--line);
  color: #8f98a5;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
}

.release-strip span:last-child {
  border-right: 1px solid var(--line);
}

.release-strip strong {
  color: var(--text);
}

.tooling-section,
.mcp-tool-section,
.hardware-product-section,
.limits-section {
  position: relative;
  padding: clamp(5.2rem, 9vw, 8.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.7fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-intro h2,
.mcp-tool-intro h2,
.hardware-product-copy h2,
.limits-layout h2 {
  max-width: 13ch;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(2.9rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-intro > p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--line);
}

.surface-card {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.025), transparent 48%),
    var(--ssx-surface-1);
}

.surface-card-wide {
  grid-row: span 2;
  min-height: 44rem;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 25% 20%, rgb(var(--ssx-accent-rgb) / 0.09), transparent 20rem),
    linear-gradient(145deg, rgb(255 255 255 / 0.025), transparent 48%),
    #0b0d10;
}

.surface-card-accent {
  background:
    linear-gradient(145deg, rgb(var(--ssx-accent-rgb) / 0.12), transparent 62%),
    var(--ssx-surface-1);
}

.surface-index {
  margin-bottom: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.surface-card h3 {
  max-width: 17ch;
  margin: 2.6rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.surface-card p {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.surface-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.surface-card pre {
  max-width: 100%;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #07090b;
}

.surface-card pre code {
  display: grid;
  gap: 0.4rem;
  overflow-x: auto;
  color: #d5dbe4;
  font-size: 0.72rem;
}

.surface-command {
  width: fit-content;
  margin: 0 0 1.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgb(var(--ssx-accent-rgb) / 0.25);
  background: rgb(var(--ssx-accent-rgb) / 0.06);
  color: var(--accent);
  font-size: 0.76rem;
}

.mcp-tool-section {
  background:
    linear-gradient(90deg, #0a0c0f 0 43%, #0d1014 43% 100%);
}

.mcp-tool-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.75fr) minmax(34rem, 1.25fr);
  gap: clamp(4rem, 8vw, 8rem);
  align-items: start;
}

.mcp-tool-intro {
  position: sticky;
  top: 8rem;
}

.mcp-tool-intro h2 {
  max-width: 12ch;
}

.mcp-tool-intro > p {
  max-width: 32rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.tool-ledger > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.25rem;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, transform 180ms ease;
}

.tool-ledger > div:nth-child(2n) {
  border-right: 0;
}

.tool-ledger > div:hover {
  background: rgb(var(--ssx-accent-rgb) / 0.055);
  transform: translateX(3px);
}

.tool-ledger code {
  color: var(--text);
  font-size: 0.78rem;
}

.tool-ledger span {
  color: #7e8794;
  font-size: 0.78rem;
}

.hardware-product-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 47%, rgb(77 168 201 / 0.09), transparent 27rem),
    radial-gradient(circle at 70% 60%, rgb(var(--ssx-accent-rgb) / 0.08), transparent 31rem);
}

.hardware-product-grid {
  display: grid;
  grid-template-columns: minmax(27rem, 1.05fr) minmax(25rem, 0.95fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.hardware-product-visual {
  position: relative;
  margin: 0;
}

.hardware-product-visual::before,
.hardware-product-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  pointer-events: none;
}

.hardware-product-visual::before {
  top: 1rem;
  left: 1rem;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.hardware-product-visual::after {
  right: 1rem;
  bottom: 3.4rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.hardware-product-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 35px 90px rgb(0 0 0 / 0.5);
}

.hardware-product-visual figcaption {
  margin-top: 0.75rem;
  color: #79828e;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.hardware-product-copy > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.hardware-spec-list {
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}

.hardware-spec-list > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.hardware-spec-list span {
  color: #7f8895;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hardware-spec-list code,
.hardware-spec-list strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
}

.limits-section {
  padding-block: clamp(4.2rem, 7vw, 6.5rem);
  background: #090b0e;
}

.limits-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.limits-layout h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
}

.limits-copy {
  border-top: 1px solid var(--line);
}

.limits-copy p {
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.limits-copy strong {
  color: var(--text);
}

.site-footer {
  background: #07080a;
  border-color: var(--line);
}

.footer-grid {
  max-width: 1340px;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-tagline {
  max-width: 32rem;
  color: #8c95a2;
}

.site-footer h2 {
  color: var(--accent);
  font-size: 0.66rem;
}

.site-footer a {
  color: #aeb5c0;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 1040px) {
  .hero-workbench-grid,
  .mcp-tool-layout,
  .hardware-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-tool-layout > * {
    min-width: 0;
  }

  .hero-workbench-grid {
    gap: 4rem;
  }

  .hero-workbench h1 {
    max-width: 11ch;
  }

  .verification-console {
    max-width: 46rem;
    transform: none;
  }

  .mcp-tool-section {
    background: #0b0d10;
  }

  .mcp-tool-intro {
    position: static;
  }

  .hardware-product-visual {
    max-width: 42rem;
  }
}

@media (max-width: 760px) {
  .hero-workbench {
    padding-top: 3.8rem;
  }

  .hero-workbench h1 {
    font-size: clamp(3.45rem, 17vw, 5.2rem);
  }

  .hero-workbench-grid {
    padding-bottom: 3.6rem;
  }

  .hero-workbench .hero-actions {
    flex-direction: column;
  }

  .hero-workbench .install-copy {
    flex-basis: auto;
  }

  .release-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .release-strip span {
    border-bottom: 1px solid var(--line);
  }

  .release-strip span:last-child {
    grid-column: auto;
  }

  .section-intro,
  .limits-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .surface-grid {
    grid-template-columns: 1fr;
  }

  .surface-card,
  .surface-card-wide {
    grid-row: auto;
    min-height: 21rem;
  }

  .tool-ledger {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .tool-ledger > div,
  .tool-ledger > div:nth-child(2n) {
    min-height: 5rem;
    padding: 1rem;
  }

  .tool-ledger code {
    overflow-wrap: anywhere;
  }

  .console-result {
    grid-template-columns: repeat(2, 1fr);
  }

  .hardware-product-grid {
    gap: 3.5rem;
  }

  .hardware-product-visual {
    order: 2;
  }
}

@media (max-width: 470px) {
  .hero-workbench h1 {
    font-size: clamp(3.1rem, 16vw, 4.2rem);
  }

  .hero-link-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hardware-spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 350px) {
  .tool-ledger > div {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .surface-card,
  .tool-ledger > div,
  .button {
    transition: none;
  }

  .verification-console {
    transform: none;
  }
}

/* Clarity pass: one promise above the fold, then proof and three workflows. */
.page-home .hero-workbench {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.page-home .hero-workbench::before {
  opacity: 0.45;
}

.page-home .hero-workbench::after {
  opacity: 0.45;
}

.page-home .hero-workbench-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(31rem, 67vh, 44rem);
  align-items: center;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-home .hero-copy {
  max-width: 60rem;
}

.page-home .hero-workbench h1 {
  max-width: 11ch;
}

.page-home .hero-workbench .hero-lead {
  max-width: 48rem;
}

.page-home .hero-workbench .hero-actions {
  align-items: center;
}

.proof-section {
  background: linear-gradient(90deg, #0a0c0f 0 42%, #0d1014 42% 100%);
}

.proof-section .mcp-tool-intro {
  position: static;
}

.proof-section .install-copy {
  display: flex;
  min-height: 48px;
  max-width: 32rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #07090b;
}

.proof-section .install-cmd {
  overflow-x: auto;
  padding: 0.8rem 1rem;
  color: var(--text);
  white-space: nowrap;
}

.proof-section .install-copy-btn {
  align-self: stretch;
}

.page-home .surface-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-home .surface-card,
.page-home .surface-card-wide {
  grid-row: auto;
  min-height: 25rem;
  justify-content: flex-start;
}

.page-home .surface-card a {
  margin-top: auto;
}

@media (max-width: 900px) {
  .page-home .hero-workbench {
    padding-top: 3.25rem;
  }

  .page-home .hero-workbench-grid {
    min-height: 0;
    padding-bottom: 3.25rem;
  }

  .page-home .surface-grid {
    grid-template-columns: 1fr;
  }

  .page-home .surface-card,
  .page-home .surface-card-wide {
    min-height: 20rem;
  }

  .proof-section {
    background: #0b0d10;
  }
}
