/* TernaryWire — website. The family look of the Ternary sites (dark, Inter and JetBrains Mono,
   Phosphor icons, the 3 x 3 lattice), with TernaryWire's coral and its method colours.
   The live window in the hero is the app's own design (demo/, in an iframe). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url(fonts/jbm-400.woff2) format("woff2"); }
@font-face { font-family: "Phosphor"; font-display: block; src: url(fonts/phosphor.woff2) format("woff2"); }
@font-face { font-family: "PhosphorFill"; font-display: block; src: url(fonts/phosphor-fill.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #101010;
  --card: #141414;
  --card-2: #191919;
  --fg: #ededed;
  --fg-2: #a6a6a6;
  --fg-3: #737373;
  --fg-4: #4d4d4d;
  --hair: rgba(255,255,255,.07);
  --hair-2: rgba(255,255,255,.11);
  --hair-3: rgba(255,255,255,.18);
  --cream: #fff6ea;
  /* the app's dark palette */
  --accent: #f26748;
  --accent-h: #fa7d60;
  --accent-t: #ff9076;
  --ok: #4acd80;
  --warn: #f0b448;
  --err: #f86864;
  --info: #6ea0ff;
  --m-get: #4acd80; --m-post: #f6b846; --m-put: #64a0ff; --m-patch: #b48cfa; --m-delete: #f86864;
  --m-ws: #6eb4ff; --m-sio: #60cdcd; --m-mqtt: #b48cfa; --m-grpc: #ec64be; --m-gql: #ec64be;
  --m-mcp: #f6b846; --m-ai: #f07dc8; --m-soap: #60cdcd;
  --syn-key: #7aacff; --syn-str: #82cc8c; --syn-num: #f0b260; --syn-kw: #be96fa; --syn-com: #767882; --syn-punct: #92949e;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(242,103,72,.36); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-t); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-ligatures: none; font-size: .9em; }
.ic { font-family: "Phosphor"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.icf { font-family: "PhosphorFill"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }
.t2 { color: var(--fg-2); } .t3 { color: var(--fg-3); }
.sp { flex: 1; }
a.ul { color: var(--fg); text-decoration: underline; text-decoration-color: var(--hair-3); text-underline-offset: 3px; }
a.ul:hover { text-decoration-color: var(--fg-2); }

/* keys, as the app draws them */
kbd, .key {
  display: inline-flex; align-items: center; justify-content: center; gap: .15em;
  min-width: 1.7em; height: 1.55em; padding: 0 .4em; border-radius: .38em; vertical-align: .08em;
  font-family: var(--mono); font-size: .8em; font-weight: 400; line-height: 1; color: var(--fg);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 -1px 0 rgba(255,255,255,.04), 0 1px 0 rgba(0,0,0,.4);
  white-space: nowrap;
}
kbd + kbd { margin-left: .2em; }

/* the method badge, as in the sidebar and the tabs */
.m { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 5px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .02em; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent); }

/* ============================================================== nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(10,10,10,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--hair); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--fg-2); }
.nav-gh:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav-gh .ic { font-size: 16px; }
.nav .pb-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-gh span { display: none; } .nav-in { gap: 12px; } }

/* ============================================================== buttons */
.pb { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: transform .15s ease, background .2s, box-shadow .2s, color .2s; }
.pb .ic { font-size: 18px; }
.pb:active { transform: translateY(1px); }
.pb-pri { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.12), 0 10px 34px -10px rgba(242,103,72,.55); }
.pb-pri:hover { background: var(--accent-h); }
.pb-sec { color: var(--fg); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pb-sec:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-3); }

/* ============================================================== the lattice */
/* The icon's 3 x 3 points; lit ones run along its wire, from the bottom-left to the top-right. */
.field { position: absolute; inset: -64px 0 auto 0; height: 940px; z-index: -1; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.085) 1.1px, transparent 1.6px);
  background-size: 24px 24px; background-position: center 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, transparent 0 30%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, transparent 0 30%, #000 72%, transparent 100%); }
.glyph { position: absolute; width: 51px; height: 51px; }
.glyph b { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--c); opacity: .14; }
.glyph b:nth-child(1), .wire b:nth-child(1) { left: 0; top: 0; }
.glyph b:nth-child(2) { left: 24px; top: 0; } .glyph b:nth-child(3) { left: 48px; top: 0; }
.glyph b:nth-child(4) { left: 0; top: 24px; } .glyph b:nth-child(5) { left: 24px; top: 24px; } .glyph b:nth-child(6) { left: 48px; top: 24px; }
.glyph b:nth-child(7) { left: 0; top: 48px; } .glyph b:nth-child(8) { left: 24px; top: 48px; } .glyph b:nth-child(9) { left: 48px; top: 48px; }
.glyph b:nth-child(7), .glyph b:nth-child(4), .glyph b:nth-child(5), .glyph b:nth-child(6), .glyph b:nth-child(3) { animation: run 2.6s linear infinite; }
.glyph b:nth-child(4) { animation-delay: .25s; } .glyph b:nth-child(5) { animation-delay: .5s; }
.glyph b:nth-child(6) { animation-delay: .75s; } .glyph b:nth-child(3) { animation-delay: 1s; }
.glyph.still b { animation: none; opacity: .14; }
.glyph.still b:nth-child(7), .glyph.still b:nth-child(4), .glyph.still b:nth-child(6), .glyph.still b:nth-child(3) { opacity: .7; }
@keyframes run { 0% { opacity: 1; box-shadow: 0 0 12px 2px color-mix(in srgb, var(--c) 70%, transparent); } 40% { opacity: .14; box-shadow: none; } 100% { opacity: .14; } }
@media (prefers-reduced-motion: reduce) { .glyph b, .wire b { animation: none !important; } }

/* the small lattice in the release pill */
.wire { position: relative; width: 13px; height: 13px; flex: none; --c: var(--accent-t); }
.wire b { position: absolute; width: 2.6px; height: 2.6px; border-radius: 50%; background: var(--c); opacity: .22; }
.wire b:nth-child(2) { left: 5.2px; top: 0; } .wire b:nth-child(3) { left: 10.4px; top: 0; }
.wire b:nth-child(4) { left: 0; top: 5.2px; } .wire b:nth-child(5) { left: 5.2px; top: 5.2px; } .wire b:nth-child(6) { left: 10.4px; top: 5.2px; }
.wire b:nth-child(7) { left: 0; top: 10.4px; } .wire b:nth-child(8) { left: 5.2px; top: 10.4px; } .wire b:nth-child(9) { left: 10.4px; top: 10.4px; }
.wire b:nth-child(7), .wire b:nth-child(4), .wire b:nth-child(5), .wire b:nth-child(6), .wire b:nth-child(3) { animation: wire 2.2s linear infinite; }
.wire b:nth-child(4) { animation-delay: .2s; } .wire b:nth-child(5) { animation-delay: .4s; }
.wire b:nth-child(6) { animation-delay: .6s; } .wire b:nth-child(3) { animation-delay: .8s; }
@keyframes wire { 0% { opacity: 1; } 45%, 100% { opacity: .3; } }

/* ============================================================== hero */
.hero { position: relative; padding: 76px 0 0; isolation: isolate; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.announce { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13px; color: var(--fg-2);
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow .2s, color .2s; }
.announce:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-3); }
.announce b { font-weight: 500; color: var(--fg); }
.announce .sep { width: 1px; height: 14px; background: var(--hair-2); }
.announce .ic { font-size: 12px; }

h1 { margin: 28px 0 0; font-size: clamp(46px, 8.6vw, 104px); line-height: .96; font-weight: 600; letter-spacing: -.048em; text-wrap: balance; }
.lede { max-width: 660px; margin: 26px auto 0; font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.lede b { color: var(--fg); font-weight: 500; }
.cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.cta-note { margin: 16px 0 0; font-size: 13px; color: var(--fg-3); }
.cta-note a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--hair-3); text-underline-offset: 3px; }
.cta-note a:hover { color: var(--fg); }

/* the live window */
.demo { position: relative; margin: 72px auto 0; max-width: 1312px; padding: 0 var(--gut); }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 6px; font-size: 13px; color: var(--fg-3); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 500; white-space: nowrap; }
.live b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,205,128,.18); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(74,205,128,.06); } }
.demo-bar .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seg-mini { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair); flex: none; }
.seg-mini button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--fg-3); }
.seg-mini button .ic { font-size: 13px; }
.seg-mini button:hover { color: var(--fg); }
.seg-mini button[aria-pressed="true"] { background: #1f1f1f; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-2); }
.demo-reset { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; color: var(--fg-2); font-size: 13px; flex: none; }
.demo-reset:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.demo-frame { position: relative; border-radius: 14px; overflow: hidden; margin-top: 8px; background: #121316;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px -20px rgba(0,0,0,.9), 0 30px 90px -40px rgba(242,103,72,.28); }
.demo-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.scaler { position: relative; overflow: hidden; aspect-ratio: 1280 / 820; }
.scaler iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 820px; border: 0; transform-origin: 0 0; background: transparent; color-scheme: normal; }
.demo-frame noscript img { width: 100%; }
.no-js .scaler { display: none; }

.try { display: flex; align-items: center; gap: 12px; margin: 16px auto 0; padding: 8px 10px 8px 16px; width: fit-content; max-width: 100%; border-radius: 16px;
  background: rgba(22,22,22,.92); box-shadow: 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05), 0 18px 50px -10px rgba(0,0,0,.8); }
.try-l { font-size: 13px; color: var(--fg-3); flex: none; }
.try-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.try-row::-webkit-scrollbar { display: none; }
.try-row button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 7px; border-radius: 9px; font-size: 13px; color: var(--fg-2); white-space: nowrap; flex: none; transition: background .15s, color .15s; }
.try-row button .ic { font-size: 15px; width: 30px; text-align: center; color: var(--fg-3); }
.try-row button:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.try-row button[aria-pressed="true"] { background: #232323; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-2); }
.try-row .m { min-width: 30px; }
.demo-bar .hint kbd { font-size: 11px; height: 18px; }
@media (max-width: 760px) { .demo-bar .hint { display: none; } .try { width: 100%; padding-left: 12px; } .try-l { display: none; } }

/* ============================================================== sections */
section { position: relative; }
.sec { padding: 150px 0 0; }
@media (max-width: 760px) { .sec { padding-top: 96px; } }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-3); font-weight: 500; }
.eyebrow kbd { font-size: 12.5px; height: 24px; padding: 0 7px; color: var(--fg-2); }
.eyebrow .ic { font-size: 15px; }
h2 { margin: 18px 0 0; font-size: clamp(34px, 4.7vw, 58px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h2 .q { color: var(--fg-3); }
.sub { margin: 20px 0 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.sub b { color: var(--fg); font-weight: 500; }

/* the protocols strip */
.strip { padding: 88px 0 0; }
.strip-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.strip-t { font-size: 14px; color: var(--fg-3); text-align: center; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.pp { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 9px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--fg);
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--hair); }
.pp .m { min-width: 40px; height: 26px; font-size: 11px; border-radius: 7px; }

/* native: the numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hair); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.stat { padding: 34px 30px 32px; position: relative; }
.stat + .stat { box-shadow: -1px 0 0 var(--hair); }
.stat .n { font-family: var(--mono); font-size: clamp(40px, 4.6vw, 58px); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .42em; letter-spacing: -.01em; color: var(--fg-3); margin-left: .18em; }
.stat .l { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 230px; }
.stat .bar { height: 3px; margin-top: 22px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: var(--w); background: var(--c, var(--fg-3)); border-radius: inherit; transform-origin: 0 0; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.in .stat .bar i, .stats.in .bar i { transform: scaleX(1); }
.foot { margin-top: 16px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { box-shadow: 0 -1px 0 var(--hair); } .stat:nth-child(4) { box-shadow: -1px 0 0 var(--hair), 0 -1px 0 var(--hair); } }
@media (max-width: 520px) { .stat { padding: 26px 20px 24px; } .stat .l { font-size: 14px; } }

/* chapters */
.ch-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: end; }
.ch-body p { margin: 0; font-size: 17.5px; line-height: 1.62; color: var(--fg-2); text-wrap: pretty; }
.ch-body p b { color: var(--fg); font-weight: 500; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 11px; height: 11px; border-radius: 3px;
  background: radial-gradient(circle, var(--fg-3) 1.2px, transparent 1.5px) 0 0 / 5.5px 5.5px; opacity: .9; }
.facts li b { color: var(--fg); font-weight: 500; }
.shot { position: relative; margin: 56px 0 0; border-radius: 14px; background: #121316;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 50px 120px -40px rgba(0,0,0,.95); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: inherit; transition: opacity .25s; }
.shot img.swap { opacity: .35; }
.shot figcaption { position: absolute; right: 2px; top: calc(100% + 14px); display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.shot figcaption b { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,205,128,.15); }
@media (max-width: 900px) { .ch-head { grid-template-columns: 1fr; gap: 0; } .ch-body { margin-top: 22px; } .shot { margin-top: 40px; border-radius: 10px; } .shot figcaption { display: none; } }

/* callouts on a shot */
.pin { position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.pin i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: #111; font: 600 11.5px/22px var(--sans); font-style: normal; text-align: center;
  box-shadow: 0 0 0 4px rgba(255,246,234,.16), 0 6px 16px rgba(0,0,0,.5); cursor: default; }
.pin i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,246,234,.35); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin i::after { animation: none; } }
.pin span { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 250px; padding: 8px 11px; border-radius: 9px;
  font-size: 13px; line-height: 1.4; color: var(--fg); background: #232323; box-shadow: 0 0 0 1px var(--hair-2), 0 12px 30px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.pin span b { font-weight: 600; }
.pin.r span { left: auto; right: -8px; transform: translateY(4px); }
.pin:hover span, .pin:focus-within span { opacity: 1; transform: translateX(-50%); }
.pin.r:hover span, .pin.r:focus-within span { transform: none; }
.pins-legend { display: none; }
@media (max-width: 760px) {
  .pin { display: none; }
  .pins-legend { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fg-2); }
}

/* a shot with tabs */
.show { margin-top: 56px; }
.show .shot { margin-top: 14px; }
.show-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px var(--hair); }
.show-tabs::-webkit-scrollbar { display: none; }
.show-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--fg-3); white-space: nowrap; flex: none; transition: color .15s, background .15s; }
.show-tabs button .ic { font-size: 16px; }
.show-tabs button:hover { color: var(--fg); }
.show-tabs button[aria-selected="true"] { color: var(--fg); background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); }
.show-cap { margin: 18px 0 0; max-width: min(820px, calc(100% - 210px)); min-height: 3.2em; font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
.show-cap b { color: var(--fg); font-weight: 500; }
.show-cap code { font-family: var(--mono); font-size: .88em; color: var(--fg); }

/* postman: a script and its results */
.pm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 56px; align-items: start; }
.code-card, .res-card, .term, .yaml, .tree, .diff { border-radius: 14px; background: #121316; box-shadow: inset 0 0 0 1px var(--hair), 0 40px 100px -50px rgba(0,0,0,.9); overflow: hidden; }
.cc-h { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.cc-tab { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; color: var(--fg-3); }
.cc-tab.on { color: var(--fg); background: rgba(255,255,255,.05); }
.cc-n { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); padding-right: 8px; }
pre { margin: 0; font-family: var(--mono); font-variant-ligatures: none; }
.cc-b { padding: 16px 18px 18px 0; font-size: 13.5px; line-height: 1.75; color: #dedfe4; overflow-x: auto; }
.cc-b .ln, .diff .ln { display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: #4f5058; user-select: none; }
.cc-b .f { color: var(--syn-key); } .cc-b .s { color: var(--syn-str); } .cc-b .n { color: var(--syn-num); } .cc-b .k { color: var(--syn-kw); }
.cc-b .c { color: var(--syn-com); } .cc-b .p { color: var(--syn-punct); }
.pm-side { display: grid; gap: 16px; }
.rc-h { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-family: var(--mono); font-size: 12px; }
.pill.ok { color: var(--ok); background: rgba(74,205,128,.12); }
.rc-t { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; }
.rc-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; font-size: 14px; color: var(--fg); }
.rc-row + .rc-row { border-top: 1px solid var(--hair); }
.rc-row .icf { font-size: 16px; }
.ok { color: var(--ok); }
.tag { font-family: var(--mono); font-size: 10.5px; color: var(--ok); background: rgba(74,205,128,.1); padding: 3px 7px; border-radius: 5px; letter-spacing: .04em; }
.fmt { padding: 20px 4px 0; }
.fmt-t { font-size: 13px; color: var(--fg-3); }
.fmt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fmt-row span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (max-width: 900px) { .pm { grid-template-columns: 1fr; } }

/* runner + cli */
.cli { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 60px; align-items: start; }
.term-h { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.term-h .ic { font-size: 15px; }
.dots { display: inline-flex; gap: 6px; margin-right: 6px; }
.dots b { width: 10px; height: 10px; border-radius: 50%; background: #2c2d31; }
.term-b { padding: 16px 18px 18px; font-size: 12.5px; line-height: 1.58; color: #d4d4d8; overflow-x: auto; white-space: pre; }
.term-b .d { color: #6e6f78; } .term-b .g { color: var(--ok); } .term-b .r { color: var(--err); } .term-b .b { font-family: var(--sans); font-weight: 600; color: var(--fg); } .term-b .y { color: var(--warn); }
.cli-side { display: grid; gap: 16px; }
.cmds { padding: 6px 4px 0; }
.cmds-t { font-size: 13px; color: var(--fg-3); margin-bottom: 8px; }
.cmd-l { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--fg-2); }
.cmd-l .mono { flex: none; width: 76px; color: var(--fg); font-size: 13px; }
@media (max-width: 900px) { .cli { grid-template-columns: 1fr; } }

/* details bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 60px; }
.tile-c { position: relative; display: flex; flex-direction: column; min-height: 268px; padding: 26px; border-radius: 16px; background: linear-gradient(180deg, #121212, #0e0e0e); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.tile-c h3 { display: flex; align-items: center; gap: 9px; margin: auto 0 0; padding-top: 26px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.tile-c h3 .ic { font-size: 19px; color: var(--fg-3); }
.tile-c p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.tile-c p kbd { font-size: .78em; }
.tile-c p .mono { color: var(--fg); }
.vis { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 72px; }
.vis.wrapv { gap: 6px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile-c { min-height: 0; } }

/* little pieces of the app inside tiles */
.mini { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--fg); background: #1c1c1e; box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); white-space: nowrap; }
.mini.t2 { color: var(--fg-2); }
.mini .mono { font-size: 12px; }
.mini .t3 { color: var(--fg-3); }
.mini .var { color: var(--ok); background: rgba(74,205,128,.12); padding: 1px 4px; border-radius: 4px; }
.mini .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,205,128,.18); }
.mini .dot.rec { background: var(--err); box-shadow: 0 0 0 3px rgba(248,104,100,.18); animation: live 2s ease-in-out infinite; }
.mini .icf, .mini .ic { font-size: 15px; }
.mini .ok-t { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.mth { font-family: var(--mono); font-size: 11px; color: var(--c); }
.tag2 { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); background: #1c1c1e; box-shadow: inset 0 0 0 1px var(--hair-2); }
.pal { width: 100%; border-radius: 12px; background: #1c1c1e; box-shadow: inset 0 0 0 1px var(--hair-2), 0 14px 30px -10px rgba(0,0,0,.7); overflow: hidden; font-size: 13px; }
.pal-q { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--hair); color: var(--fg); }
.pal-q .ic { color: var(--fg-3); font-size: 15px; }
.pal-q .caret { width: 1.5px; height: 15px; background: var(--accent); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pal-r { display: flex; align-items: center; gap: 9px; height: 32px; margin: 4px; padding: 0 9px; border-radius: 7px; color: var(--fg-2); }
.pal-r.on { background: #2d2e34; color: var(--fg); }
.pal-r .k { margin-left: auto; font-family: var(--mono); font-size: 11px; opacity: .75; }
.pal-r .ic { font-size: 15px; }

/* git: the tree and a diff */
.git { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-top: 56px; align-items: stretch; }
.tree pre { padding: 20px 22px; font-size: 13px; line-height: 1.85; color: var(--fg); overflow-x: auto; }
.tree .d { color: var(--fg-3); }
.tree .hl { color: var(--warn); }
.diff-h { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--fg-2); overflow: hidden; }
.diff-h .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.diff-h .add { color: var(--ok); flex: none; } .diff-h .del { color: var(--err); flex: none; }
.diff-h .ic { font-size: 15px; color: var(--fg-3); flex: none; }
.diff pre { padding: 14px 18px 18px 0; font-size: 13px; line-height: 1.8; color: #c9cad1; overflow-x: auto; }
.diff pre .del:not(.ln) { display: inline-block; min-width: calc(100% - 44px); color: #ffb3ad; background: rgba(248,104,100,.12); }
.diff pre .add:not(.ln) { display: inline-block; min-width: calc(100% - 44px); color: #b6f0c8; background: rgba(74,205,128,.12); }
.diff pre .ln.del { color: var(--err); } .diff pre .ln.add { color: var(--ok); }
@media (max-width: 900px) { .git { grid-template-columns: 1fr; } }

/* keyboard */
.keys-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.seg-os { display: inline-flex; padding: 3px; gap: 3px; border-radius: 11px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); }
.seg-os button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--fg-3); }
.seg-os button[aria-pressed="true"] { background: #232323; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); }
.keygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 44px; }
.krow { display: flex; align-items: center; gap: 16px; min-height: 58px; border-top: 1px solid var(--hair); font-size: 15.5px; color: var(--fg-2); }
.krow .kk { margin-left: auto; display: flex; align-items: center; gap: 0; flex: none; }
.krow kbd { font-size: 13px; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 7px; }
.krow b { color: var(--fg); font-weight: 500; }
.keygrid .krow:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
.keys-note { margin-top: 20px; font-size: 14px; color: var(--fg-3); }
@media (max-width: 820px) { .keygrid { grid-template-columns: 1fr; } .keygrid .krow:nth-last-child(2) { border-bottom: 0; } }

/* private */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--hair); }
.trio > div { padding: 30px 32px 0 0; }
.trio > div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.trio h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.trio h3 .ic { font-size: 20px; color: var(--fg-3); }
.trio p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; border-top: 0; } .trio > div, .trio > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--hair); } }

/* install */
.inst { margin-top: 52px; border-radius: 18px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--hair), 0 40px 100px -50px rgba(0,0,0,.9); overflow: hidden; }
.tabs-os { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs-os::-webkit-scrollbar { display: none; }
.tabs-os button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--fg-3); white-space: nowrap; flex: none; }
.tabs-os button .ic { font-size: 18px; }
.tabs-os button:hover { color: var(--fg); }
.tabs-os button[aria-selected="true"] { color: var(--fg); background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); }
.tabs-os .ver { margin-left: auto; align-self: center; padding: 0 10px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.pane-os { padding: 34px 34px 36px; }
.pane-os[hidden] { display: none; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; }
.step + .step { margin-top: 30px; }
.step .no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair-2); margin-top: 1px; }
.step h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.5; }
.step h3 span { font-weight: 400; color: var(--fg-3); font-size: 14px; margin-left: 6px; }
.step p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 760px; }
.step p b { color: var(--fg); font-weight: 500; }
.step p .mono { color: var(--fg); }
.cmd { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 880px; height: 54px; padding: 0 8px 0 18px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); font-family: var(--mono); font-size: 14px; color: var(--fg); }
.cmd .ps { color: var(--fg-4); user-select: none; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-family: inherit; }
.cmd code::-webkit-scrollbar { display: none; }
.copy { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 9px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--fg-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); flex: none; }
.copy:hover { color: var(--fg); background: rgba(255,255,255,.07); }
.copy .ic { font-size: 15px; }
.copy.ok { color: var(--ok); }
.dls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dl-b { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); transition: background .15s, box-shadow .15s; }
.dl-b:hover { background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-3); }
.dl-b .ic { font-size: 20px; color: var(--fg-2); }
.dl-b .t { display: flex; flex-direction: column; line-height: 1.25; }
.dl-b .t b { font-size: 14.5px; font-weight: 600; }
.dl-b .t span { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.dl-b.hi { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.dl-b.hi:hover { background: var(--accent-h); }
.dl-b.hi .ic, .dl-b.hi .t span { color: rgba(255,255,255,.8); }
.note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; max-width: 880px; font-size: 14px; line-height: 1.55; color: var(--fg-2); background: rgba(240,180,72,.06); box-shadow: inset 0 0 0 1px rgba(240,180,72,.16); }
.note .icf { font-size: 16px; color: var(--warn); margin-top: 2px; flex: none; }
.note b { color: var(--fg); font-weight: 500; }
.linux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; max-width: 880px; }
.lx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); }
.lx .w { min-width: 0; flex: 1; }
.lx .w b { display: block; font-size: 14.5px; font-weight: 600; }
.lx .w span { display: block; font-size: 13px; color: var(--fg-3); }
.lx .arch { display: flex; gap: 6px; flex: none; }
.lx .arch a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.lx .arch a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.inst-f { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 16px 34px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--fg-3); }
.inst-f b { color: var(--fg-2); font-weight: 500; }
.inst-f a { color: var(--fg-2); }
.inst-f a:hover { color: var(--fg); }
@media (max-width: 700px) { .pane-os { padding: 26px 18px 28px; } .step { grid-template-columns: 1fr; } .step .no { margin-bottom: 10px; } .linux { grid-template-columns: 1fr; } .inst-f { padding: 16px 18px; } .cmd { font-size: 12.5px; padding-left: 14px; } }

/* faq */
.faq-l { margin-top: 48px; border-top: 1px solid var(--hair); }
.faq-l details { border-bottom: 1px solid var(--hair); }
.faq-l summary { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 500; letter-spacing: -.01em; }
.faq-l summary::-webkit-details-marker { display: none; }
.faq-l summary .ic { margin-left: auto; font-size: 16px; color: var(--fg-3); transition: transform .2s; flex: none; }
.faq-l details[open] summary .ic { transform: rotate(45deg); }
.faq-l .a { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 820px; }
.faq-l .a p { margin: 0; }
.faq-l .a p + p { margin-top: 10px; }
.faq-l .a b { color: var(--fg); font-weight: 500; }
.faq-l .a .mono { color: var(--fg); }
.faq-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-cols .faq-l { margin-top: 0; }
@media (max-width: 900px) { .faq-cols { grid-template-columns: 1fr; gap: 36px; } .faq-l .a { padding-right: 0; } }

/* final */
.final { position: relative; padding: 170px 0 150px; margin-top: 90px; text-align: center; isolation: isolate; overflow: hidden; }
.final .field { inset: 0; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0 22%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0 22%, #000 60%, transparent 100%); }
.final-icon { width: 76px; height: 76px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(242,103,72,.35)); }
.final h2 { margin-top: 34px; font-size: clamp(38px, 5.6vw, 68px); }
.final .cta { margin-top: 40px; }

/* footer */
.foot-site { padding: 56px 0 64px; border-top: 1px solid var(--hair); }
.foot-g { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 40px; }
.foot-g .brand img { width: 22px; height: 22px; }
.foot-g p { margin: 14px 0 0; max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--fg-3); }
.foot-g p.tm { font-size: 12.5px; color: var(--fg-4); }
.foot-g h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.foot-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--fg-3); }
.foot-g a:hover { color: var(--fg); }
.fam span { color: var(--fg-4); }
@media (max-width: 760px) { .foot-g { grid-template-columns: 1fr 1fr; } .foot-g > div:first-child { grid-column: 1 / -1; } }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }
@media (max-width: 900px) { .show-cap { max-width: none; } }
/* the live window could not start: the screenshot stands in, without the controls */
.demo.static .seg-mini, .demo.static .demo-reset, .demo.static .try, .demo.static .demo-bar .hint { display: none; }
