/* The download surface inherits the official site's typography and green accent. */
.downloads-section {
  padding-top: 40px;
  padding-bottom: 64px;
}
.downloads-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.downloads-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 18px;
}
.downloads-section h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
}
.downloads-lead {
  max-width: 650px;
  color: var(--muted);
  margin: 0;
}
.downloads-github {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid #3a4445;
  border-radius: 9px;
  transition:
    background 0.18s,
    border-color 0.18s;
  font-size: 14px;
}
.downloads-github:hover {
  background: #17211f;
  border-color: var(--accent);
}
.download-release {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin: 30px 0 64px;
}
.release-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.download-release strong {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin-left: 4px;
}
.release-example {
  border-left: 1px solid var(--border);
  padding-left: 12px;
  font-size: 12px;
}
.download-release a {
  margin-left: auto;
  text-decoration: underline;
  text-decoration-color: #526563;
}
.download-release a:hover {
  color: var(--accent);
}
.download-group {
  margin-top: 52px;
}
.download-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.downloads-section h3 {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.025em;
}
.platform-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #a1b5ae;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.download-group-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #303a3c;
  border-radius: 16px;
  overflow: hidden;
  background: #0e1416;
}
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px;
  min-height: 148px;
  transition: background 0.18s;
}
.download-grid .download-item:nth-child(odd) {
  border-right: 1px solid #253032;
}
.download-grid .download-item:nth-child(n + 3) {
  border-top: 1px solid #253032;
}
.download-item:hover {
  background: #15211e;
}
.download-item:focus-visible {
  outline-offset: -5px;
}
.download-item h4 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.download-item h4 span {
  color: #c4d2cd;
  font-size: 17px;
  font-weight: 400;
  margin-left: 7px;
}
.download-item p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.package-version {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: #a7bdb4;
  display: inline-block;
  margin-top: 9px;
}
.download-action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a4b8bb;
  flex-shrink: 0;
}
.download-action span {
  font-size: 12px;
}
.download-action .icon {
  width: 23px;
  height: 23px;
}
.download-item:hover .download-action {
  color: var(--accent);
}
.android-download {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mobile-coming-soon {
  cursor: default;
}
.mobile-coming-soon:hover {
  background: #0e1416;
}
.mobile-platform-name {
  display: flex;
  align-items: center;
  gap: 23px;
}
.mobile-device-icon {
  width: 38px;
  height: 38px;
}
.coming-soon-action {
  font-size: 13px;
}
.android-name {
  display: flex;
  align-items: center;
  gap: 23px;
}
.android-mark {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.android-name h4 {
  margin-bottom: 5px;
}
.android-name .package-version {
  margin-top: 0;
}
.android-divider {
  color: #4d625b;
  margin: 0 8px;
}
.android-note {
  color: var(--muted);
  font-size: 14px;
}
.docker-download {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
  padding-top: 52px;
  border-top: 1px solid #253032;
}
.docker-intro p {
  font-size: 15px;
  color: var(--muted);
  margin: 20px 0 12px;
  line-height: 1.9;
}
.docker-guide {
  display: block;
  width: fit-content;
  font-size: 14px;
  margin-top: 24px;
  color: var(--accent);
}
.docker-guide:hover {
  text-decoration: underline;
}
.download-terminal {
  border: 1px solid #303a3c;
  border-radius: 14px;
  background: #0c1113;
  overflow: hidden;
}
.download-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #253032;
  padding: 6px 20px;
  font:
    11px 'Space Grotesk',
    sans-serif;
  letter-spacing: 0.08em;
  color: #bac9c4;
}
.terminal-version {
  color: #a4b8bb;
  margin-left: 8px;
}
.download-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  min-height: 44px;
  color: #bac9c4;
  padding: 0 4px;
  font-size: 12px;
  letter-spacing: 0;
}
.download-copy:hover {
  color: var(--accent);
}
.download-copy:disabled {
  cursor: wait;
}
.download-copy .icon {
  width: 15px;
  height: 15px;
}
.download-terminal pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
  color: #d3e8de;
  tab-size: 2;
}
.docker-address {
  padding: 0 24px;
  font-size: 12px;
  color: var(--muted);
}
.docker-address code {
  color: var(--text);
  margin-left: 4px;
}
.docker-permissions {
  padding: 0 24px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.download-copy-status {
  min-height: 20px;
  padding: 0 24px;
  color: var(--accent);
  font-size: 12px;
  margin: 10px 0 14px;
}
.download-notes {
  padding: 20px 0 26px;
  border-bottom: 1px solid #253032;
  color: var(--muted);
  font-size: 12px;
}
.download-notes p {
  margin: 6px 0;
}
.download-browser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
}
.download-browser p {
  font-size: 15px;
  margin: 0;
  color: var(--muted);
}
.download-browser a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--accent);
  min-height: 44px;
}
.download-browser a:hover {
  text-decoration: underline;
}
@media (max-width: 1000px) {
  .downloads-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .download-action span {
    display: none;
  }
  .android-note {
    display: none;
  }
  .docker-download {
    gap: 32px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .downloads-section h3 {
    font-size: 25px;
  }
}
@media (max-width: 640px) {
  .downloads-section {
    padding-top: 32px;
  }
  .download-release {
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .download-release a {
    margin-left: 0;
    flex-basis: 100%;
    margin-top: 4px;
  }
  .download-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .download-grid .download-item:nth-child(odd) {
    border-right: none;
  }
  .download-grid .download-item + .download-item {
    border-top: 1px solid #253032;
  }
  .download-item {
    padding: 24px;
    min-height: 130px;
  }
  .download-item h4 span {
    font-size: 15px;
  }
  .docker-download {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .download-terminal pre {
    font-size: 12px;
    padding: 20px;
  }
  .android-name {
    gap: 18px;
  }
  .download-browser {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .download-item,
  .downloads-github {
    transition: none;
  }
}

.nav-actions .button-small {
  padding-inline: 10px;
  gap: 6px;
}
.hero-actions .button {
  padding-inline: 14px;
  gap: 8px;
}
.nav-bar {
  gap: 20px;
}
.nav-bar nav {
  gap: 20px;
}
.nav-actions {
  gap: 14px;
}

.nav-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.nav-actions {
  justify-self: end;
}
@media (max-width: 1199px) {
  html {
    scroll-padding-top: 144px;
  }
  .nav-bar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 88px;
    padding-block: 12px;
    row-gap: 12px;
  }
  .nav-bar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: auto;
  }
}

.remote-agents-section {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 104px);
  padding-block: clamp(24px, 3vh, 48px) 0;
  border-top: 1px solid var(--border);
}
.remote-agents-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.remote-agents-section h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.remote-agents-section h2 span {
  color: var(--accent);
  font-size: clamp(38px, 3.65vw, 52px);
  line-height: 1.3;
}
.remote-agents-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  gap: clamp(8px, 1vh, 16px);
}
.remote-agents-body {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
}
.remote-agents-copy > p,
.remote-agents-body > p,
.remote-agents-body > h2 {
  margin-block: 0;
}
.remote-agents-lead {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.remote-agents-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
}
.remote-connection {
  margin: 0;
  padding-block: 12px 18px;
  border-block: 1px solid #3d5756;
}
.remote-connection-path {
  position: relative;
  height: clamp(320px, 43vh, 390px);
}
.remote-device {
  position: absolute;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transform: translateX(-50%);
}
.remote-other {
  left: 16%;
  top: 68%;
}
.remote-project {
  left: 50%;
  top: 1%;
}
.remote-phone {
  left: 84%;
  top: 68%;
}
.remote-device-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.remote-device.remote-project span {
  color: var(--accent);
}
.remote-device span {
  color: var(--muted);
  font-size: 15px;
}
.remote-device small {
  color: #8ca9a2;
  font:
    9px 'Space Grotesk',
    sans-serif;
  letter-spacing: 0.1em;
}
.remote-triangle-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.remote-triangle-links .remote-wire {
  stroke: #448575;
  stroke-width: 1.2;
  fill: none;
}
.remote-triangle-links marker path {
  fill: none;
  stroke: #7ce7c5;
  stroke-width: 1.2;
}
.remote-triangle-links circle {
  fill: var(--accent);
}
.remote-connection figcaption {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.supported-agents {
  margin-top: 28px;
  padding-block: 24px;
  border-block: 1px solid var(--border);
  background: #0b1216;
}
.supported-agents-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.supported-agents-row > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  flex: 0 0 auto;
}
.supported-agents ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
.supported-agents li {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    14px 'Space Grotesk',
    sans-serif;
}
.supported-agents img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.remote-requirements {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 1000px) {
  .remote-agents-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .remote-connection {
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .remote-agents-section {
    min-height: 0;
    padding-block: 40px 0;
  }
  .remote-device {
    width: 100px;
  }
  .remote-agents-section h2 span {
    font-size: 36px;
  }
  .remote-device span {
    font-size: 13px;
  }
  .remote-device small {
    font-size: 8px;
  }
  .supported-agents-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .supported-agents-row > p {
    flex-basis: auto;
  }
  .supported-agents ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 28px;
  }
}

.download-item[aria-disabled='true'] {
  cursor: default;
}
.download-item[aria-disabled='true']:hover {
  background: transparent;
}
