/*Улей — лендинг. Стартовый экран.*/
.hero {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 6vh) clamp(20px, 3.4vw, 56px) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

.hero__eyebrow {
  opacity: 0;
  animation: rise 800ms var(--ease-out) 50ms forwards;
}

/* Имя бренда */
.hero__title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(72px, 17vw, 240px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  margin: clamp(24px, 5vh, 64px) 0 0;
  text-align: center;
  user-select: none;
}

/* Буквы въезжают по очереди (шаг 90ms) */
.hero__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: letter-in 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 150ms);
  translate: 0 calc(var(--heroP, 0) * (var(--i) - 1.5) * -12px);
}

.hero__letter:nth-child(1) {
  --i: 0;
}

.hero__letter:nth-child(2) {
  --i: 1;
}

.hero__letter:nth-child(3) {
  --i: 2;
}

.hero__letter:nth-child(4) {
  --i: 3;
}

@keyframes letter-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__sub {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-1);
  max-width: 52ch;
  margin: 20px 0 0;
  text-wrap: pretty;
  opacity: 0;
  animation: rise 800ms var(--ease-out) 260ms forwards;
}

.hero__sub b {
  color: var(--ink-0);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  opacity: 0;
  animation: rise 800ms var(--ease-out) 380ms forwards;
}

.hero__note {
  font-size: 13px;
  color: var(--ink-2);
}

/* ── Снимок интерфейса ─────────────────────────────────────────────────── */
.hero__shot {
  width: min(100%, 1120px);
  margin-top: clamp(36px, 6vh, 72px);
  opacity: 0;
  animation: rise 900ms var(--ease-out) 500ms forwards;
  perspective: 1800px;
}

.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass-sheen), var(--glass-tint);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-inset), 0 40px 80px -40px rgba(20, 24, 33, 0.55);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

@media (max-width: 899px) {
  .shot--phone {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .hero__shot .shot {
    transform-origin: 50% 100%;
    transform: rotateX(calc(var(--shotP, 0) * 7deg)) scale(calc(1 - var(--shotP, 0) * 0.03));
    will-change: transform;
  }
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(28px, 5vh, 52px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  opacity: 0;
  animation: rise 800ms var(--ease-out) 620ms forwards;
  transition: color 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero__scroll:hover {
    color: var(--honey-deep);
  }
}

.hero__scroll svg {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero__title {
    max-width: 100%;
  }

  .bg--home .hx:nth-child(1) {
    --s: 240px;
  }

  .bg--home .hx:nth-child(2) {
    --s: 320px;
    right: -150px;
  }

  .bg--home .hx:nth-child(4) {
    --s: 220px;
  }

  .pill--early .pill__text {
    display: none;
  }

  .pill--early {
    padding: 9px;
  }
}


@media (prefers-reduced-motion: reduce) {

  .hero__eyebrow,
  .hero__letter,
  .hero__sub,
  .hero__actions,
  .hero__shot,
  .hero__scroll {
    animation: fade-in 260ms var(--ease-out) forwards;
  }

  .hero__letter {
    transform: none;
    translate: none;
  }

  .hero__scroll svg {
    animation: none;
  }

  .hero__shot .shot {
    transform: none;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}
