.relay-distinct .header__logo-icon {
  display: none;
}

.relay-distinct .header__logo:before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: url("/assets/relay-logo-transparent.png?v=2") center / contain no-repeat;
  box-shadow: none;
  display: block;
}

.relay-distinct .header__twitter {
  gap: 10px;
  padding: 11px 18px;
}

.relay-distinct .header__twitter-icon {
  display: block;
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%);
}

.relay-distinct .header__twitter:after {
  content: none;
}

.relay-distinct .header__twitter span {
  display: block;
  line-height: 1;
}

.relay-distinct .hero {
  justify-content: flex-end;
  min-height: 94vh;
  padding-bottom: 118px;
  isolation: isolate;
}

.relay-distinct .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(#1677ff12 1px, transparent 1px),
    linear-gradient(90deg, #1677ff10 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 72% 42%, #000 0 34%, transparent 66%);
}

.relay-distinct .hero:after {
  content: "";
  position: absolute;
  right: 8vw;
  top: 17vh;
  width: 420px;
  height: 420px;
  border: 1px solid #1677ff2e;
  border-radius: 999px;
  background: radial-gradient(circle, #1677ff20 0 2px, transparent 2px);
  background-size: 34px 34px;
  opacity: .8;
}

.relay-distinct .hero__bg-shape {
  opacity: .1;
  filter: blur(1px) saturate(.7);
}

.relay-distinct .hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 72px;
  align-items: end;
  width: 100%;
}

.relay-distinct .hero__title {
  text-align: left;
}

.relay-distinct .hero__title-prefix,
.relay-distinct .hero__title-tagline {
  font-size: clamp(32px, 4vw, 58px);
}

.relay-distinct .hero__title-name {
  letter-spacing: 0;
  font-size: clamp(72px, 8vw, 126px);
  display: block;
}

.relay-distinct .hero__actions {
  grid-column: 1;
  justify-content: flex-start;
  margin-top: 34px;
}

.relay-hero-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-height: 390px;
  border: 1px solid #e6f0ff1f;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 22%, #1677ff38, transparent 34%),
    linear-gradient(155deg, #1f242a, #111315 72%);
  box-shadow: 0 32px 90px #00000070;
  overflow: hidden;
}

.relay-hero-panel:before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed #e6f0ff24;
  border-radius: 22px;
}

.relay-hero-panel__top {
  position: absolute;
  top: 26px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  color: #e6f0ff99;
  font-size: 13px;
}

.relay-hero-panel__status {
  color: #8ec0ff;
}

.relay-hero-panel__node {
  position: absolute;
  width: 132px;
  border: 1px solid #e6f0ff24;
  border-radius: 18px;
  padding: 14px;
  background: #111315cc;
  box-shadow: 0 18px 46px #0000004a;
}

.relay-hero-panel__node strong {
  display: block;
  color: #e6f0ff;
  font-size: 15px;
}

.relay-hero-panel__node span {
  display: block;
  color: #e6f0ff8c;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.relay-hero-panel__node--a {
  top: 96px;
  left: 44px;
}

.relay-hero-panel__node--b {
  top: 142px;
  right: 46px;
}

.relay-hero-panel__node--c {
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  background: #1677ff;
}

.relay-hero-panel__node--c span {
  color: #f7fbffcc;
}

.relay-hero-panel__line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3a91ff, transparent);
  transform-origin: left center;
  opacity: .85;
}

.relay-hero-panel__line--ab {
  top: 168px;
  left: 168px;
  width: 185px;
  transform: rotate(10deg);
}

.relay-hero-panel__line--bc {
  top: 234px;
  right: 142px;
  width: 160px;
  transform: rotate(126deg);
}

.relay-hero-panel__line--ca {
  left: 124px;
  bottom: 118px;
  width: 156px;
  transform: rotate(-128deg);
}

.relay-hero-panel__chip {
  position: absolute;
  left: 28px;
  bottom: 26px;
  color: #0f1b2e;
  background: #e6f0ff;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
}

.relay-strip {
  padding: 0 0 34px;
}

.relay-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.relay-strip__item {
  border: 1px solid #e6f0ff1a;
  border-radius: 22px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #1f2227, #17191c);
}

.relay-strip__kicker {
  color: #68a9ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.relay-strip__item strong {
  color: #e6f0ff;
  display: block;
  margin-top: 10px;
  font-size: 21px;
}

.relay-strip__item p {
  color: #e6f0ffb8;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.relay-distinct .overview {
  padding-top: 34px;
}

.relay-distinct .overview__video {
  border-radius: 28px;
  background:
    linear-gradient(135deg, #0f1724, #17191c 58%),
    #17191c;
}

.relay-distinct .overview__video-source {
  opacity: 0;
  pointer-events: none;
}

.relay-distinct .overview__video.relay-demo-mode {
  align-items: stretch;
  justify-content: stretch;
}

.relay-demo-mode .overview__video-source {
  position: absolute;
  inset: 0;
}

.relay-demo-mode .overview__video-play {
  display: none;
}

.relay-demo {
  position: absolute;
  inset: 24px;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #e6f0ff1f;
  border-radius: 22px;
  background: linear-gradient(155deg, #101419, #171a1f 70%);
  box-shadow: inset 0 0 0 1px #00000033;
  overflow: hidden;
}

.relay-demo__memory {
  border-bottom: 1px solid #e6f0ff14;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.relay-demo__eyebrow {
  color: #68a9ff;
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.relay-demo__memory strong {
  color: #e6f0ff;
  font-size: 18px;
  font-weight: 650;
}

.relay-demo__memory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relay-demo__memory-list span {
  color: #d7e8ff;
  border: 1px solid #3a91ff55;
  border-radius: 999px;
  background: #1677ff1f;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.25;
}

.relay-demo__agents {
  min-height: 0;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.relay-demo__agent {
  min-height: 0;
  border: 1px solid #e6f0ff17;
  border-radius: 20px;
  background: #1b1e23;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.relay-demo__agent-head {
  border-bottom: 1px solid #e6f0ff12;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.relay-demo__agent-head strong {
  color: #e6f0ff;
  font-size: 15px;
}

.relay-demo__status {
  color: #68a9ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.relay-demo__chat {
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.relay-demo__bubble {
  max-width: 84%;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.relay-demo__bubble--agent {
  align-self: flex-start;
  color: #e6f0ff;
  background: #111418;
  border: 1px solid #e6f0ff12;
  border-bottom-left-radius: 5px;
}

.relay-demo__bubble--user {
  align-self: flex-end;
  color: #f7fbff;
  background: #1677ff;
  border-bottom-right-radius: 5px;
}

.relay-demo__composer {
  border-top: 1px solid #e6f0ff12;
  padding: 11px;
  display: flex;
  gap: 9px;
}

.relay-demo__composer input {
  min-width: 0;
  flex: 1;
  color: #e6f0ff;
  border: 1px solid #e6f0ff14;
  border-radius: 999px;
  background: #101318;
  padding: 10px 13px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.relay-demo__composer input:focus {
  border-color: #3a91ff99;
}

.relay-demo__composer button {
  color: #f7fbff;
  border-radius: 999px;
  background: #1677ff;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 650;
}

.relay-preview {
  position: absolute;
  inset: 26px;
  border: 1px solid #e6f0ff1f;
  border-radius: 22px;
  background: #0f1115;
  overflow: hidden;
}

.relay-preview__bar {
  height: 48px;
  border-bottom: 1px solid #e6f0ff14;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e6f0ffb8;
  font-size: 13px;
}

.relay-preview__dots {
  display: flex;
  gap: 7px;
}

.relay-preview__dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #1677ff;
  opacity: .9;
}

.relay-preview__body {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 18px;
  padding: 18px;
  height: calc(100% - 48px);
}

.relay-preview__rail,
.relay-preview__canvas {
  border-radius: 18px;
  background: #1a1d22;
  border: 1px solid #e6f0ff12;
}

.relay-preview__rail {
  padding: 16px;
}

.relay-preview__rail h4,
.relay-preview__canvas h4 {
  color: #e6f0ff;
  margin-bottom: 14px;
  font-size: 15px;
}

.relay-preview__pill {
  color: #e6f0ffbf;
  border: 1px solid #e6f0ff18;
  border-radius: 999px;
  padding: 9px 12px;
  margin-bottom: 9px;
  font-size: 13px;
}

.relay-preview__canvas {
  position: relative;
  padding: 16px;
  overflow: hidden;
}

.relay-preview__memory {
  width: 58%;
  border: 1px solid #3a91ff66;
  border-radius: 16px;
  padding: 14px;
  background: #1677ff18;
  color: #e6f0ff;
  font-size: 14px;
}

.relay-preview__memory + .relay-preview__memory {
  margin-top: 12px;
  margin-left: 24%;
}

.relay-preview__orb {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 1px solid #e6f0ff24;
  background:
    radial-gradient(circle at 50% 50%, #1677ff 0 8px, transparent 9px),
    repeating-conic-gradient(from 10deg, #1677ff 0 8deg, transparent 8deg 24deg);
  opacity: .84;
}

.relay-distinct .overview__video-play {
  width: auto;
  height: auto;
  border-radius: 999px;
  right: 46px;
  bottom: 42px;
  padding: 12px 18px;
  background: #1677ff;
  gap: 8px;
}

.relay-distinct .overview__video-play:after {
  content: "Open walkthrough";
  color: #f7fbff;
  font-size: 14px;
  font-weight: 600;
}

.relay-distinct .overview__video-play svg {
  width: 20px;
  height: 20px;
}

.relay-distinct .overview__card,
.relay-distinct .use-cases__card,
.relay-distinct .use-cases__protocol {
  border-radius: 26px;
}

.relay-distinct .overview__card:before,
.relay-distinct .use-cases__card:before {
  content: attr(data-relay-tag);
  color: #8ec0ff;
  display: inline-block;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.relay-distinct .overview__card-title,
.relay-distinct .use-cases__card-title,
.relay-distinct .use-cases__protocol-title {
  letter-spacing: 0;
}

.relay-distinct .overview__card--code {
  min-height: 280px;
}

.relay-distinct .overview__card--intro {
  min-height: 250px;
}

.relay-distinct .overview__card--intro .overview__card-icon {
  width: 150px;
  border-radius: 28px;
  object-fit: cover;
  top: 22px;
  right: 22px;
  box-shadow: 0 22px 52px #00000045;
}

.relay-distinct .demo-modal__empty-logo,
.relay-distinct .demo-modal__meta-icon {
  filter: none;
  border-radius: 10px;
  object-fit: cover;
}

.relay-distinct .demo-modal__empty-logo {
  width: 150px;
  height: 150px;
}

.relay-distinct .demo-modal__meta-icon {
  width: 18px;
  height: 18px;
}

.relay-distinct .overview__card--what {
  padding-right: 44%;
}

.relay-distinct .overview__card--database {
  margin-top: 4px;
}

.relay-distinct .overview__card--database .overview__card-text {
  padding-right: 360px;
}

.relay-distinct .overview__card--how .overview__card-decoration {
  width: 40%;
  min-width: 180px;
  max-width: 230px;
  object-fit: contain;
}

.relay-distinct .overview__card--how .overview__card-content,
.relay-distinct .overview__card--what .overview__card-title,
.relay-distinct .overview__card--what .overview__card-text,
.relay-distinct .overview__card--database .overview__card-content,
.relay-distinct .use-cases__protocol-title,
.relay-distinct .use-cases__protocol-text {
  position: relative;
  z-index: 1;
}

.relay-distinct .overview__card--what .overview__card-decoration {
  width: 42%;
  height: auto;
  top: 24px;
  bottom: 24px;
  object-fit: contain;
  object-position: center;
  right: 18px;
}

.relay-distinct .overview__card--database .overview__card-decoration {
  width: auto;
  height: calc(100% - 56px);
  max-width: 34%;
  top: 28px;
  bottom: 28px;
  object-fit: contain;
  object-position: center;
  right: 24px;
}

.relay-distinct .overview__card--code:after {
  content: ">_";
  position: absolute;
  right: 28px;
  top: 18px;
  color: #e6f0ff1f;
  font-family: "Roboto Mono", monospace;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.relay-distinct .use-cases__protocol-decoration {
  width: auto;
  height: calc(100% - 48px);
  top: 24px;
  bottom: 24px;
  object-fit: contain;
  object-position: center;
  right: 32px;
}

.relay-distinct .use-cases__protocol {
  margin-bottom: 16px;
}

.relay-distinct .use-cases__grid {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .relay-distinct {
    overflow-x: hidden;
  }

  .relay-distinct .hero {
    padding-bottom: 86px;
  }

  .relay-distinct .hero__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .relay-distinct .hero__actions,
  .relay-hero-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .relay-hero-panel {
    min-height: 330px;
  }

  .relay-strip__inner,
  .relay-preview__body {
    grid-template-columns: 1fr;
  }

  .relay-distinct .overview__grid {
    flex-direction: column;
  }

  .relay-distinct .overview__grid-col {
    flex: 1 1 auto;
    width: 100%;
  }

  .relay-distinct .use-cases__grid {
    grid-template-columns: 1fr;
  }

  .relay-preview__canvas {
    display: none;
  }

  .relay-demo {
    inset: 18px;
  }

  .relay-demo__memory {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .relay-demo__agents {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .relay-demo__agent {
    min-height: 260px;
  }

  .relay-distinct .overview__card--how .overview__card-decoration {
    min-width: 0;
    width: 42%;
    max-width: 170px;
  }

  .relay-distinct .overview__card--how .overview__card-content {
    max-width: 70%;
  }

  .relay-distinct .overview__card--what {
    padding-right: 32px;
  }

  .relay-distinct .overview__card--what .overview__card-decoration,
  .relay-distinct .overview__card--database .overview__card-decoration {
    opacity: .18;
    width: 52%;
    right: 14px;
  }

  .relay-distinct .overview__card--database .overview__card-text {
    padding-right: 0;
  }

  .relay-distinct .use-cases__protocol {
    padding-right: 40px;
  }

  .relay-distinct .use-cases__protocol-decoration {
    opacity: .1;
    height: calc(100% - 32px);
    right: -80px;
    top: 16px;
    bottom: 16px;
    z-index: 0;
  }
}

@media (max-width: 760px) {
  .relay-distinct .overview__video.relay-demo-mode {
    aspect-ratio: auto;
    min-height: 720px;
  }

  .relay-demo {
    inset: 14px;
  }

  .relay-demo__memory {
    padding: 14px;
  }

  .relay-demo__memory strong {
    font-size: 17px;
  }

  .relay-demo__memory-list {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .relay-demo__memory-list span {
    flex: 1 1 100%;
    font-size: 12px;
  }

  .relay-demo__agents {
    padding: 0 14px 14px;
  }

  .relay-demo__agent-head {
    padding: 11px 13px;
  }

  .relay-demo__agent-head strong {
    font-size: 14px;
  }

  .relay-demo__status {
    font-size: 11px;
  }

  .relay-demo__chat {
    padding: 12px;
  }

  .relay-demo__bubble {
    max-width: 92%;
    font-size: 12px;
  }

  .relay-demo__composer input {
    font-size: 12px;
    padding: 9px 11px;
  }

  .relay-demo__composer button {
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .relay-distinct .header {
    padding-top: 16px;
  }

  .relay-distinct .header .container,
  .relay-distinct .hero__container,
  .relay-strip__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .relay-distinct .header__bar {
    padding: 10px 10px 10px 16px;
  }

  .relay-distinct .header__logo-text {
    font-size: 18px;
  }

  .relay-distinct .header__logo:before {
    width: 38px;
    height: 38px;
  }

  .relay-distinct .header__twitter {
    padding: 10px 14px;
    font-size: 14px;
  }

  .relay-distinct .hero {
    min-height: 96vh;
    padding-top: 128px;
    padding-bottom: 72px;
  }

  .relay-distinct .hero__title-prefix,
  .relay-distinct .hero__title-tagline {
    font-size: 30px;
    line-height: 1.1;
  }

  .relay-distinct .hero__title-name {
    font-size: clamp(58px, 18vw, 72px);
    line-height: .96;
  }

  .relay-distinct .hero__actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .relay-distinct .hero__actions .button {
    padding: 12px 18px;
    font-size: 14px;
  }

  .relay-distinct .overview__card--how {
    display: block;
    min-height: 360px;
    padding: 30px;
  }

  .relay-distinct .overview__card--how .overview__card-content {
    max-width: none;
  }

  .relay-distinct .overview__card--how .overview__card-title {
    max-width: 220px;
    font-size: 28px;
    line-height: 1.08;
  }

  .relay-distinct .overview__card--how .overview__card-text {
    max-width: 230px;
  }

  .relay-distinct .overview__card--how .overview__card-decoration {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46%;
    max-width: 160px;
    opacity: .36;
  }

  .relay-distinct .overview__card--what .overview__card-decoration,
  .relay-distinct .overview__card--database .overview__card-decoration {
    opacity: .12;
    width: auto;
    max-width: none;
    height: 72%;
  }

  .relay-distinct .use-cases__protocol {
    padding: 30px;
  }

  .relay-distinct .use-cases__protocol-title,
  .relay-distinct .use-cases__protocol-text {
    max-width: 260px;
  }

  .relay-distinct .use-cases__protocol-decoration {
    opacity: .12;
    height: 76%;
    right: -238px;
    top: 34px;
  }

  .relay-hero-panel {
    min-height: 310px;
    border-radius: 24px;
  }

  .relay-hero-panel:before {
    inset: 20px;
  }

  .relay-hero-panel__top {
    top: 20px;
    left: 22px;
    right: 22px;
  }

  .relay-hero-panel__node {
    width: 116px;
    padding: 12px;
  }

  .relay-hero-panel__node--a {
    top: 78px;
    left: 28px;
  }

  .relay-hero-panel__node--b {
    top: 118px;
    right: 22px;
  }

  .relay-hero-panel__node--c {
    bottom: 42px;
  }

  .relay-hero-panel__line--ab {
    left: 122px;
    width: 120px;
  }

  .relay-hero-panel__line--bc {
    right: 94px;
    width: 120px;
  }

  .relay-hero-panel__line--ca {
    left: 74px;
    width: 120px;
  }

  .relay-hero-panel__chip {
    left: 22px;
    bottom: 20px;
    max-width: calc(100% - 44px);
    white-space: nowrap;
    font-size: 12px;
  }

  .relay-distinct .overview__video.relay-demo-mode {
    aspect-ratio: auto;
    min-height: 760px;
  }

  .relay-demo {
    inset: 12px;
    border-radius: 18px;
  }

  .relay-demo__memory {
    padding: 13px;
  }

  .relay-demo__memory strong {
    font-size: 16px;
  }

  .relay-demo__memory-list {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .relay-demo__memory-list span {
    flex: 1 1 100%;
    white-space: normal;
  }

  .relay-demo__agents {
    padding: 0 12px 12px;
    gap: 12px;
  }

  .relay-demo__bubble {
    max-width: 92%;
    font-size: 13px;
  }

  .relay-demo__composer {
    padding: 9px;
  }

  .relay-demo__composer button {
    padding: 0 12px;
  }

  .relay-distinct .overview__card--intro .overview__card-icon {
    display: none;
  }

  .relay-distinct .overview__card--what .overview__card-decoration,
  .relay-distinct .overview__card--database .overview__card-decoration {
    opacity: .08;
    right: -210px;
    width: auto;
    max-width: none;
    height: 70%;
  }

  .relay-distinct .overview__card--what .overview__card-title,
  .relay-distinct .overview__card--what .overview__card-text,
  .relay-distinct .overview__card--database .overview__card-content,
  .relay-distinct .overview__card--intro .overview__card-title,
  .relay-distinct .overview__card--intro .overview__card-text {
    position: relative;
    z-index: 2;
  }
}
