:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --paper-strong: #fffef9;
  --ink: #15191c;
  --muted: #5d6468;
  --line: #c7c9c5;
  --blue: #2155f5;
  --blue-dark: #1539a7;
  --lime: #c8f35f;
  --orange: #ff6b35;
  --red: #d73333;
  --radius: 22px;
  --shadow: 0 18px 50px rgb(21 25 28 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgb(21 25 28 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 25 28 / 4%) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  width: min(1320px, calc(100% - 48px));
  min-height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  display: block;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--blue);
}

.status-chip {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 254 249 / 76%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9a52b;
  box-shadow: 0 0 0 4px rgb(217 165 43 / 15%);
}

.status-chip[data-state="ready"] i {
  background: #34a853;
  box-shadow: 0 0 0 4px rgb(52 168 83 / 15%);
}

.status-chip[data-state="offline"] i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(215 51 51 / 15%);
}

.hero {
  min-height: 680px;
  padding-block: 98px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 72px;
  align-items: center;
}

.overline {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.overline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin: 0 10px 3px 0;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.integration h2,
.discovery h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 7.2vw, 96px);
}

.hero h1 em {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: #444b4f;
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  min-height: 48px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: rgb(255 254 249 / 72%);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  color: #f6f7f5;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--lime);
}

.panel-label {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.panel-label span {
  color: var(--lime);
}

.trace {
  height: 112px;
  margin: 34px -24px 24px;
  padding-inline: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-block: 1px solid #343b3f;
  background: linear-gradient(90deg, rgb(33 85 245 / 9%), rgb(200 243 95 / 5%));
}

.trace i {
  width: 100%;
  height: var(--height, 18%);
  min-height: 4px;
  border-radius: 3px;
  background: #687177;
}

.trace i:nth-child(2) { --height: 35%; }
.trace i:nth-child(3) { --height: 22%; }
.trace i:nth-child(4) { --height: 80%; background: var(--orange); }
.trace i:nth-child(5) { --height: 42%; }
.trace i:nth-child(6) { --height: 28%; }
.trace i:nth-child(7) { --height: 16%; }
.trace i:nth-child(8) { --height: 93%; background: var(--lime); }
.trace i:nth-child(9) { --height: 38%; }
.trace i:nth-child(10) { --height: 26%; }
.trace i:nth-child(11) { --height: 54%; }
.trace i:nth-child(12) { --height: 19%; }

.focus-event {
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: #23292d;
}

.focus-event span,
.focus-event small {
  display: block;
  color: #9ca5aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.focus-event strong {
  display: block;
  margin-block: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.panel-metrics {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel-metrics b,
.panel-metrics span {
  display: block;
}

.panel-metrics b {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.panel-metrics span {
  margin-top: 5px;
  color: #aab1b5;
  font-size: 11px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: white;
  border-block: 1px solid #0e1012;
  background: var(--ink);
}

.facts div {
  min-height: 96px;
  padding: 22px 5vw;
  border-right: 1px solid #3c4347;
}

.facts div:last-child {
  border: 0;
}

.facts span,
.facts strong {
  display: block;
}

.facts span {
  color: #939da2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .1em;
}

.facts strong {
  margin-top: 7px;
  font-size: 15px;
}

.quote-section,
.method,
.discovery {
  padding-block: 112px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

.section-heading h2,
.discovery h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.input-side {
  padding: 28px;
  border-right: 1px solid var(--ink);
}

.field-top {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-top label,
.quote-side label {
  font-size: 13px;
  font-weight: 800;
}

.text-button {
  padding: 0;
  color: var(--blue);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 330px;
  padding: 20px;
  resize: vertical;
  color: #e8ecee;
  border: 0;
  border-radius: 12px;
  outline: 2px solid transparent;
  background: #171c1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

textarea:focus {
  outline-color: var(--blue);
}

.local-metrics {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.local-metrics b {
  color: var(--ink);
}

.quote-side {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.quote-title {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.quote-title span,
.quote-title strong {
  display: block;
}

.quote-title span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .1em;
}

.quote-title strong {
  margin-top: 8px;
  color: var(--blue);
  font-size: 39px;
  letter-spacing: -.05em;
}

.formula {
  margin: 18px 0 28px;
  padding: 13px;
  border-radius: 8px;
  background: #e9e9e4;
}

.formula code,
.formula span {
  display: block;
  font-size: 11px;
}

.formula span {
  margin-top: 4px;
  color: var(--muted);
}

.money-input {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.money-input span {
  text-align: center;
  border-right: 1px solid var(--line);
}

.money-input input {
  min-width: 0;
  padding: 11px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quote-side small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.quote-button {
  width: 100%;
  margin-top: 24px;
}

.quote-button:disabled {
  cursor: wait;
  opacity: .65;
}

.quote-result {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eeeee9;
}

.quote-result span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.quote-result p {
  margin: 6px 0 0;
  color: #4f575b;
  font-size: 12px;
}

.quote-result[data-kind="ok"] {
  border-color: #7da128;
  background: #f0f8da;
}

.quote-result[data-kind="ok"] span {
  color: #527116;
}

.quote-result[data-kind="error"] {
  border-color: #d97979;
  background: #fff0ef;
}

.quote-result[data-kind="error"] span {
  color: var(--red);
}

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

.section-heading.compact {
  max-width: 920px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--ink);
}

.method-grid article {
  padding: 30px 24px 34px;
  border-right: 1px solid var(--ink);
}

.method-grid article:last-child {
  border: 0;
}

.method-grid span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.method-grid h3 {
  margin: 44px 0 12px;
  font-size: 20px;
}

.method-grid p,
.honesty-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.honesty-note {
  margin-top: 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 36px;
  border-radius: 12px;
  background: var(--lime);
}

.integration {
  padding-block: 110px;
  color: white;
  background: var(--blue);
}

.integration-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.overline.light {
  color: var(--lime);
}

.integration h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.integration ol {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.integration li {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
}

.integration li span {
  color: #cdd7ff;
  font-size: 13px;
}

.code-window {
  overflow: hidden;
  border: 1px solid #0b1e66;
  border-radius: 14px;
  background: #101524;
  box-shadow: 12px 12px 0 var(--lime);
}

.code-top {
  min-height: 48px;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #34394a;
  background: #1b2132;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.code-top button {
  color: var(--lime);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

pre {
  margin: 0;
  overflow: auto;
}

.code-window pre {
  padding: 28px;
  color: #e9edff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.discovery {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.resource-list {
  border-top: 1px solid var(--ink);
}

.resource-list a {
  padding: 19px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.resource-list a:hover,
.resource-list a:focus-visible {
  color: var(--blue);
}

.resource-list b,
.resource-list small {
  display: block;
}

.resource-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.resource-list i {
  font-size: 20px;
  font-style: normal;
}

footer {
  min-height: 130px;
  padding: 34px max(24px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  color: #e8ecee;
  background: var(--ink);
}

footer .brand {
  color: white;
}

footer p {
  color: #929ba0;
  font-size: 12px;
}

footer nav {
  justify-self: end;
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  padding: 12px 16px;
  color: white;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 76px;
  }

  .signal-panel {
    min-height: auto;
  }

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

  .facts div:nth-child(2) {
    border-right: 0;
  }

  .facts div:nth-child(-n+2) {
    border-bottom: 1px solid #3c4347;
  }

  .workbench,
  .integration-grid,
  .discovery {
    grid-template-columns: 1fr;
  }

  .input-side {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

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

  .method-grid article:nth-child(2) {
    border-right: 0;
  }

  .method-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--ink);
  }

  .integration-grid {
    gap: 48px;
  }

  .discovery {
    gap: 42px;
  }
}

@media (max-width: 620px) {
  .shell,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    font-size: 16px;
  }

  .status-chip {
    padding: 7px 9px;
  }

  .hero {
    min-height: 0;
    padding-block: 62px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .lede {
    font-size: 17px;
  }

  .signal-panel {
    padding: 19px;
    box-shadow: 7px 7px 0 var(--lime);
  }

  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .facts div {
    min-height: 82px;
    padding: 18px;
  }

  .quote-section,
  .method,
  .discovery {
    padding-block: 76px;
  }

  .section-heading h2,
  .integration h2,
  .discovery h2 {
    font-size: 42px;
  }

  .input-side,
  .quote-side {
    padding: 20px;
  }

  textarea {
    min-height: 290px;
    font-size: 11px;
  }

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

  .method-grid article,
  .method-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .method-grid article:last-child {
    border-bottom: 0;
  }

  .method-grid h3 {
    margin-top: 20px;
  }

  .honesty-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .integration {
    padding-block: 76px;
  }

  .integration li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .code-window {
    box-shadow: 7px 7px 0 var(--lime);
  }

  .code-window pre {
    padding: 20px;
    font-size: 10px;
  }

  footer {
    padding: 34px 20px;
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
