/* Final hero mockup layer. Loaded after styles.css so the provided blue mockup wins. */
body .site-header {
  position: fixed;
  top: 22px;
  right: 28px;
  left: 28px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body .site-header::before {
  content: "AI-анимация на Syntx";
  justify-self: start;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

body .main-menu-bar {
  justify-self: center;
  width: auto;
  min-width: min(710px, 54vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 70px rgba(31, 56, 83, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
}

body .main-menu-link {
  min-width: 128px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 13px;
  color: rgba(18, 23, 34, 0.76);
  font-size: 15px;
  font-weight: 900;
}

body .main-menu-link::after {
  display: none;
}

body .main-menu-link:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #151822;
}

body .main-menu-link.is-active,
body .main-menu-link.is-active:not(.main-menu-order) {
  background: rgba(255, 255, 255, 0.58);
  color: #151822;
  box-shadow: inset 0 -3px 0 #6858ff;
}

body .main-menu-order,
body .main-menu-order.is-active,
body .main-menu-order:hover {
  color: #fff;
  background: linear-gradient(135deg, #f4577e, #8759f4);
  box-shadow: 0 20px 48px rgba(164, 78, 215, 0.36);
}

body .auth-button {
  justify-self: end;
  min-width: 174px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(18, 23, 34, 0.78);
  font-size: 15px;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body .auth-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 44px rgba(31, 56, 83, 0.16);
}

body .hero-carousel {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(circle at 18% 46%, rgba(255, 255, 255, 0.5), transparent 22%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #6eb5ff 0%, #86c2ff 50%, #6eb5ff 100%);
}

body .hero-carousel .hero-shade {
  z-index: 4;
  background: transparent;
  pointer-events: none;
}

body .hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  height: auto;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body .hero-carousel::after {
  display: none;
}

body .hero-carousel-copy {
  position: absolute;
  left: 6vw;
  bottom: 12vh;
  z-index: 12;
  width: min(460px, 34vw);
  padding: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(34, 57, 89, 0.18);
}

body .hero-carousel-copy .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

body .hero-carousel-copy h1 {
  max-width: 460px;
  color: #fff;
  font-size: clamp(32px, 3.25vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

body .hero-carousel-copy p:not(.eyebrow) {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

body .hero-carousel .hero-cta-row {
  display: none;
}

body .panel-stage {
  min-height: 0;
}

body .content-panel[data-panel="home"] {
  display: none !important;
}

body .character-hero,
body .character-hero-bg {
  background: transparent;
}

body .character-hero::after {
  display: none;
}

body .character-ghost {
  inset: 15% 0 auto;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(116px, 22vw, 340px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

body .character-card {
  left: 56%;
  bottom: -5.5vh;
  width: auto;
  height: 86vh;
  max-height: none;
  pointer-events: none;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
  transform-origin: 50% 100%;
  transition:
    transform 720ms cubic-bezier(0.2, 0.78, 0.22, 1),
    opacity 720ms cubic-bezier(0.2, 0.78, 0.22, 1),
    filter 720ms cubic-bezier(0.2, 0.78, 0.22, 1);
  will-change: transform, opacity, filter;
}

body .character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
  transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
}

body .character-card.is-left {
  z-index: 3;
  opacity: 0.38;
  filter: blur(1.5px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(-132%) translateY(10vh) scale(0.36) rotate(-4deg);
}

body .character-card.is-right {
  z-index: 3;
  opacity: 0.42;
  filter: blur(1.4px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(28%) translateY(10vh) scale(0.37) rotate(4deg);
}

body .character-card.is-back {
  z-index: 2;
  opacity: 0.22;
  filter: blur(3px);
  transform: translateX(-40%) translateY(4vh) scale(0.28) rotate(0deg);
}

body .character-label {
  display: grid;
  right: 5.8vw;
  bottom: 12vh;
  z-index: 13;
  width: 255px;
  max-width: 255px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(30, 47, 69, 0.14);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body .character-label span {
  margin-bottom: 7px;
  color: #d7ff5d;
  font-size: 12px;
}

body .character-label strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

body .character-nav {
  top: auto;
  bottom: 3.5vh;
  z-index: 14;
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  box-shadow: none;
}

body .character-nav-prev {
  left: 6vw;
}

body .character-nav-next {
  right: auto;
  left: calc(6vw + 70px);
}

@media (max-width: 800px) {
  body .site-header {
    top: 22px;
    right: 16px;
    left: 16px;
    grid-template-columns: 1fr auto;
  }

  body .site-header::before {
    max-width: 150px;
    font-size: 12px;
    line-height: 1.2;
  }

  body .main-menu-bar {
    display: none;
  }

  body .auth-button {
    min-width: 156px;
    min-height: 49px;
    padding: 0 16px;
    font-size: 15px;
  }

  body .hero-carousel-copy {
    top: 128px;
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    max-width: 330px;
  }

  body .hero-carousel-copy h1 {
    max-width: 320px;
    font-size: 36px;
    line-height: 1.03;
  }

  body .hero-carousel-copy p:not(.eyebrow) {
    max-width: 300px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  body .character-ghost {
    top: 40%;
    right: auto;
    left: -8%;
    width: 116%;
    font-size: 28vw;
    line-height: 0.85;
    text-align: left;
    opacity: 0.42;
  }

  body .character-card {
    left: 59%;
    bottom: 4vh;
    width: auto;
    height: 49vh;
    max-height: none;
  }

  body .character-card.is-center {
    transform: translateX(-50%) scale(1);
  }

  body .character-card.is-left,
  body .character-card.is-right {
    display: block;
    opacity: 0;
    filter: blur(2px);
  }

  body .character-card.is-left {
    transform: translateX(-118%) translateY(1vh) scale(0.74) rotate(-4deg);
  }

  body .character-card.is-right {
    transform: translateX(18%) translateY(1vh) scale(0.74) rotate(4deg);
  }

  body .character-card.is-back {
    display: block;
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-50%) translateY(2vh) scale(0.64);
  }

  body .character-label {
    display: grid;
    right: 16px;
    bottom: 92px;
    width: 190px;
    max-width: 190px;
    padding: 12px 14px;
  }

  body .character-label span {
    font-size: 10px;
  }

  body .character-label strong {
    font-size: 19px;
  }

  body .character-nav {
    bottom: 24px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  body .character-nav-prev {
    left: 22px;
  }

  body .character-nav-next {
    left: 82px;
  }
}

@keyframes carouselNavPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 18px 42px rgba(124, 92, 255, 0.22),
      0 0 0 0 rgba(244, 87, 126, 0.34);
  }

  50% {
    transform: scale(1.07);
    box-shadow:
      0 24px 54px rgba(124, 92, 255, 0.34),
      0 0 0 10px rgba(244, 87, 126, 0);
  }
}

body .hero-carousel-copy {
  bottom: 17vh;
  width: min(560px, 38vw);
}

body .hero-carousel-copy .eyebrow {
  font-size: 15px;
  letter-spacing: 0.16em;
}

body .hero-carousel-copy h1 {
  max-width: 13ch;
  font-size: clamp(42px, 4.4vw, 66px);
  line-height: 0.96;
}

body .hero-carousel-copy p:not(.eyebrow) {
  max-width: 520px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.48;
}

body .character-label {
  bottom: 22vh;
  background:
    linear-gradient(135deg, rgba(244, 87, 126, 0.32), rgba(124, 92, 255, 0.26)),
    rgba(16, 17, 25, 0.16);
}

body .character-nav {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #f4577e, #7c5cff);
  color: #fff;
  box-shadow:
    0 18px 42px rgba(124, 92, 255, 0.22),
    0 0 0 0 rgba(244, 87, 126, 0.34);
  animation: carouselNavPulse 2.4s ease-in-out infinite;
}

body .character-nav:hover {
  animation-play-state: paused;
  background: linear-gradient(135deg, #ff5f8b, #6a58ff);
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  body .character-nav {
    animation: none;
  }
}

@media (max-width: 800px) {
  body .hero-carousel-copy {
    top: 112px;
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    max-width: 350px;
  }

  body .hero-carousel-copy h1 {
    max-width: 12ch;
    font-size: clamp(39px, 10.6vw, 48px);
  }

  body .hero-carousel-copy p:not(.eyebrow) {
    max-width: 330px;
    font-size: 14px;
  }

  body .character-label {
    bottom: 118px;
  }
}

@media (max-width: 800px) {
  html,
  body {
    overflow-x: hidden;
  }

  body .hero-carousel {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body .hero-carousel-copy {
    top: 104px;
    right: 18px;
    left: 18px;
    z-index: 14;
    width: auto;
    max-width: none;
  }

  body .hero-carousel-copy h1 {
    max-width: 11ch;
    font-size: clamp(34px, 10.5vw, 46px);
  }

  body .hero-carousel-copy p:not(.eyebrow) {
    max-width: min(330px, 92vw);
    font-size: 13px;
  }

  body .character-ghost {
    top: 47%;
    left: 0;
    width: 100%;
    color: transparent;
    font-size: 0;
    text-align: center;
    white-space: normal;
    opacity: 1;
  }

  body .character-ghost::before {
    content: "AI ANIMATION";
    display: block;
    color: rgba(255, 255, 255, 0.42);
    font-size: clamp(58px, 16vw, 112px);
    line-height: 0.9;
  }

  body .character-card {
    left: 50%;
    bottom: 76px;
    height: min(40vh, 330px);
    max-width: 82vw;
  }

  body .character-label {
    right: 18px;
    bottom: 76px;
    width: min(210px, calc(100vw - 36px));
    max-width: none;
  }

  body .character-nav {
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  body .site-header {
    top: 14px;
    right: 12px;
    left: 12px;
    gap: 10px;
  }

  body .site-header::before {
    max-width: 132px;
    font-size: 10px;
  }

  body .auth-button {
    min-width: 118px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  body .hero-carousel-copy {
    top: 88px;
  }

  body .hero-carousel-copy .eyebrow {
    font-size: 11px;
  }

  body .hero-carousel-copy h1 {
    max-width: 12ch;
    font-size: clamp(31px, 10vw, 40px);
  }

  body .hero-carousel-copy p:not(.eyebrow) {
    max-width: 292px;
    line-height: 1.42;
  }

  body .character-ghost {
    top: 50%;
  }

  body .character-ghost::before {
    font-size: clamp(52px, 15vw, 82px);
  }

  body .character-card {
    bottom: 68px;
    height: min(37vh, 270px);
  }

  body .character-label {
    display: none;
  }
}
