:root {
  --bg: #131b28;
  --bg-lift: #16212f;
  --panel: #284357;
  --card: #265e77;
  --interactive: #267591;
  --accent: #2ebbcc;
  --text: #eef5fb;
  --muted: #8ba4b6;
  --faint: #5d7587;
  --line: rgba(139, 164, 182, 0.14);
  --line-2: rgba(139, 164, 182, 0.24);
  --grid: rgba(139, 164, 182, 0.045);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --maxw: 1140px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(46, 187, 204, 0.26);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 34px;
}
section {
  position: relative;
}

/* fading hairline divider — the "blendy" mesh between layers */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-2) 18%,
    var(--line-2) 82%,
    transparent
  );
}

/* ---- type ---- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2.title {
  font-size: clamp(27px, 3.6vw, 39px);
  line-height: 1.1;
}
.lede {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.66;
  max-width: 560px;
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .tk {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}
/* section label like a blueprint coordinate */
.coord {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 1px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.coord b {
  color: var(--muted);
  font-weight: 500;
}
.coord .ln {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.12s;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: #08131a;
  font-weight: 600;
}
.btn-accent:hover {
  background: #46c9d8;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--interactive);
  color: #fff;
}
.btn-sm {
  padding: 9px 15px;
  font-size: 13.5px;
}

/* ---- nav ---- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(15, 21, 32, 0.88) 0%,
    rgba(15, 21, 32, 0.42) 58%,
    transparent 100%
  );
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 64%, transparent 100%);
  transition: background 0.3s;
}
nav.top.scrolled {
  background: linear-gradient(
    180deg,
    rgba(13, 19, 29, 0.95) 0%,
    rgba(13, 19, 29, 0.5) 58%,
    transparent 100%
  );
}
nav.top .wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 66px;
  padding-bottom: 6px;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
nav .brand img {
  height: 26px;
  width: auto;
}
nav .navlinks {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}
nav .navlinks a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.15s;
}
nav .navlinks a:hover {
  color: var(--text);
}
nav .nav-cta {
  margin-left: auto;
}

/* ---- hero ---- */
.hero {
  padding: 84px 0 78px;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 .sub2 {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.hero .lede {
  margin: 22px 0 0;
  font-size: 17.5px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero .meta {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.hero .meta b {
  color: var(--faint);
  font-weight: 400;
}

/* ---- terminal ---- */
.terminal {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(10, 15, 23, 0.66);
  overflow: hidden;
}
.terminal .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 30, 43, 0.6);
}
.terminal .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d3e4f;
  display: block;
}
.terminal .bar .name {
  margin-left: 9px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.terminal .bar .live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal .bar .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.terminal .body {
  padding: 16px 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.95;
  min-height: 252px;
  white-space: pre-wrap;
}
.term-line {
  min-height: 1.95em;
}
.c-prompt {
  color: var(--accent);
}
.c-dim {
  color: var(--faint);
}
.c-ok {
  color: #5fcf9e;
}
.c-key {
  color: #d9c98a;
}
.c-path {
  color: #7cbfe0;
}
.c-check {
  color: #5fcf9e;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(95, 207, 158, 0.5);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- bands ---- */
.band {
  padding: 84px 0;
}
.band-lift {
  background: linear-gradient(
    180deg,
    rgba(40, 67, 87, 0),
    rgba(40, 67, 87, 0.1) 30%,
    rgba(40, 67, 87, 0.1) 70%,
    rgba(40, 67, 87, 0)
  );
}
.sec-head {
  max-width: 660px;
}
.sec-head .lede {
  margin-top: 14px;
}

/* ---- MCP handshake diagram ---- */
.handshake {
  margin-top: 34px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(40, 67, 87, 0.14),
    rgba(40, 67, 87, 0.05)
  );
  padding: 30px 30px 26px;
  position: relative;
}
.hs-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1.7fr minmax(150px, 1fr);
  gap: 22px;
  align-items: center;
}
.hs-node {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(10, 15, 23, 0.5);
  padding: 16px 16px 15px;
  position: relative;
}
.hs-node .corner {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  opacity: 0.55;
}
.hs-node .corner.tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.hs-node .corner.br {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}
.hs-node .role {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.5px;
}
.hs-node .nm {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  margin: 3px 0 0;
}
.hs-node.you .nm {
  color: var(--text);
}
.hs-node.lum .nm {
  color: var(--accent);
}
.hs-node .det {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}

.channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chan {
  position: relative;
}
.chan .clabel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 7px;
  white-space: nowrap;
}
.chan .clabel span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.chan .clabel .dir {
  color: var(--faint);
  flex: none;
}
.chan .wire {
  height: 2px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
    90deg,
    var(--line-2) 0 6px,
    transparent 6px 12px
  );
  background-size: 12px 2px;
}
.packet {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 8px rgba(46, 187, 204, 0.6);
}
.pkt-fwd {
  animation: travelF 2.6s linear infinite;
}
.pkt-rev {
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: travelR 2.6s linear infinite;
  animation-delay: 1.3s;
}
@keyframes travelF {
  0% {
    left: -24px;
  }
  100% {
    left: 100%;
  }
}
@keyframes travelR {
  0% {
    left: 100%;
  }
  100% {
    left: -24px;
  }
}

/* steps under diagram, monospace */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.step {
  background: rgba(19, 27, 40, 0.6);
  padding: 18px 18px 18px;
}
.step .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
}
.step h4 {
  font-size: 15px;
  margin: 9px 0 6px;
}
.step p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- monospace datasheet table ---- */
.sheet {
  margin-top: 26px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(10, 15, 23, 0.4);
}
.sheet .shead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 30, 43, 0.55);
}
.sheet .shead .nm {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.sheet .shead .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}
table.data thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 12.5px;
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data tbody tr {
  transition: background 0.15s;
}
table.data tbody tr:hover {
  background: rgba(40, 67, 87, 0.18);
}
table.data .k {
  color: var(--accent);
  white-space: nowrap;
}
table.data .nm2 {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
}
table.data .d {
  color: var(--muted);
}
table.data .v {
  color: var(--text);
}
table.data .idx {
  color: var(--faint);
  width: 1%;
  white-space: nowrap;
}

/* ---- In-App AI ---- */
.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}
.provider {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(10, 15, 23, 0.5);
  gap: 2px;
  margin-bottom: 20px;
}
.provider button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 7px;
  transition: 0.16s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.provider button .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.provider button.active {
  background: rgba(38, 117, 145, 0.4);
  color: var(--text);
}
.provider button.active .d {
  background: var(--accent);
  opacity: 1;
}

.chat {
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(10, 15, 23, 0.5);
  overflow: hidden;
}
.chat .chead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 30, 43, 0.5);
}
.chat .chead .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.chat .chead .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.chat .chead .ctx {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}
.chat .chead .ctx b {
  color: var(--accent);
  font-weight: 400;
}
.chat .cbody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.msg-user {
  align-self: flex-end;
  max-width: 82%;
  background: rgba(38, 117, 145, 0.34);
  padding: 9px 13px;
  border-radius: 11px 11px 2px 11px;
  font-size: 13px;
}
.msg-ai {
  max-width: 94%;
  background: rgba(40, 67, 87, 0.26);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 11px 11px 11px 2px;
  font-size: 13px;
  line-height: 1.62;
}
.msg-ai .ref {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border-bottom: 1px dotted rgba(46, 187, 204, 0.5);
}
.msg-ai ul {
  margin: 8px 0 0;
  padding-left: 17px;
  color: var(--muted);
}
.msg-ai li {
  margin: 3px 0;
}
.msg-ai li b {
  color: var(--text);
  font-weight: 500;
}
.msg-cta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.msg-cta .chip {
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ---- stack tags ---- */
.stack-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.stack-row .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ---- form ---- */
.form-band {
  padding: 88px 0 84px;
}
.form-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.form-shell {
  margin-top: 30px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: linear-gradient(
    180deg,
    rgba(40, 67, 87, 0.14),
    rgba(40, 67, 87, 0.04)
  );
  overflow: hidden;
  text-align: left;
}
.form-shell .fhead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 30, 43, 0.5);
}
.form-shell .fhead .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.form-shell .fhead .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.form-fields {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.field label .opt {
  color: var(--faint);
}
.field input,
.field textarea {
  background: rgba(38, 94, 119, 0.32);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    background 0.16s;
  width: 100%;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(139, 164, 182, 0.5);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 187, 204, 0.18);
  background: rgba(38, 94, 119, 0.45);
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}
.form-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 15px;
  text-align: center;
}
.form-ok {
  display: none;
  margin: 22px;
  padding: 16px;
  border: 1px solid rgba(46, 187, 204, 0.4);
  border-radius: 10px;
  background: rgba(46, 187, 204, 0.07);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.form-ok.show {
  display: block;
}

/* ---- footer / status bar ---- */
footer {
  margin-top: 0;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.statusbar .seg {
  display: flex;
  align-items: center;
  gap: 7px;
}
.statusbar .seg .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.statusbar .right {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.statusbar a:hover {
  color: var(--muted);
}
.footmain {
  padding: 34px 0 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footmain .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.footmain .brand img {
  height: 22px;
}
.footmain .mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.footmain .footlinks {
  flex-basis: 100%;
  display: flex;
  gap: 28px;
  margin-top: 14px;
}
.footmain .footlinks a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.footmain .footlinks a:hover {
  color: var(--accent);
}

/* ---- reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .packet {
    display: none;
  }
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .hs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
  nav .navlinks {
    display: none;
  }
  .band {
    padding: 60px 0;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
  table.data .d {
    font-size: 12px;
  }
}
