/* Hero section and the animated mascot composition. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
  background: var(--navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.hero__aurora {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -200px;
  top: -200px;
  background: radial-gradient(circle, rgba(23, 53, 112, 0.65), transparent 60%);
  filter: blur(20px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(transparent, var(--navy-900));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(13, 38, 89, 0.35);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-15);
  animation: pulse 2.2s infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.hero__title .hl {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 40px rgba(215, 243, 0, 0.25);
}

.hero__text {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero__chips li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__chips span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--lime);
  padding: 2px 6px;
  border: 1px solid var(--lime-30);
  border-radius: 4px;
}

.hero__chips b {
  font-weight: inherit;
}

/* Hero visual */

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: center;
}

.hv-particles {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}

.hv-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hv-rings .ring {
  transform-box: view-box;
  transform-origin: 300px 300px;
}

.ring--1 {
  animation: spin 80s linear infinite;
}

.ring--2 {
  animation: spin 38s linear infinite reverse;
}

.ring--3 {
  animation: spin 24s linear infinite;
}

.ring-ticks line {
  stroke: var(--lime);
  stroke-width: 1.5;
  opacity: 0.5;
}

.hv-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(215, 243, 0, 0.2), rgba(215, 243, 0, 0.04) 45%, transparent 70%);
  filter: blur(10px);
  animation: breathe 6s ease-in-out infinite;
}

.hv-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44%;
  aspect-ratio: 1;
  margin: -22% 0 0 -22%;
}

.hv-mascot {
  position: absolute;
  inset: 0;
  animation: float 7s ease-in-out infinite;
}

.hv-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(215, 243, 0, 0.35)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hv-scan {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--mascot) center / contain no-repeat;
  mask: var(--mascot) center / contain no-repeat;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 44%,
    rgba(255, 255, 255, 0.75) 49.5%,
    rgba(255, 255, 255, 0) 50%,
    transparent 100%
  );
  background-size: 100% 300%;
  mix-blend-mode: overlay;
  animation: scan 4.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.hv-frame {
  position: absolute;
  inset: -16%;
  pointer-events: none;
}

.hv-frame i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--lime);
  opacity: 0.7;
}

.hv-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.hv-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.hv-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.hv-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.hv-frame__label,
.hv-frame__coords {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--lime);
  opacity: 0.75;
}

.hv-frame__label {
  top: 50%;
  left: -14px;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.hv-frame__coords {
  bottom: -22px;
  right: 0;
  color: var(--steel);
}

.hv-card {
  position: absolute;
  z-index: 3;
  background: rgba(7, 28, 69, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow:
    0 20px 50px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  animation: float 8s ease-in-out infinite;
  transition: translate 0.6s var(--ease-out);
}

.hv-card--code {
  top: 6%;
  left: -6%;
  padding: 0 0 12px;
  min-width: 230px;
  animation-delay: -2s;
}

.hv-card__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.hv-card__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-600);
}

.hv-card__bar i:first-child {
  background: var(--lime);
}

.hv-card__bar span {
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.hv-card pre {
  padding: 0 14px;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text);
}

.c-k {
  color: var(--steel);
}

.c-v {
  color: var(--text);
}

.c-f {
  color: var(--lime);
}

.c-s {
  color: #c9e26b;
}

.hv-card--metric {
  right: -4%;
  top: 20%;
  padding: 14px 16px;
  width: 158px;
  animation-delay: -4s;
}

.hv-card__label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hv-card__value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--text);
  line-height: 1.1;
  margin: 2px 0 10px;
}

.hv-card__value small {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 500;
}

.hv-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
}

.hv-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--lime-15), var(--lime));
  border-radius: 2px;
  transform-origin: bottom;
  animation: grow 2.6s var(--ease) infinite alternate;
}

.hv-bars i:nth-child(2n) {
  animation-delay: -0.8s;
}

.hv-bars i:nth-child(3n) {
  animation-delay: -1.6s;
}

.hv-card--status {
  bottom: 12%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--text);
  animation-delay: -1s;
}

.hv-card__time {
  color: var(--lime);
  margin-left: 6px;
}

.hv-card--api {
  bottom: 4%;
  right: 6%;
  padding: 9px 13px;
  color: var(--text);
  animation-delay: -5s;
}

.hv-tag {
  color: var(--navy-900);
  background: var(--lime);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  margin-right: 6px;
  font-size: 10.5px;
}

.hv-ok {
  color: var(--lime);
  margin-left: 6px;
}

.hv-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--lime);
  transform: rotate(45deg);
  transition: translate 0.6s var(--ease-out);
}

.hv-node--a {
  top: 14%;
  right: 26%;
}

.hv-node--b {
  bottom: 28%;
  right: 2%;
  width: 5px;
  height: 5px;
  background: var(--lime);
}

.hv-node--c {
  top: 46%;
  left: 2%;
  border-color: var(--steel);
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__scroll i {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--lime), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--text);
  animation: drip 2s var(--ease) infinite;
}

@media (max-width: 1100px) {
  .hv-card--code {
    left: -2%;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: calc(var(--header-h) + 30px);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas,
  .hero__chips {
    justify-content: center;
  }
  .hero__visual {
    max-width: 480px;
  }
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero__title {
    font-size: clamp(40px, 11.5vw, 56px);
  }
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 20px;
  }
  .eyebrow {
    font-size: 11px;
    padding: 6px 12px 6px 10px;
  }
  .hero__visual {
    max-width: 360px;
    margin-top: 10px;
  }
  .hv-card {
    font-size: 10.5px;
  }
  .hv-card--code {
    display: none;
  }
  .hv-card--metric {
    width: 112px;
    padding: 10px 12px;
    right: -3%;
    top: 2%;
  }
  .hv-card--status {
    left: -3%;
    bottom: 2%;
    padding: 9px 12px;
  }
  .hv-card__value {
    font-size: 22px;
  }
  .hv-bars {
    height: 24px;
  }
  .hv-card--api {
    display: none;
  }
  .hv-frame__coords,
  .hv-frame__label {
    display: none;
  }
}
