.hero-subpage {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: 96px max(32px, calc((100vw - 1216px) / 2)) 84px;
  color: #e8edf6;
  background: #070c16;
}
.hero-subpage__background,
.hero-subpage__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-subpage__background {
  object-fit: cover;
}
.hero-subpage__shade {
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 22, 0.9),
      rgba(7, 12, 22, 0.32) 58%,
      rgba(7, 12, 22, 0.5)
    ),
    linear-gradient(
      180deg,
      rgba(7, 12, 22, 0.62),
      rgba(7, 12, 22, 0.2) 38%,
      rgba(7, 12, 22, 0.72)
    );
}
.hero-subpage__snow {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-subpage__visual {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.hero-subpage__person {
  position: absolute;
  right: 3%;
  bottom: 0;
  height: 90%;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
}
.hero-subpage__bubble {
  position: absolute;
  z-index: 2;
  left: var(--bubble-x);
  top: var(--bubble-y);
  transform: translate(-50%, -50%);
  width: 250px;
  box-sizing: border-box;
  padding: 13px 15px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #171a20;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
} 
.hero-subpage__bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -9px;
  width: 16px;
  height: 9px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.hero-subpage__avatar {
  position: relative;
  z-index: 1;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.hero-subpage__bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.hero-subpage__bubble-header strong {
  color: #6b7688;
  font:
    400 8px/1.4 "IBM Plex Mono",
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-subpage__bubble-status {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #1db96e;
}
.hero-subpage__bubble p {
  min-height: 40px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.hero-subpage__bubble [data-hero-subpage-typewriter-output] {
  white-space: pre-line;
}
.hero-subpage__typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  margin-left: 1px;
  vertical-align: -2px;
  background: #1b5bff;
  animation: hero-subpage-cursor 1s steps(1) infinite;
}
.hero-subpage__content {
  position: relative;
  z-index: 3;
  width: min(620px, 58%);
}
.hero-subpage__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #9fc1ff;
  font:
    500 11px/1.4 "IBM Plex Mono",
    monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-subpage__topline span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1db96e;
  animation: hero-subpage-pulse 2s infinite;
}
.hero-subpage__headline {
  margin: 20px 0 0;
  color: #fff;
  font:
    600 clamp(52px, 6.4vw, 82px) / 0.98 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.03em;
}
.hero-subpage__subline {
  max-width: 620px;
  margin: 14px 0 0;
  color: #dce6fa;
  font:
    italic 400 clamp(21px, 2.1vw, 27px) / 1.25 "Space Grotesk",
    sans-serif;
}
.hero-subpage__intro {
  max-width: 560px;
  margin-top: 24px;
  color: #aeb8ca;
  font-size: 18px;
  line-height: 1.65;
}
.hero-subpage__intro > :first-child {
  margin-top: 0;
}
.hero-subpage__intro > :last-child {
  margin-bottom: 0;
}
.hero-subpage__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-subpage__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 27px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    background-position 0.25s ease;
}
.hero-subpage__button:focus-visible {
  outline: 3px solid #9fc1ff;
  outline-offset: 3px;
}
.hero-subpage__button--filled,
.hero-subpage__button--primary {
  background-image: linear-gradient(135deg, #3d8bff, #1b5bff, #0f47e6);
  background-position: 0 0;
  background-size: 200% 100%;
  box-shadow: 0 12px 30px rgba(27, 91, 255, 0.55);
}
.hero-subpage__button--filled:hover,
.hero-subpage__button--primary:hover {
  background-position: 100% 0;
}
.hero-subpage__button--border,
.hero-subpage__button--secondary {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.hero-subpage__button--border:hover,
.hero-subpage__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
@keyframes hero-subpage-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 185, 110, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(29, 185, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 185, 110, 0);
  }
}
@keyframes hero-subpage-cursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .hero-subpage {
    min-height: 820px;
    padding-inline: 24px;
  }
  .hero-subpage__content {
    width: min(620px, 72%);
  }
  .hero-subpage__person {
    opacity: 0.58;
    max-width: 72%;
  }
  .hero-subpage__bubble {
    width: 210px;
  }
}
@media (max-width: 620px) {
  .hero-subpage {
    min-height: 760px;
    padding: 110px 20px 52px;
  }
  .hero-subpage__content {
    width: 100%;
  }
  .hero-subpage__visual {
    opacity: 0.28;
  }
  .hero-subpage__bubble {
    display: none;
  }
  .hero-subpage__person {
    max-width: 100%;
    height: 82%;
    right: -20%;
  }
  .hero-subpage__headline {
    font-size: clamp(46px, 16vw, 66px);
  }
  .hero-subpage__intro {
    font-size: 16px;
  }
  .hero-subpage__buttons {
    align-items: stretch;
  }
  .hero-subpage__button {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-subpage__button,
  .hero-subpage__topline span,
  .hero-subpage__typewriter-cursor {
    transition: none;
    animation: none;
  }
  .hero-subpage__typewriter-cursor {
    display: none;
  }
}
