.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr);
  gap: clamp(44px, 5vw, 80px);
  align-items: start;
}

.hero-top .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.hero-top .memory-map {
  height: auto;
  align-self: start;
  box-sizing: border-box;
}

/* Крупная единая геометрия вместо разновесных Unicode-глифов. */
.workflow-icon {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 0;
}

.workflow-icon::before,
.workflow-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  color: currentColor;
}

.workflow-step:nth-child(1) .workflow-icon::before {
  left: 17px;
  top: 14px;
  width: 30px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.workflow-step:nth-child(1) .workflow-icon::after {
  left: 23px;
  top: 23px;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.workflow-step:nth-child(2) .workflow-icon::before {
  left: 15px;
  top: 15px;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.workflow-step:nth-child(2) .workflow-icon::after {
  left: 23px;
  top: 23px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 2px;
  opacity: .72;
}

.workflow-step:nth-child(3) .workflow-icon::before {
  left: 23px;
  top: 19px;
  width: 25px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 11px 0 currentColor, 0 22px 0 currentColor;
}

.workflow-step:nth-child(3) .workflow-icon::after {
  left: 15px;
  top: 19px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 11px 0 currentColor, 0 22px 0 currentColor;
}

.workflow-step:nth-child(4) .workflow-icon::before {
  left: 17px;
  top: 14px;
  width: 34px;
  height: 36px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.workflow-step:nth-child(4) .workflow-icon::after {
  left: 22px;
  top: 20px;
  width: 22px;
  height: 24px;
  background: #071a2c;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.workflow-step:nth-child(5) .workflow-icon::before {
  left: 14px;
  top: 13px;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.workflow-step:nth-child(5) .workflow-icon::after {
  left: 41px;
  top: 41px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.workflow-step:nth-child(6) .workflow-icon::before {
  left: 17px;
  top: 14px;
  width: 31px;
  height: 36px;
  background:
    radial-gradient(circle at 4px 4px, currentColor 0 4px, transparent 4.5px),
    radial-gradient(circle at 27px 13px, currentColor 0 4px, transparent 4.5px),
    radial-gradient(circle at 4px 32px, currentColor 0 4px, transparent 4.5px),
    linear-gradient(currentColor, currentColor) 3px 4px / 3px 28px no-repeat,
    linear-gradient(135deg, transparent 43%, currentColor 44% 56%, transparent 57%) 5px 4px / 22px 12px no-repeat;
}

.hero-demo {
  margin-top: 30px;
}

.hero-demo-heading {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, .7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 18px;
}

.hero-demo-title {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.hero-demo-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.hero-demo .terminal-panel {
  border-color: rgba(37, 133, 255, .58);
}

.hero-demo .terminal-panel pre {
  min-height: 250px;
  padding: 26px 30px;
  font-size: 15px;
}

.hero-shell > .hero-facts {
  margin-top: 18px;
}

.hero-shell > .hero-facts .hero-fact {
  min-height: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.hero-shell > .hero-facts .hero-fact-icon {
  position: relative;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 0;
  color: var(--cyan);
}

.hero-shell > .hero-facts .hero-fact-icon::before,
.hero-shell > .hero-facts .hero-fact-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.hero-shell > .hero-facts .hero-fact:nth-child(1) .hero-fact-icon::before {
  left: 7px;
  top: 7px;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero-shell > .hero-facts .hero-fact:nth-child(1) .hero-fact-icon::after {
  left: 13px;
  top: 13px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .65;
}

.hero-shell > .hero-facts .hero-fact:nth-child(2) .hero-fact-icon::before {
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.hero-shell > .hero-facts .hero-fact:nth-child(2) .hero-fact-icon::after {
  left: 17px;
  top: 8px;
  width: 2px;
  height: 20px;
  background: currentColor;
  box-shadow: -7px 7px 0 -0.5px currentColor, 7px -7px 0 -0.5px currentColor;
}

.hero-shell > .hero-facts .hero-fact:nth-child(3) .hero-fact-icon::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero-shell > .hero-facts .hero-fact:nth-child(3) .hero-fact-icon::after {
  left: 14px;
  top: 14px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero-shell > .hero-facts .hero-fact b {
  margin: 0 0 2px;
}

/* CTA: список шагов не растягивается в пустую высокую панель. */
.cta-box {
  align-items: start;
}

.cta-copy {
  align-self: center;
}

.cta-quickstart {
  align-self: start;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.cta-quickstart-kicker {
  margin-bottom: 12px;
}

.cta-steps {
  display: grid;
  gap: 10px;
}

.cta-steps li,
.cta-steps li:first-child {
  padding: 12px 14px;
  border: 1px solid rgba(126, 167, 214, .22);
  border-radius: 12px;
  background: rgba(4, 13, 27, .48);
}

@media (max-width: 1180px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-top .memory-map {
    max-width: none;
  }

  .hero-demo-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .hero-demo {
    margin-top: 22px;
  }

  .hero-demo-heading {
    margin-bottom: 14px;
  }

  .hero-demo .terminal-panel pre {
    min-height: 220px;
    padding: 20px 18px;
    font-size: 13px;
  }

  .hero-shell > .hero-facts {
    grid-template-columns: 1fr;
  }

  .workflow-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    transform: scale(.78);
    transform-origin: center;
  }
}
