/* The home hero has its own layout. The shared header and other page heroes use site.css. */
.cb-home-hero {
  --hero-text: #f7f9ff;
  --hero-muted: #b4c1dc;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 7.4vw, 110px) 0 clamp(92px, 8vw, 116px);
  color: var(--hero-text);
  background:
    radial-gradient(ellipse at 79% 16%, rgba(60, 88, 197, .35), transparent 60%),
    radial-gradient(ellipse at 92% 94%, rgba(38, 94, 165, .24), transparent 45%),
    linear-gradient(128deg, #0b1020 8%, #111b37 68%, #101b32);
}

.cb-home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(162, 189, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 189, 255, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(106deg, transparent 14%, #000 75%);
  mask-image: linear-gradient(106deg, transparent 14%, #000 75%);
  pointer-events: none;
  content: "";
}

.cb-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(28px, 4.35vw, 64px);
}

.cb-home-hero-copy {
  min-width: 0;
}

.cb-home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 5px 12px;
  border: 1px solid rgba(153, 180, 255, .24);
  border-radius: 99px;
  background: rgba(124, 156, 255, .10);
  color: #cedbff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cb-home-hero-status {
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: #84d8ff;
  box-shadow: 0 0 10px #74c9ffad;
}

.cb-home-hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.63vw, 66px);
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: -.064em;
}

.cb-home-hero h1 > span {
  display: block;
}

.cb-home-hero-accent {
  color: #a7b9ff;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .cb-home-hero-accent {
    width: fit-content;
    color: transparent;
    background: linear-gradient(95deg, #a8b7ff 0%, #8bafff 58%, #95e4f8 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.cb-home-hero-lead {
  max-width: 420px;
  margin: 23px 0 0;
  color: var(--hero-muted);
  font-size: clamp(16px, 1.44vw, 19px);
  line-height: 1.72;
}

.cb-home-hero-lead strong {
  color: #e2eaff;
}

.cb-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 29px;
}

.cb-home-hero-actions .btn {
  min-height: 53px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.3;
}

.cb-home-hero-primary {
  color: #fff;
  background: linear-gradient(135deg, #4059e9, #374ad4);
  box-shadow: 0 10px 30px rgba(54, 79, 230, .39), inset 0 1px rgba(255, 255, 255, .21);
}

.cb-home-hero-primary:hover {
  background: #465ce5;
}

.cb-home-hero-action-arrow {
  margin-left: 3px;
  font-size: 11px;
  opacity: .85;
}

.cb-home-hero-secondary {
  border-color: rgba(164, 186, 236, .33);
  color: #e8eeff;
  background: rgba(151, 177, 245, .08);
}

.cb-home-hero-secondary:hover {
  background: rgba(151, 177, 245, .16);
}

.cb-home-hero :is(a, button):focus-visible {
  outline: 2px solid #a6ddff;
  outline-offset: 4px;
}

.cb-home-hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 9px 19px;
  width: fit-content;
  margin: 24px 0 0;
  padding: 0;
  color: var(--hero-muted);
  font-size: 13px;
  list-style: none;
}

.cb-home-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cb-home-hero-benefits .bi {
  flex: none;
  color: #8ddcf4;
  font-size: 15px;
  line-height: 1;
}

.cb-home-engine {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 1.9vw, 22px);
  border: 1px solid rgba(145, 175, 248, .31);
  border-radius: 25px;
  background: linear-gradient(144deg, #1c2b50, #121d38 62%, #142340);
  box-shadow: 0 24px 70px rgba(4, 8, 20, .36), inset 0 1px rgba(221, 232, 255, .10);
}

.cb-home-engine-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
}

.cb-home-engine-mark {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid #657db078;
  border-radius: 12px;
  color: #bfd3ff;
  background: #688bfa26;
  font-size: 20px;
}

.cb-home-engine-heading {
  display: grid;
  gap: 3px;
  line-height: 1.17;
}

.cb-home-engine-kicker {
  color: #a9bdf8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .105em;
}

.cb-home-engine-heading strong {
  color: #f4f7ff;
  font-size: 20px;
  letter-spacing: -.045em;
}

.cb-home-engine-tag {
  padding: 3px 8px;
  border: 1px solid #91aaf244;
  border-radius: 99px;
  color: #c0cced;
  font-size: 11px;
  white-space: nowrap;
}

.cb-home-engine-board {
  padding: 14px 12px 5px;
  border: 1px solid #859fdd36;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at center, #293e77 0%, transparent 72%),
    radial-gradient(circle, #a3bbff30 1px, transparent 1.4px) 2px 2px / 17px 17px,
    #101b34;
}

.cb-home-engine-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  color: #8ea6de;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-align: center;
}

.cb-home-engine-legend span:first-child {
  justify-self: start;
  width: 75%;
}

.cb-home-engine-legend span:last-child {
  justify-self: end;
  width: 75%;
}

.cb-home-engine-legend b {
  margin-left: 4px;
  color: #bbc9e9;
  letter-spacing: 0;
}

.cb-home-engine-map {
  position: relative;
  height: clamp(190px, 17vw, 245px);
}

.cb-home-engine-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}

.cb-home-engine-wire use,
.cb-home-engine-signal {
  vector-effect: non-scaling-stroke;
}

.cb-home-engine-wire {
  stroke: #647eb9;
  stroke-width: 1.2;
  stroke-opacity: .68;
}

.cb-home-engine-signals {
  stroke-width: 2.25;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px #79c3ffab);
}

.cb-home-engine-signal {
  --delay: 0s;
  opacity: 0;
}

.cb-home-engine-signal--in {
  stroke: #a3bcff;
}

.cb-home-engine-signal--out {
  stroke: #8ceaf4;
}

.cb-home-engine-signal:nth-child(1) { --delay: -2.8s; }
.cb-home-engine-signal:nth-child(2) { --delay: -1.1s; }
.cb-home-engine-signal:nth-child(3) { --delay: -.45s; }
.cb-home-engine-signal:nth-child(4) { --delay: -.15s; }
.cb-home-engine-signal:nth-child(5) { --delay: -3.5s; }
.cb-home-engine-signal:nth-child(6) { --delay: -2.15s; }

.cb-home-engine-nodes {
  position: absolute;
  inset-block: 0;
  display: grid;
  width: 25%;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-home-engine-nodes--in {
  left: 0;
  --node-accent: #b9caff;
  --node-tint: #536ce04a;
}

.cb-home-engine-nodes--out {
  right: 0;
  --node-accent: #a0e0f3;
  --node-tint: #3676924a;
}

.cb-home-engine-nodes li {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid #829bd94f;
  border-radius: 10px;
  color: #e6edff;
  background: #172548;
  box-shadow: inset 0 1px rgba(190, 208, 250, .07), 0 3px 11px rgba(7, 16, 37, .22);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 700;
  line-height: 1.15;
}

.cb-home-engine-nodes .bi {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: var(--node-accent);
  background: var(--node-tint);
  font-size: 14px;
}

.cb-home-engine-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 31%;
  min-height: 122px;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 9px 3px 11px;
  transform: translate(-50%, -50%);
  border: 1px solid #7f9bffad;
  border-radius: 16px;
  background: linear-gradient(150deg, #2b4385, #1b2b59 67%);
  box-shadow:
    0 0 0 5px #81a2ff18,
    0 0 0 10px #81a2ff0b,
    0 10px 28px #050a1d9e,
    inset 0 1px #c1d5ff38;
  text-align: center;
}

.cb-home-engine-core::after {
  position: absolute;
  inset: -3px;
  border: 1px solid #91cbff9c;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  content: "";
}

.cb-home-engine-core-light {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3f4ff;
  box-shadow: 0 0 9px #91ecfc;
}

.cb-home-engine-core-icon {
  display: block;
  width: 50px;
  height: 45px;
}

.cb-home-engine-core strong {
  color: #f4f8ff;
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1;
  letter-spacing: -.055em;
}

.cb-home-engine-core small {
  color: #bdcdf4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.cb-home-engine-footer {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 8px;
  margin-top: 9px;
}

.cb-home-engine-footer a,
.cb-home-engine-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.cb-home-engine-footer a {
  padding: 0 5px;
  color: #d2dfff;
}

.cb-home-engine-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cb-home-engine-toggle {
  padding: 0 8px;
  border: 1px solid #90a9ed45;
  color: #c4d1ee;
  background: #a0b6f00d;
  cursor: pointer;
}

.cb-home-engine-toggle:hover {
  color: #fff;
  background: #a0b6f027;
}

.cb-home-engine-toggle[hidden] {
  display: none;
}

#dashboardPreview {
  scroll-margin-top: 90px;
}

@keyframes cb-home-engine-flow {
  0% { stroke-dashoffset: .24; opacity: 0; }
  7% { opacity: .96; }
  35% { opacity: .96; }
  48%, 100% { stroke-dashoffset: -1.05; opacity: 0; }
}

@keyframes cb-home-engine-indicator {
  0%, 100% { opacity: .48; }
  42%, 56% { opacity: 1; }
}

@keyframes cb-home-engine-core-wave {
  0%, 33% { opacity: 0; transform: scale(1); }
  41% { opacity: .66; }
  68%, 100% { opacity: 0; transform: scale(1.1); }
}

@media (prefers-reduced-motion: no-preference) {
  .cb-home-engine.is-flow-ready .cb-home-engine-signal {
    stroke-dasharray: .24 1.5;
    animation: cb-home-engine-flow 3.9s linear var(--delay) infinite;
  }

  .cb-home-engine.is-flow-ready .cb-home-engine-core-light {
    animation: cb-home-engine-indicator 3.9s ease-in-out infinite;
  }

  .cb-home-engine.is-flow-ready .cb-home-engine-core::after {
    animation: cb-home-engine-core-wave 3.9s ease-out -.5s infinite;
  }

  .cb-home-engine.is-flow-ready:is(.is-flow-paused, .is-flow-offscreen) :is(.cb-home-engine-signal, .cb-home-engine-core-light),
  .cb-home-engine.is-flow-ready:is(.is-flow-paused, .is-flow-offscreen) .cb-home-engine-core::after {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cb-home-hero :is(a, button) {
    transition: none;
  }

  .cb-home-hero-actions .btn:hover {
    transform: none;
  }
}

@media (max-width: 1000px) and (min-width: 851px) {
  .cb-home-engine-nodes li {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 850px) {
  .cb-home-hero {
    padding: 48px 0 89px;
  }

  .cb-home-hero-grid {
    width: min(calc(100% - 36px), 584px);
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .cb-home-hero h1 {
    font-size: clamp(37px, 7.2vw, 58px);
  }

  .cb-home-hero-lead {
    max-width: 490px;
  }

  .cb-home-engine-nodes li {
    font-size: 13px;
  }

  .cb-home-engine-core strong {
    font-size: 24px;
  }
}

@media (max-width: 540px) {
  .cb-home-hero {
    padding-top: 35px;
  }

  .cb-home-hero-grid {
    gap: 23px;
  }

  .cb-home-hero-kicker {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .cb-home-hero h1 {
    font-size: clamp(31px, 9.4vw, 48px);
  }

  .cb-home-hero-lead {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.58;
  }

  .cb-home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 19px;
  }

  .cb-home-hero-actions .btn {
    min-height: 48px;
    gap: 5px;
    padding-inline: 4px;
    font-size: 13px;
  }

  .cb-home-hero-action-arrow {
    display: none;
  }

  .cb-home-hero-benefits {
    gap: 6px 14px;
    margin-top: 15px;
    font-size: 12px;
  }

  .cb-home-engine {
    padding: 13px;
    border-radius: 19px;
  }

  .cb-home-engine-head {
    gap: 8px;
    margin-bottom: 11px;
  }

  .cb-home-engine-mark {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    font-size: 16px;
  }

  .cb-home-engine-heading strong {
    font-size: 16px;
  }

  .cb-home-engine-kicker {
    font-size: 8px;
    letter-spacing: .07em;
  }

  .cb-home-engine-tag {
    padding-inline: 6px;
    font-size: 9px;
  }

  .cb-home-engine-board {
    padding: 10px 7px 3px;
    border-radius: 12px;
  }

  .cb-home-engine-map {
    height: clamp(158px, 40vw, 202px);
  }

  .cb-home-engine-legend {
    font-size: 9px;
  }

  .cb-home-engine-legend b {
    margin-left: 2px;
  }

  .cb-home-engine-nodes li {
    min-height: 41px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 8px;
    font-size: clamp(10px, 2.72vw, 12px);
    text-align: center;
  }

  .cb-home-engine-nodes .bi {
    width: 18px;
    height: 16px;
    border-radius: 4px;
    font-size: 11px;
  }

  .cb-home-engine-core {
    min-height: 92px;
    gap: 3px;
    border-radius: 11px;
    box-shadow: 0 0 0 4px #81a2ff1c, 0 0 0 8px #81a2ff0a, 0 8px 20px #050a1d84;
  }

  .cb-home-engine-core-light {
    top: 6px;
    right: 6px;
    width: 4px;
    height: 4px;
  }

  .cb-home-engine-core-icon {
    width: 35px;
    height: 33px;
  }

  .cb-home-engine-core strong {
    font-size: clamp(13px, 4vw, 20px);
  }

  .cb-home-engine-core small {
    font-size: 9px;
  }

  .cb-home-engine-footer {
    min-height: 36px;
    margin-top: 7px;
  }

  .cb-home-engine-footer a,
  .cb-home-engine-toggle {
    min-height: 34px;
    font-size: 11px;
  }
}

@media (forced-colors: active) {
  .cb-home-hero-accent {
    color: CanvasText;
    background: none;
  }
}
