:root {
  --bg: #090a0c;
  --panel: #101318;
  --panel-2: #141820;
  --line: #292e37;
  --ink: #f1f1ed;
  --muted: #a6a9b0;
  --quiet: #747984;
  --cyan: #85d8ff;
  --violet: #a99bff;
  --green: #7ce3b1;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 5%, rgba(133, 216, 255, 0.055), transparent 28rem),
    var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  color: #050608;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar,
main,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.topbar {
  min-height: 5.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  width: fit-content;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.brand-product {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.topbar nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.topbar nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.87rem;
}

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

.live-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0.8rem rgba(124, 227, 177, 0.65);
}

.hero {
  min-height: 44rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  padding-block: 6rem;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 7.5vw, 7.6rem);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero-lede {
  max-width: 43rem;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.button.primary {
  color: #07080a;
  background: var(--ink);
  border-color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--muted);
}

.hero-proof {
  border-top: 1px solid var(--line);
}

.proof-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.proof-row span {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.proof-row strong {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.proof-status {
  margin: 1.15rem 0 0;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.section {
  padding-block: 8rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 10vw, 10rem);
  margin-bottom: 4.5rem;
  align-items: end;
}

.section-heading h2,
.boundary h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p,
.boundary > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intent-discovery {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.intent-intro {
  position: sticky;
  top: 2rem;
}

.intent-intro h2 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 1;
}

.intent-intro > p:last-child {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

.intent-console {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
}

.intent-form {
  display: grid;
  gap: 0.75rem;
}

.intent-form label {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intent-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.intent-input-row input,
.intent-input-row button {
  min-height: 3.6rem;
  border-radius: 0;
}

.intent-input-row input {
  min-width: 0;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  font: inherit;
}

.intent-input-row button {
  padding: 0 1.4rem;
  color: #07080a;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.intent-input-row input:focus-visible,
.intent-input-row button:focus-visible,
.intent-suggestions button:focus-visible,
.intent-command button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.intent-input-row button:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.intent-form[aria-busy="true"] .intent-input-row button {
  color: var(--muted);
  background: var(--panel-2);
  border-color: var(--line);
  cursor: wait;
}

.intent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.intent-suggestions button {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  cursor: pointer;
}

.intent-suggestions button:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.intent-status {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.intent-results {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.intent-result {
  padding: 1.25rem;
  background: #0b0d11;
  border: 1px solid var(--line);
}

.intent-result-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: start;
}

.intent-result-heading span {
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intent-result-heading h3 {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  font-weight: 550;
}

.intent-result-heading a {
  text-decoration: none;
}

.intent-result-heading a:hover,
.intent-result-heading a:focus-visible {
  color: var(--cyan);
}

.intent-result-heading strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 500;
}

.intent-result > p {
  margin: 0.8rem 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  line-height: 1.5;
}

.intent-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.intent-command code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.intent-command button {
  min-height: 2.45rem;
  padding: 0 0.8rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  cursor: pointer;
}

.intent-command button:hover {
  border-color: var(--cyan);
}

.intent-empty-link {
  width: fit-content;
  color: var(--cyan);
  font-size: 0.82rem;
  text-underline-offset: 0.35em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-card {
  min-height: 29rem;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.2rem;
  border-right: 1px solid var(--line);
}

.product-card:last-child {
  border-right: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.product-card h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 500;
}

.price {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
}

.price span {
  color: var(--quiet);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card > p:not(.price) {
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.65;
}

.product-card code {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.product-card > a {
  margin-top: 1.5rem;
  color: var(--ink);
  text-decoration-color: var(--quiet);
  text-underline-offset: 0.35em;
  font-size: 0.82rem;
}

.entry-strip {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(18rem, 1.2fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.6rem 2rem;
  background: color-mix(in srgb, var(--cyan) 7%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
}

.entry-strip h3,
.entry-strip p {
  margin: 0;
}

.entry-strip h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 480;
  letter-spacing: -0.035em;
}

.entry-strip > p {
  color: var(--muted);
  line-height: 1.6;
}

.entry-strip strong,
.entry-strip > a {
  color: var(--cyan);
}

.entry-strip > a {
  white-space: nowrap;
  text-underline-offset: 0.35em;
}

.portfolio-shell {
  margin-top: 5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.portfolio-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 450;
  letter-spacing: -0.04em;
}

.search-label {
  width: min(100%, 22rem);
  display: grid;
  gap: 0.55rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-label input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.search-label input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.line-card {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.line-card + .line-card {
  padding-left: 1.25rem;
}

.line-card:last-child {
  border-right: 0;
}

.line-card span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem;
}

.line-card h4 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 550;
}

.line-card p,
.loading-copy,
.noscript-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.catalog-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.catalog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
}

.catalog-item:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.catalog-item a {
  text-decoration: none;
}

.catalog-item a:hover,
.catalog-item a:focus-visible {
  color: var(--cyan);
}

.catalog-item small {
  display: block;
  margin-top: 0.25rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.catalog-item strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.flow-list li {
  min-height: 14rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.flow-list li:last-child {
  border-right: 0;
}

.flow-list li > span,
.evidence-grid article > span {
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.flow-list h3 {
  margin: 3.2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.flow-list p,
.evidence-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.command-panel {
  margin-top: 2rem;
  background: #060709;
  border: 1px solid var(--line);
}

.command-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.command-tab {
  min-height: 2.8rem;
  padding: 0 1rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  cursor: pointer;
}

.command-tab:hover,
.command-tab:focus-visible,
.command-tab.is-active {
  color: var(--ink);
  background: var(--panel-2);
}

.command-line {
  min-height: 5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.command-line code {
  overflow-wrap: anywhere;
  color: var(--cyan);
  line-height: 1.6;
}

.command-line button {
  min-width: 4.5rem;
  min-height: 2.6rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.command-line button:hover,
.command-line button:focus-visible {
  border-color: var(--cyan);
}

.evidence {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 5rem;
}

.evidence > div:first-child h2 {
  max-width: 8ch;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 430;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

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

.evidence-grid article {
  min-height: 15rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-grid article:nth-child(even) {
  border-right: 0;
}

.evidence-grid h3 {
  margin: 2.8rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.boundary {
  width: min(calc(100% - 3rem), var(--max));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 10vw, 10rem);
  align-items: end;
  margin: 0 auto 5rem;
  padding: 5rem;
  background: linear-gradient(130deg, rgba(133, 216, 255, 0.08), rgba(169, 155, 255, 0.05));
  border: 1px solid var(--line);
}

.boundary a {
  color: var(--ink);
  text-decoration-color: var(--violet);
  text-underline-offset: 0.25em;
}

footer {
  min-height: 11rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer > div {
  display: flex;
  gap: 1.5rem;
}

footer > p {
  grid-column: 1 / -1;
  margin: -2.5rem 0 0;
  color: var(--quiet);
  font-size: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero,
  .intent-discovery,
  .section-heading,
  .evidence,
  .boundary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 4rem;
    padding-block: 5rem;
  }

  .intent-intro {
    position: static;
  }

  .section {
    padding-block: 6rem;
  }

  .product-grid,
  .entry-strip,
  .line-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .line-card,
  .line-card + .line-card {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-meta {
    margin-bottom: 2.5rem;
  }

  .portfolio-heading {
    display: grid;
  }

  .search-label {
    width: 100%;
  }

  .catalog-results {
    grid-template-columns: 1fr;
  }

  .catalog-item,
  .catalog-item:nth-child(even) {
    padding: 1rem 0;
    border-left: 0;
  }

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

  .flow-list li:nth-child(2) {
    border-right: 0;
  }

  .flow-list li {
    border-bottom: 1px solid var(--line);
  }

  .boundary {
    padding: 3rem;
  }
}

@media (max-width: 560px) {
  .topbar,
  main,
  footer,
  .boundary {
    width: min(calc(100% - 2rem), var(--max));
  }

  .topbar {
    min-height: 4.8rem;
  }

  .live-pill {
    font-size: 0.58rem;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .section-heading h2,
  .boundary h2 {
    font-size: 2.7rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intent-input-row,
  .intent-command {
    grid-template-columns: 1fr;
  }

  .intent-command button {
    width: 100%;
  }

  .flow-list,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .flow-list li,
  .evidence-grid article {
    min-height: auto;
    padding: 1.5rem 0;
    border-right: 0;
  }

  .flow-list h3,
  .evidence-grid h3 {
    margin-top: 2rem;
  }

  .command-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .command-tab {
    border-bottom: 1px solid var(--line);
  }

  .command-line {
    align-items: stretch;
    flex-direction: column;
  }

  .boundary {
    padding: 2rem;
  }

  footer {
    display: flex;
    min-height: 14rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  footer > div {
    flex-wrap: wrap;
  }

  footer > p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
