.landing-demo-portal {
  display: none;
}

.landing-demo-overlay[hidden] {
  display: none !important;
}

html.landing-demo-is-open,
body.landing-demo-is-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(124px + env(safe-area-inset-top)) 28px 96px;
  }

  .hero__layout {
    gap: 52px;
  }

  .hero__eyebrow {
    margin-bottom: 20px;
  }

  .hero__title {
    margin-bottom: 32px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 11px;
  }

  .hero__actions .btn {
    width: min(100%, 360px);
    justify-content: center;
  }

  .hero__how-link {
    display: none !important;
  }

  html:is([lang="ru"], [lang="en"]) .hero__how-link {
    display: inline-flex !important;
  }

  .hero__micro {
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__screen--mobile {
    display: none !important;
  }

  .landing-demo-portal {
    position: relative;
    display: block;
    width: min(100%, 400px);
    margin: 0 auto;
  }

  .landing-demo-launch {
    position: relative;
    z-index: 3;
    display: block;
    width: min(100%, 342px);
    min-height: 64px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5c402a;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .landing-demo-launch__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 0 30px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(250, 237, 221, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(183, 124, 24, 0.08),
      0 16px 34px rgba(89, 55, 29, 0.12),
      0 3px 9px rgba(183, 124, 24, 0.08);
    transform: translate3d(0, 0, 0);
    transition:
      border-color 180ms ease-out,
      box-shadow 180ms ease-out;
    will-change: transform;
  }

  .landing-demo-portal.is-demo-in-view .landing-demo-launch__body {
    animation: landing-demo-levitate 5.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  .landing-demo-launch__aura {
    position: absolute;
    inset: -7px;
    z-index: 1;
    display: block;
    overflow: visible;
    border-radius: inherit;
    pointer-events: none;
  }

  .landing-demo-launch__aura svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .landing-demo-launch__frame,
  .landing-demo-launch__smoke {
    fill: none;
    vector-effect: non-scaling-stroke;
  }

  .landing-demo-launch__frame {
    stroke: rgba(190, 130, 62, 0.2);
    stroke-width: 1.2;
  }

  .landing-demo-launch__smoke {
    stroke-linecap: round;
    stroke-dashoffset: 1000;
    animation-play-state: paused;
  }

  .landing-demo-launch__smoke--haze {
    stroke: rgba(222, 161, 91, 0.5);
    stroke-width: 7;
    stroke-dasharray: 235 765;
    filter: blur(4px);
    opacity: 0.72;
  }

  .landing-demo-launch__smoke--core {
    stroke: rgba(255, 226, 169, 0.96);
    stroke-width: 2.2;
    stroke-dasharray: 92 908;
    filter: drop-shadow(0 0 4px rgba(231, 164, 82, 0.92));
  }

  .landing-demo-portal.is-demo-in-view .landing-demo-launch__smoke {
    animation: landing-demo-smoke-orbit 5.6s linear infinite;
    animation-play-state: running;
  }

  .landing-demo-launch__label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.012em;
    text-shadow: 0 0 0 rgba(238, 175, 88, 0);
  }

  .landing-demo-portal.is-demo-in-view .landing-demo-launch__label {
    animation: landing-demo-label-glow 5.6s ease-in-out infinite;
  }

  .landing-demo-surface-home {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: min(100%, 342px);
    height: 64px;
    overflow: hidden;
    border-radius: 999px;
    visibility: hidden;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .landing-demo-surface-home.is-returning {
    visibility: visible;
  }

  .landing-demo-surface {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: #e9c8b2;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 30px 68px rgba(99, 61, 31, 0.17);
    transform-origin: 0 0;
    will-change: transform, border-radius;
  }

  .landing-demo-surface__viewport,
  .landing-demo-surface__viewport img,
  .landing-demo-surface__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .landing-demo-overlay__room {
    object-fit: cover;
    object-position: 50% 42%;
    user-select: none;
    -webkit-user-drag: none;
  }

  .landing-demo-surface__shade {
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(49, 29, 16, 0.01) 18%,
      transparent 58%,
      rgba(49, 29, 16, 0.14) 100%
    );
    pointer-events: none;
  }

  .landing-demo-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    pointer-events: none;
  }

  .landing-demo-launch:hover .landing-demo-launch__body,
  .landing-demo-launch:focus-visible .landing-demo-launch__body {
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(183, 124, 24, 0.1),
      0 20px 42px rgba(89, 55, 29, 0.15),
      0 4px 13px rgba(183, 124, 24, 0.12);
  }

  .landing-demo-launch:hover .landing-demo-launch__smoke--haze,
  .landing-demo-launch:focus-visible .landing-demo-launch__smoke--haze {
    opacity: 0.94;
  }

  .landing-demo-launch:active .landing-demo-launch__body {
    animation: none;
    transform: scale(0.985);
  }

  .landing-demo-launch:focus-visible {
    outline: none;
  }

  .landing-demo-launch:focus-visible .landing-demo-launch__body {
    outline: 2px solid rgba(183, 124, 24, 0.62);
    outline-offset: 4px;
  }

  .landing-demo-portal:not([data-demo-state='closed']) .landing-demo-launch__body,
  .landing-demo-portal:not([data-demo-state='closed']) .landing-demo-launch__smoke,
  .landing-demo-portal:not([data-demo-state='closed']) .landing-demo-launch__label {
    animation-play-state: paused;
  }

  .landing-demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: auto;
  }

  .landing-demo-overlay__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(38, 25, 17, 0.22);
  }

  .landing-demo-surface.is-fullscreen {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .landing-demo-surface.is-fullscreen .landing-demo-overlay__room {
    object-position: 50% 50%;
  }

  .landing-demo-surface.is-fullscreen .landing-demo-surface__shade {
    background: linear-gradient(
      180deg,
      rgba(54, 31, 16, 0.12),
      transparent 18%,
      transparent 82%,
      rgba(54, 31, 16, 0.08)
    );
  }

  .landing-demo-overlay__chrome {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }

  .landing-demo-overlay__close {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 248, 239, 0.66);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 10px 24px rgba(77, 48, 27, 0.12);
    color: #684a34;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
  }

  .landing-demo-overlay__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }

  .landing-demo-overlay__close:focus-visible {
    outline: 2px solid rgba(183, 124, 24, 0.84);
    outline-offset: 3px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .landing-demo-launch,
  .landing-demo-launch__body,
  .landing-demo-surface-home {
    min-height: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-demo-launch__body,
  .landing-demo-launch__label,
  .landing-demo-launch__smoke {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .landing-demo-launch__smoke--haze {
    stroke-dasharray: 210 790;
    stroke-dashoffset: 160;
    opacity: 0.5;
  }

  .landing-demo-launch__smoke--core {
    stroke-dasharray: 72 928;
    stroke-dashoffset: 160;
  }
}

@keyframes landing-demo-smoke-orbit {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes landing-demo-levitate {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -3px, 0);
  }
}

@keyframes landing-demo-label-glow {
  0%,
  24%,
  66%,
  100% {
    color: #5c402a;
    text-shadow: 0 0 0 rgba(238, 175, 88, 0);
  }
  42% {
    color: #6b451f;
    text-shadow:
      0 0 8px rgba(255, 229, 183, 0.92),
      0 0 17px rgba(229, 160, 75, 0.42);
  }
}
