/* PortRelay: a light, example-led product page. Two endpoints make ownership
   visible; blue marks actions and an active connection. This identity is
   intentionally independent of the personal site theme, per the new brief. */
:root {
  color-scheme: light;
  --ink: #14223a;
  --muted: #687891;
  --line: #e3eaf5;
  --accent: #2861eb;
  --blue-soft: #edf3ff;
  --green: #21865d;
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Manrope, var(--font);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
p {
  text-wrap: pretty;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon {
  width: 19px;
  height: 19px;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 12px 20px;
  color: white;
  background: var(--accent);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #dce8ff;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 10px;
  width: 33px;
  height: 33px;
  color: white;
}
.brand-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link {
  color: #57647a;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  padding: 10px 15px;
  min-height: 42px;
  line-height: 1.4;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.button-dark {
  background: var(--ink);
  color: white;
}
.button-dark:hover {
  background: #293a55;
  color: white;
  transform: translateY(-1px);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button .arrow {
  width: 15px;
  height: 15px;
  color: #b4c2d8;
}
.hero {
  text-align: center;
  padding-top: 30px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #68758a;
}
.status-dot,
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow > .status-dot {
  color: var(--green);
}
.eyebrow-divider {
  width: 1px;
  height: 10px;
  background: #ccd3df;
  margin-inline: 4px;
}
h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin-top: 17px;
}
h1 > span {
  color: var(--accent);
}
.hero-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
}
.example-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-block: 26px 24px;
}
.example-button {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: #63718a;
  border-radius: 50px;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 1.4;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.example-button .icon {
  width: 17px;
  height: 17px;
}
.example-button:hover:not(:disabled) {
  background: #f3f6fc;
  color: var(--accent);
}
.example-button.selected {
  border-color: #d8e4ff;
  background: var(--blue-soft);
  color: var(--accent);
}
.demo-stage {
  text-align: left;
  border: 1px solid #e0e8f5;
  border-radius: 22px;
  overflow: hidden;
  background-color: #f4f7fd;
  background-image: radial-gradient(#cddbf3 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  box-shadow: 0 8px 28px -20px #2a498022;
}
.stage-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #526984;
}
.stage-topline > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.stage-topline .icon {
  width: 15px;
  height: 15px;
  color: #526984;
}
.demo-pill {
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.3;
  border: 1px solid #dbe5f4;
  padding: 5px 9px;
  border-radius: 30px;
  background: #fff9;
}
.relay-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(90px, 0.32fr) minmax(0, 1.6fr);
  align-items: center;
  padding: 20px 36px 30px;
  gap: 0;
  min-width: 0;
}
.source-column,
.destination-column {
  min-width: 0;
}
.endpoint-label {
  text-align: center;
  color: #526984;
  font-size: 12px;
  letter-spacing: 0.035em;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.4;
}
.endpoint-label strong {
  color: #465e80;
  font-weight: 600;
}
.source-card {
  border: 1px solid #e1e8f3;
  border-radius: 16px;
  background: white;
  box-shadow: 0 7px 24px -14px #132a5322;
  padding: 20px 18px 0;
  text-align: center;
  position: relative;
}
.source-location {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #526984;
  font-weight: 500;
}
.source-location .icon {
  width: 15px;
  height: 15px;
}
.source-location .online-dot {
  background: var(--green);
  width: 5px;
  height: 5px;
  margin-left: 2px;
}
.device-portrait {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #f1f5fd;
  margin: 30px auto 20px;
  border: 1px solid #e8eef9;
  color: #54729e;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.device-portrait svg {
  width: 49px;
  height: 49px;
  stroke-width: 1.4;
}
.source-card h2 {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.source-card > p {
  font-size: 13px;
  line-height: 1.6;
  color: #526984;
  margin-top: 10px;
  min-height: 42px;
}
.source-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #526984;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 30px;
  background: #f2f6fc;
  margin-top: 18px;
  min-height: 31px;
}
.source-state .status-dot {
  width: 5px;
  height: 5px;
}
.source-plug {
  border-top: 1px solid #edf1f7;
  padding-block: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: #526984;
  margin-top: 27px;
}
.source-plug .icon {
  width: 15px;
  height: 15px;
}
.connection-path {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 35px;
  position: relative;
  z-index: 1;
}
.path-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #526984;
  margin-bottom: 18px;
}
.path-wire {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2px;
  background: #cbd9ef;
  position: relative;
}
.path-wire::before,
.path-wire::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7c9e5;
  border: 2px solid #f4f7fd;
}
.path-wire::before {
  left: -4px;
}
.path-wire::after {
  right: -4px;
}
.path-node {
  width: 32px;
  height: 32px;
  background: #f9fbff;
  border: 1px solid #d6e1f3;
  border-radius: 10px;
  color: #526984;
  z-index: 2;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px #f4f7fd;
}
.path-node .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.path-caption {
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  color: #526984;
  margin-top: 18px;
  max-width: 96px;
}
.path-packet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  left: 0;
  top: -1.5px;
  opacity: 0;
}
.path-packet.second {
  animation-delay: 1s !important;
}
.relay-layout[data-connected="true"] .path-wire {
  background: #8cabf6;
}
.relay-layout[data-connected="true"] .path-node {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px #f4f7fd,
    0 0 0 7px #d7e3ff;
}
.relay-layout[data-connected="true"] .path-packet {
  opacity: 1;
  animation: relay-packet 2s linear infinite;
}
.relay-layout[data-connected="true"] .path-caption,
.relay-layout[data-connected="true"] .path-label {
  color: var(--accent);
}
.relay-layout[data-connected="true"] .device-portrait {
  color: var(--accent);
  background: #eaf1ff;
  transform: translateY(-2px);
}
.relay-layout[data-connected="true"] .source-state {
  color: var(--green);
  background: #eaf7f0;
}
@keyframes relay-packet {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}
.app-window {
  border-radius: 14px;
  border: 1px solid #dce3ef;
  background: white;
  box-shadow: 0 16px 40px -24px #142b5840;
  overflow: hidden;
}
.app-titlebar {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcff;
  border-bottom: 1px solid #eef1f6;
  padding-inline: 15px;
  position: relative;
  color: #526984;
  font-size: 12px;
}
.app-titlebar > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #526984;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.app-titlebar > span:nth-child(2) > .icon {
  width: 17px;
  height: 17px;
  color: #526984;
}
.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dce2eb;
}
.titlebar-laptop {
  width: 15px;
  height: 15px;
  color: #526984;
}
.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #eef2f7;
}
.app-navigation {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f2f5fa;
  border-radius: 7px;
}
.app-navigation button {
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 9px;
  background: none;
  border-radius: 5px;
  color: #526984;
  white-space: nowrap;
  font-weight: 500;
  min-height: 32px;
}
.app-navigation button.selected {
  background: white;
  color: #334c72;
  box-shadow: 0 1px 3px #23456614;
}
.app-navigation button:hover:not(:disabled) {
  color: var(--accent);
}
.work-laptop {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #526984;
  font-size: 12px;
  white-space: nowrap;
}
.work-laptop .icon {
  width: 14px;
  height: 14px;
}
.app-main {
  padding: 19px 22px 0;
}
.app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-heading h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.connection-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #526984;
  font-size: 12px;
  line-height: 1.3;
}
.connection-badge .status-dot,
.connection-badge .online-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
}
.peer-selector {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}
.peer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0;
  background: none;
  border-radius: 4px;
  color: #526984;
  min-height: 28px;
}
.peer > .online-dot {
  width: 4px;
  height: 4px;
  background: #8999ad;
}
.peer > .icon {
  width: 12px;
  height: 12px;
}
.peer.selected {
  color: var(--accent);
}
.peer.selected > .online-dot {
  background: var(--accent);
}
.peer:hover:not(:disabled) {
  color: var(--accent);
}
.device-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #526984;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 7px;
}
.device-list-heading > span:last-child {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.device-list-heading .mono {
  margin-left: 4px;
}
.device-list {
  min-height: 217px;
  border-top: 1px solid #edf1f7;
}
.device-row {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #edf1f7;
  padding: 11px 0;
  position: relative;
}
.device-row.highlighted::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 3px;
  bottom: 3px;
  background: #f3f7ff;
  border-radius: 8px;
  pointer-events: none;
}
.device-row > * {
  position: relative;
}
.device-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f3f6fa;
  color: #526984;
  flex-shrink: 0;
}
.device-icon .icon {
  width: 20px;
  height: 20px;
}
.device-details {
  flex: 1;
  min-width: 0;
}
.device-details h3 {
  font: 500 14px/1.5 var(--font);
  letter-spacing: -0.015em;
}
.device-details p {
  font-size: 12px;
  color: #526984;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.device-type {
  font-size: 12px;
  line-height: 1.2;
  background: #edf2fa;
  color: #526984;
  padding: 2px 4px;
  border-radius: 3px;
}
.device-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-width: 79px;
  min-height: 36px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.4;
  background: white;
  border: 1px solid #dfe6f0;
  color: #557297;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
  flex-shrink: 0;
}
.device-row.highlighted .device-action:not(:disabled) {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 3px #2861eb18;
}
.device-action:hover:not(:disabled) {
  background: #edf3ff;
  color: var(--accent);
  border-color: #b6ccfd;
}
.device-row.highlighted .device-action:hover:not(:disabled) {
  background: #1749be;
  color: white;
}
.device-action:disabled {
  background: #f5f7fa;
  color: #526984;
  border-color: transparent;
}
.device-row.connected .device-icon {
  color: var(--accent);
  background: #e9f0ff;
}
.device-row.connected .device-details p {
  color: var(--green);
}
.device-row.connected .device-action,
.device-row.connected.highlighted .device-action {
  background: white;
  color: #4f785f;
  border-color: #d3e8dc;
  box-shadow: none;
}
.device-row.connected .device-action:hover {
  background: #ecf7f0;
  color: #27714b;
  border-color: #b2d7c1;
}
.app-hint {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: #526984;
  font-size: 12px;
  line-height: 1.5;
  padding-block: 13px;
  min-height: 63px;
}
.app-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1f6;
  background: #fcfdff;
  padding: 9px 20px;
  color: #526984;
  font-size: 12px;
  line-height: 1.4;
}
.app-status > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.app-status .icon {
  width: 12px;
  height: 12px;
}
.app-status .mono {
  font-size: 12px;
  color: #526984;
}
.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #dfe8f7;
  background: #fafcffdd;
  padding: 15px 28px;
  font-size: 14px;
  color: #526984;
}
.demo-bottom strong {
  color: #475e7f;
  font-weight: 500;
}
.demo-bottom > span {
  font-size: 12px;
  color: #526984;
  white-space: nowrap;
}
.setup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  color: #526984;
  font-size: 14px;
  font-weight: 500;
}
.setup-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.setup-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #edf3fd;
  border-radius: 50%;
  font-size: 12px;
  color: #526984;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.setup-steps .step-arrow {
  color: #526984;
}
.step-arrow .icon {
  width: 15px;
  height: 15px;
}
.no-script {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}
.get-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  max-width: 930px;
  padding-block: 80px 70px;
}
.small-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #526984;
}
.release-intro h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 13px;
  letter-spacing: -0.045em;
}
.release-intro > p {
  font-size: 16px;
  color: #526984;
  margin-top: 14px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--accent);
  font-size: 14px;
}
.release-intro .text-link {
  margin-top: 18px;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}
.platform-panel {
  border: 1px solid #e5ebf5;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.os-selector {
  display: flex;
  padding: 8px;
  gap: 4px;
  border-bottom: 1px solid #edf1f7;
}
.os-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  background: none;
  padding: 9px;
  font-size: 14px;
  color: #526984;
  border-radius: 7px;
  min-height: 40px;
}
.os-button .icon {
  width: 16px;
  height: 16px;
}
.os-button.selected {
  color: var(--accent);
  background: #eff4ff;
}
.os-button:hover:not(:disabled) {
  background: #f5f8ff;
  color: var(--accent);
}
.platform-content {
  padding: 20px 24px;
  min-height: 145px;
}
.platform-stage {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #526984;
  font-weight: 500;
}
.platform-content h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.platform-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #526984;
  margin-top: 8px;
  min-height: 45px;
}
.roadmap-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: #fafcff;
  border-top: 1px solid #edf1f7;
  font-size: 13px;
  color: #526984;
}
.roadmap-link .icon {
  width: 16px;
  height: 16px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ecf0f7;
  padding-block: 23px 28px;
  font-size: 12px;
  color: #526984;
}
.footer > .wordmark {
  font-size: 15px;
  color: #536780;
  gap: 7px;
}
.footer .brand-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}
.footer .brand-icon svg {
  width: 21px;
  height: 21px;
}
.footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer > div > a:last-child {
  display: flex;
  align-items: center;
  gap: 3px;
}
.footer .icon {
  width: 13px;
  height: 13px;
}
.footer-dot {
  color: #526984;
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 42px;
  }
  .relay-layout {
    padding-block: 24px 34px;
    grid-template-columns: minmax(0, 0.8fr) minmax(100px, 0.4fr) minmax(
        0,
        1.65fr
      );
  }
  .source-card {
    padding-top: 24px;
  }
  .source-plug {
    margin-top: 30px;
  }
}
@media (max-width: 1080px) {
  .relay-layout {
    padding-inline: 24px;
    grid-template-columns: minmax(0, 0.8fr) 74px minmax(0, 1.6fr);
  }
  .work-laptop {
    display: none;
  }
  .app-toolbar {
    justify-content: center;
  }
  .app-main {
    padding-inline: 18px;
  }
  .source-card {
    padding-inline: 12px;
  }
  .source-card h2 {
    font-size: 19px;
  }
  .source-card > p {
    font-size: 12px;
  }
  .path-caption {
    font-size: 12px;
    max-width: 70px;
  }
  .path-node {
    width: 28px;
    height: 28px;
  }
  .get-app {
    gap: 60px;
  }
  .stage-topline {
    padding-inline: 22px;
  }
  .device-details h3 {
    font-size: 13px;
  }
  .device-action {
    font-size: 12px;
    min-width: 72px;
    padding-inline: 9px;
  }
  .device-icon {
    width: 30px;
    height: 32px;
  }
  .device-row {
    gap: 8px;
  }
  .device-details p {
    font-size: 12px;
  }
}
@media (max-width: 840px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header {
    height: 74px;
  }
  .header nav {
    gap: 18px;
  }
  .hero {
    padding-top: 26px;
  }
  h1 {
    font-size: 45px;
    max-width: 700px;
    margin-inline: auto;
  }
  .hero-description {
    font-size: 16px;
  }
  .example-selector {
    margin-top: 23px;
  }
  .relay-layout {
    grid-template-columns: minmax(0, 0.65fr) 44px minmax(0, 1.2fr);
    padding: 20px 18px 24px;
  }
  .device-portrait {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    margin-top: 26px;
  }
  .device-portrait svg {
    width: 40px;
    height: 40px;
  }
  .source-state {
    font-size: 12px;
    padding-inline: 7px;
  }
  .source-location {
    font-size: 12px;
  }
  .source-location > .icon {
    width: 14px;
    height: 14px;
  }
  .source-plug {
    font-size: 12px;
  }
  .path-caption {
    display: none;
  }
  .path-label {
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 20px;
  }
  .path-node {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    box-shadow: 0 0 0 4px #f4f7fd;
  }
  .path-node > .icon {
    width: 21px;
    height: 21px;
  }
  .app-main {
    padding: 16px 14px 0;
  }
  .device-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .device-icon {
    width: 28px;
    height: 30px;
    border-radius: 7px;
  }
  .device-icon > .icon {
    width: 17px;
    height: 17px;
  }
  .device-action {
    font-size: 12px;
    min-width: 68px;
    padding-inline: 7px;
  }
  .device-details h3 {
    font-size: 13px;
  }
  .device-details p {
    font-size: 12px;
  }
  .connection-badge {
    font-size: 12px;
  }
  .app-navigation button {
    font-size: 12px;
    padding-inline: 8px;
  }
  .demo-bottom {
    padding-inline: 20px;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .demo-bottom > span {
    font-size: 12px;
  }
  .setup-steps {
    gap: 16px;
    font-size: 12px;
  }
  .get-app {
    gap: 48px;
    max-width: 740px;
    padding-block: 64px;
  }
  .release-intro h2 {
    font-size: 29px;
  }
  .platform-content {
    padding-inline: 20px;
  }
  .footer > p {
    display: none;
  }
  .endpoint-label {
    font-size: 12px;
  }
  .app-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header {
    height: 70px;
  }
  .wordmark {
    font-size: 20px;
    gap: 8px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .brand-icon svg {
    width: 25px;
    height: 25px;
  }
  .header nav {
    gap: 14px;
  }
  .header .nav-link {
    display: none;
  }
  .button {
    font-size: 14px;
    min-height: 38px;
    padding: 8px 12px;
  }
  .button .arrow {
    display: none;
  }
  .hero {
    padding-top: 24px;
  }
  .eyebrow {
    font-size: 12px;
    gap: 6px;
    letter-spacing: 0.015em;
  }
  h1 {
    font-size: clamp(37px, 8.5vw, 52px);
    max-width: 530px;
    letter-spacing: -0.055em;
    line-height: 1.16;
    margin-top: 18px;
  }
  h1 > span {
    display: block;
  }
  .hero-description {
    max-width: 32ch;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.65;
  }
  .example-selector {
    gap: 3px;
    flex-wrap: wrap;
    margin-block: 22px 18px;
  }
  .example-button {
    font-size: 12px;
    gap: 5px;
    min-height: 38px;
    padding: 8px 10px;
  }
  .example-button .icon {
    width: 15px;
    height: 15px;
  }
  .demo-stage {
    border-radius: 17px;
  }
  .stage-topline {
    padding: 15px 16px 0;
    font-size: 12px;
    letter-spacing: 0;
  }
  .demo-pill {
    font-size: 12px;
    padding: 4px 7px;
  }
  .stage-topline .icon {
    width: 14px;
    height: 14px;
  }
  .relay-layout {
    display: flex;
    flex-direction: column;
    padding: 18px 14px 20px;
    gap: 0;
    align-items: stretch;
  }
  .source-column > .endpoint-label,
  .destination-column > .endpoint-label {
    display: none;
  }
  .source-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    text-align: left;
    padding: 14px;
    border-radius: 12px;
  }
  .source-location {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    font-size: 12px;
  }
  .source-location > .icon {
    width: 12px;
    height: 12px;
  }
  .source-location > .online-dot {
    display: none;
  }
  .device-portrait {
    grid-column: 1;
    grid-row: 1/3;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0;
  }
  .device-portrait svg {
    width: 27px;
    height: 27px;
  }
  .source-card h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.4;
  }
  .source-card > p,
  .source-plug {
    display: none;
  }
  .source-state {
    grid-column: 3;
    grid-row: 1/3;
    margin: 0;
    font-size: 12px;
    max-width: 92px;
    line-height: 1.4;
    white-space: normal;
    padding: 5px 7px;
  }
  .source-state > .status-dot {
    display: none;
  }
  .connection-path {
    padding: 0;
    height: 46px;
    align-self: center;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    justify-content: center;
  }
  .path-wire {
    width: 2px;
    height: 46px;
    order: 2;
    flex: 0 0 2px;
  }
  .path-wire::before,
  .path-wire::after {
    left: -3px;
    top: auto;
  }
  .path-wire::before {
    top: -4px;
  }
  .path-wire::after {
    bottom: -4px;
  }
  .path-node {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    position: absolute;
    left: -11px;
    top: 11px;
    box-shadow: 0 0 0 4px #f4f7fd;
  }
  .path-node .icon {
    width: 19px;
    height: 19px;
  }
  .path-label {
    margin: 0;
    order: 1;
    text-align: right;
    flex: 1;
    max-width: 130px;
    font-size: 12px;
  }
  .path-caption {
    display: block;
    margin: 0;
    order: 3;
    flex: 1;
    max-width: 130px;
    text-align: left;
    font-size: 12px;
  }
  .path-packet {
    display: none;
  }
  .app-window {
    border-radius: 12px;
  }
  .app-titlebar {
    height: 35px;
  }
  .app-toolbar {
    padding: 10px 14px;
    justify-content: space-between;
  }
  .app-navigation {
    width: 100%;
  }
  .app-navigation button {
    flex: 1;
    font-size: 12px;
    min-height: 34px;
  }
  .app-main {
    padding: 18px 16px 0;
  }
  .app-heading h2 {
    font-size: 16px;
  }
  .connection-badge {
    font-size: 12px;
  }
  .peer-selector {
    margin-top: 8px;
  }
  .peer {
    font-size: 12px;
    min-height: 30px;
  }
  .device-list-heading {
    font-size: 12px;
    margin-top: 10px;
  }
  .device-row {
    gap: 9px;
    min-height: 76px;
  }
  .device-icon {
    width: 30px;
    height: 32px;
  }
  .device-details {
    min-width: 100px;
  }
  .device-details h3 {
    font-size: 14px;
  }
  .device-details p {
    font-size: 12px;
  }
  .device-action {
    font-size: 12px;
    min-height: 36px;
    min-width: 69px;
    padding-inline: 8px;
  }
  .app-hint {
    font-size: 12px;
  }
  .app-status {
    font-size: 12px;
    padding: 10px 16px;
  }
  .app-status .mono {
    font-size: 12px;
  }
  .demo-bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 13px 14px;
    gap: 3px;
    font-size: 13px;
  }
  .demo-bottom > span {
    font-size: 12px;
    white-space: normal;
  }
  .setup-steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.5;
    justify-content: space-between;
  }
  .setup-steps li {
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-width: 135px;
  }
  .setup-steps .step-arrow {
    display: none;
  }
  .setup-steps li > span {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .get-app {
    padding-block: 50px 44px;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 430px;
  }
  .release-intro {
    text-align: center;
  }
  .release-intro h2 {
    font-size: 29px;
    line-height: 1.2;
    margin-top: 10px;
  }
  .release-intro h2 br {
    display: none;
  }
  .release-intro > p {
    font-size: 16px;
    margin-top: 12px;
  }
  .release-intro .text-link {
    font-size: 14px;
    margin-top: 12px;
  }
  .platform-content {
    min-height: 130px;
    padding: 18px 22px;
  }
  .platform-content p {
    font-size: 14px;
    min-height: 42px;
  }
  .platform-content h3 {
    font-size: 18px;
  }
  .os-button {
    font-size: 14px;
  }
  .roadmap-link {
    font-size: 13px;
  }
  .footer {
    padding-block: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer > div {
    gap: 9px;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .source-card {
    grid-template-columns: 40px 1fr;
    column-gap: 9px;
  }
  .source-state {
    grid-row: 3;
    grid-column: 1/-1;
    max-width: none;
    justify-self: start;
    margin-top: 6px;
  }
  .device-portrait {
    width: 40px;
    height: 40px;
  }
  .stage-topline > span:first-child .icon {
    display: none;
  }
  .stage-topline {
    font-size: 11px;
  }
  .demo-pill {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 680px) {
  .source-card h2 {
    min-height: 0;
    justify-content: flex-start;
  }
}
