:root {
  --motion-coral: #ff6b4a;
  --motion-olive: #a6ad76;
}

/* 1mai.ai brand lockup */
.brand {
  gap: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.055em;
  isolation: isolate;
}

.brand::before {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  flex: 0 0 34px;
  content: "";
  background: url("/favicon.svg?v=20260730-1") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 420ms ease;
}

.brand span {
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  border: 0;
  border-radius: 0;
}

.brand strong {
  color: var(--motion-coral);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.brand:hover::before,
.brand:focus-visible::before {
  transform: rotate(-7deg) scale(1.08);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(255, 107, 74, 0.12);
}

.brand:focus-visible {
  outline: 2px solid var(--motion-coral);
  outline-offset: 6px;
  border-radius: 8px;
}

footer .brand {
  min-width: max-content;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px 32px;
  min-height: 0;
  padding-top: 32px;
  padding-bottom: 26px;
}

footer .footer-caption {
  justify-self: center;
}

footer .footer-links {
  justify-self: end;
}

.footer-legal {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  width: 100%;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  line-height: 1.5;
}

.footer-legal__identity,
.footer-legal__contacts {
  display: flex;
  align-items: center;
  gap: 9px 18px;
}

.footer-legal__identity strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.footer-legal__identity span {
  white-space: nowrap;
}

.footer-legal__contacts {
  justify-content: flex-end;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 74, 0.45);
  text-underline-offset: 4px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
  text-decoration-color: var(--motion-coral);
}

/* Page exploration progress */
.motion-scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  transform: scaleX(var(--motion-progress, 0));
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    var(--motion-coral) 0 72%,
    var(--motion-olive) 100%
  );
  box-shadow: 0 0 18px rgba(255, 107, 74, 0.55);
  will-change: transform;
}

/* First-screen choreography and depth */
.hero-image,
.closing-image {
  background-image: url("/hero-interior.webp");
}

.commerce-card .match {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.commerce-card .match > div:nth-child(2) {
  min-width: 0;
}

.commerce-card .match strong {
  line-height: 1.2;
}

.commerce-card .match-thumb.product-thumb {
  overflow: hidden;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 19, 0.06);
}

.commerce-card .match-thumb.product-thumb::before,
.commerce-card .match-thumb.product-thumb::after {
  display: none !important;
  content: none !important;
}

@media (width <= 640px) {
  .commerce-card .match {
    grid-template-columns: 54px minmax(0, 1fr);
    row-gap: 4px;
  }

  .commerce-card .match-thumb {
    grid-row: 1 / span 2;
  }

  .commerce-card .match > div:nth-child(2) {
    grid-column: 2;
  }

  .commerce-card .match b {
    display: block;
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
    font-size: 11px;
  }
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      520px circle at var(--motion-spot-x, 72%) var(--motion-spot-y, 40%),
      rgba(255, 107, 74, 0.17),
      transparent 68%
    ),
    linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.035) 52%, transparent 59%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 500ms ease;
}

.motion-enabled .hero-image {
  transform:
    translate3d(
      var(--motion-hero-x, 0),
      var(--motion-hero-y, 0px),
      0
    )
    scale(1.075);
  transform-origin: center;
  will-change: transform;
}

.motion-enabled .closing-image {
  transform:
    translate3d(0, var(--motion-closing-y, 0px), 0)
    scale(1.11);
  will-change: transform;
}

.motion-enabled .nav-shell {
  animation: motion-nav-in 800ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .motion-hero-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(8px);
  transition:
    opacity 850ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform 850ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    filter 850ms var(--motion-delay, 0ms) ease;
}

.motion-enabled .motion-hero-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.motion-enabled .hero h1.motion-hero-item {
  transform: translate3d(0, 42px, 0);
  clip-path: inset(0 0 28% 0);
  transition:
    opacity 1s var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms var(--motion-delay, 0ms) ease,
    clip-path 1s var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enabled .hero h1.motion-hero-item.is-visible {
  transform: translate3d(0, 0, 0);
  clip-path: inset(0);
}

.motion-enabled .commerce-card .match,
.motion-enabled .commerce-card .basket-line,
.motion-enabled .commerce-card button {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enabled .commerce-card.is-visible .match,
.motion-enabled .commerce-card.is-visible .basket-line,
.motion-enabled .commerce-card.is-visible button {
  opacity: 1;
  transform: translateY(0);
}

.motion-enabled .commerce-card.is-visible .match:nth-of-type(1) {
  transition-delay: 500ms;
}

.motion-enabled .commerce-card.is-visible .match:nth-of-type(2) {
  transition-delay: 620ms;
}

.motion-enabled .commerce-card.is-visible .match:nth-of-type(3) {
  transition-delay: 740ms;
}

.motion-enabled .commerce-card.is-visible .basket-line {
  transition-delay: 860ms;
}

.motion-enabled .commerce-card.is-visible button {
  transition-delay: 960ms;
}

/* Scroll reveal system */
.motion-enabled .motion-reveal {
  --motion-lift: 38px;
  opacity: 0;
  transform: translate3d(0, var(--motion-lift), 0);
  filter: blur(7px);
  transition:
    opacity 750ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform 850ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms var(--motion-delay, 0ms) ease;
  will-change: opacity, transform;
}

.motion-enabled .motion-reveal.is-visible {
  --motion-lift: 0px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.motion-enabled .motion-reveal[data-motion-direction="left"] {
  transform: translate3d(-42px, 0, 0);
}

.motion-enabled .motion-reveal[data-motion-direction="right"] {
  transform: translate3d(42px, 0, 0);
}

.motion-enabled .motion-reveal[data-motion-direction="left"].is-visible,
.motion-enabled .motion-reveal[data-motion-direction="right"].is-visible {
  transform: translate3d(0, 0, 0);
}

/* Interactive cards */
.motion-enabled .motion-tilt {
  transform:
    perspective(1000px)
    rotateX(var(--motion-tilt-x, 0deg))
    rotateY(var(--motion-tilt-y, 0deg))
    translate3d(0, var(--motion-lift, 0), 0);
  transform-style: preserve-3d;
  transition:
    opacity 750ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms var(--motion-delay, 0ms) ease,
    box-shadow 300ms ease;
}

.motion-enabled .motion-tilt.is-pointer-active {
  box-shadow: var(--motion-card-shadow, 0 28px 70px rgba(23, 23, 19, 0.16));
}

.motion-enabled .value-card.motion-tilt > * {
  transform: translateZ(22px);
}

.motion-enabled .calc-card.motion-tilt > * {
  transform: translateZ(16px);
}

.motion-enabled .commerce-card.motion-tilt > * {
  transform: translateZ(18px);
}

.motion-enabled .button,
.motion-enabled .nav-cta a {
  transform: translate3d(var(--motion-magnet-x, 0), var(--motion-magnet-y, 0), 0);
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    box-shadow 240ms ease;
}

.motion-enabled .button:hover,
.motion-enabled .button:focus-visible {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Product scene exploration */
.motion-enabled .demo-room img {
  transform:
    translate3d(var(--motion-room-x, 0), var(--motion-room-y, 0), 0)
    scale(1.075);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.motion-enabled .tag {
  animation: motion-tag-float 4.2s ease-in-out infinite;
}

.motion-enabled .tag-table {
  animation-delay: -1.2s;
}

.motion-enabled .tag-chair {
  animation-delay: -2.4s;
}

.motion-enabled .tag i,
.motion-enabled .pulse {
  animation: motion-dot-pulse 2.2s ease-out infinite;
}

.motion-enabled .process span {
  position: relative;
  overflow: hidden;
  transition:
    color 420ms ease,
    padding-left 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enabled .process span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--motion-coral);
  transform: translateY(-50%);
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enabled .process span.active {
  color: #fff;
  padding-left: 24px;
}

.motion-enabled .process span.active::before {
  width: 15px;
}

/* Four-step product story: the room itself and the explanatory graphics
   change together, so every stage is understandable without reading ahead. */
.demo-frame[data-process-enhanced="true"],
.demo-frame[data-process-state] {
  --process-accent: var(--motion-coral);
}

.demo-room {
  isolation: isolate;
  background: #151512;
}

.demo-scenes,
.demo-graphics,
.demo-graphic {
  position: absolute;
  inset: 0;
}

.demo-scenes {
  z-index: 0;
  overflow: hidden;
}

.demo-scenes .demo-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.82) brightness(0.78);
  transform: scale(1.085);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease,
    transform 3.2s cubic-bezier(0.18, 0.72, 0.2, 1);
  will-change: opacity, transform;
}

.demo-scenes .demo-scene.is-active {
  z-index: 1;
  opacity: 1;
  filter: saturate(1) brightness(1);
  transform: scale(1.035);
}

.motion-enabled .demo-scenes .demo-scene,
.motion-enabled .demo-scenes .demo-scene.is-active {
  transform:
    translate3d(var(--motion-room-x, 0), var(--motion-room-y, 0), 0)
    scale(1.085);
}

.motion-enabled .demo-scenes .demo-scene.is-active {
  transform:
    translate3d(var(--motion-room-x, 0), var(--motion-room-y, 0), 0)
    scale(1.035);
}

.demo-graphics {
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.demo-graphic {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    visibility 0s 500ms,
    opacity 420ms ease,
    transform 540ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-graphic.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.demo-room > .tag {
  z-index: 6;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-frame[data-process-state="create"] .demo-room > .tag {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-frame[data-process-state="create"] .tag-table {
  transition-delay: 120ms;
}

.demo-frame[data-process-state="create"] .tag-chair {
  transition-delay: 240ms;
}

.demo-process-copy.is-entering {
  animation: demo-copy-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.demo-panel .process span {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.demo-panel .process span::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--process-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.motion-enabled .demo-panel .process span.active.is-progressing::after {
  animation: demo-process-progress var(--process-duration, 3200ms) linear both;
}

.demo-frame.is-process-paused .process span.active::after {
  animation-play-state: paused;
}

.demo-panel .process span:focus-visible {
  outline: 2px solid var(--process-accent);
  outline-offset: -3px;
}

/* 01 — source photo upload */
.demo-capture-frame {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.08);
}

.demo-capture-frame i {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--process-accent);
  border-style: solid;
}

.demo-capture-frame i:nth-child(1) {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-radius: 10px 0 0;
}

.demo-capture-frame i:nth-child(2) {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-radius: 0 10px 0 0;
}

.demo-capture-frame i:nth-child(3) {
  right: -2px;
  bottom: -2px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 10px;
}

.demo-capture-frame i:nth-child(4) {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 10px;
}

.demo-upload-card {
  position: absolute;
  bottom: 7%;
  left: 7%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  gap: 0 13px;
  width: min(360px, 57%);
  padding: 14px 15px 12px;
  color: #fff;
  background: rgba(18, 18, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.demo-upload-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #171713;
  background: var(--process-accent);
  border-radius: 12px;
  font-size: 21px;
  font-weight: 800;
}

.demo-upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.demo-upload-copy strong {
  font-size: 13px;
}

.demo-upload-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.demo-upload-check {
  display: grid;
  width: 25px;
  height: 25px;
  align-self: center;
  place-items: center;
  color: #173f2b;
  background: #c9f6b8;
  border-radius: 50%;
  font-size: 13px;
}

.demo-upload-progress {
  grid-column: 2 / 4;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.demo-upload-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--process-accent), #ffad96);
  border-radius: inherit;
}

.demo-upload-hint {
  position: absolute;
  top: 10%;
  right: 9%;
  padding: 8px 11px;
  color: #fff;
  background: rgba(18, 18, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
}

.motion-enabled .demo-graphic--upload.is-active .demo-capture-frame {
  animation: demo-capture-focus 1.1s 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--upload.is-active .demo-upload-card {
  animation: demo-upload-card-in 620ms 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--upload.is-active .demo-upload-progress i {
  animation: demo-upload-fill 1.3s 650ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.motion-enabled .demo-graphic--upload.is-active .demo-upload-check,
.motion-enabled .demo-graphic--upload.is-active .demo-upload-hint {
  animation: demo-pop-in 380ms 1.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 02 — AI spatial analysis */
.demo-ai-grid {
  position: absolute;
  inset: 4%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), #000 42%, #000);
}

.demo-ai-scan {
  position: absolute;
  z-index: 2;
  top: 7%;
  right: 5%;
  left: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--process-accent), #fff, transparent);
  box-shadow:
    0 0 18px rgba(255, 107, 74, 0.78),
    0 18px 42px rgba(255, 107, 74, 0.18);
}

.demo-ai-chip,
.demo-ai-pin,
.demo-match-score {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(18, 18, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  font-size: 10px;
}

.demo-ai-chip {
  top: 7%;
  left: 6%;
}

.demo-ai-chip i,
.demo-match-score i {
  width: 7px;
  height: 7px;
  background: var(--process-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 107, 74, 0.16);
}

.demo-ai-pin::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--process-accent);
  border-radius: 50%;
}

.demo-ai-pin--wall {
  top: 30%;
  left: 22%;
}

.demo-ai-pin--light {
  top: 22%;
  right: 8%;
}

.demo-ai-pin--zone {
  right: 23%;
  bottom: 24%;
}

.demo-ai-progress {
  position: absolute;
  right: 7%;
  bottom: 8%;
  display: grid;
  grid-template-columns: minmax(100px, 190px) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(18, 18, 15, 0.84);
  border-radius: 999px;
  font-size: 11px;
}

.demo-ai-progress::before {
  position: absolute;
  left: 16px;
  content: "Композиция";
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  transform: translateY(-16px);
}

.demo-ai-progress i {
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--process-accent) 0 87%, rgba(255, 255, 255, 0.14) 87%);
  border-radius: 999px;
}

.demo-ai-progress b {
  font-size: 11px;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-grid {
  animation: demo-grid-in 900ms 120ms ease both;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-scan {
  animation: demo-ai-scan 2.25s 180ms cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-chip {
  animation: demo-pop-in 480ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-pin--wall {
  animation: demo-pop-in 380ms 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-pin--light {
  animation: demo-pop-in 380ms 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-pin--zone {
  animation: demo-pop-in 380ms 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--create.is-active .demo-ai-progress {
  animation: demo-upload-card-in 460ms 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 02 — selected products, not yet placed */
.demo-match-stage,
.demo-match-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(18, 18, 15, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.demo-match-stage {
  top: 7%;
  left: 6%;
}

.demo-match-stage i {
  width: 7px;
  height: 7px;
  background: #bff3a8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(191, 243, 168, 0.15);
}

.demo-match-selection {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 7%;
  display: grid;
  gap: 9px;
  width: min(420px, 58%);
  padding: 16px;
  color: #171713;
  background: rgba(246, 243, 234, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.demo-match-selection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 2px;
}

.demo-match-selection__head > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.demo-match-selection__head small {
  color: #77736a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-match-selection__head strong {
  font-size: 14px;
}

.demo-match-selection__head > b {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #704606;
  background: #ffdda0;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.demo-match-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 12px;
}

.demo-match-product img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

.demo-match-product > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.demo-match-product strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-match-product small {
  color: #716e66;
  font-size: 8px;
}

.demo-match-product > b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #245c18;
  background: #dcffd0;
  border-radius: 50%;
  font-size: 11px;
}

.demo-match-more {
  padding: 2px 2px 0;
  color: #77736a;
  font-size: 8px;
  font-weight: 700;
}

.demo-match-next {
  bottom: 8%;
  left: 6%;
}

.motion-enabled .demo-graphic--match.is-active .demo-match-stage {
  animation: demo-pop-in 440ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--match.is-active .demo-match-selection {
  animation: demo-upload-card-in 560ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--match.is-active .demo-match-product:nth-child(2) {
  animation: demo-pop-in 420ms 580ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--match.is-active .demo-match-product:nth-child(3) {
  animation: demo-pop-in 420ms 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--match.is-active .demo-match-next {
  animation: demo-pop-in 420ms 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 04 — completed basket */
.demo-buy-card {
  position: absolute;
  right: 6%;
  bottom: 7%;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px 14px;
  width: min(390px, 57%);
  padding: 17px;
  color: #171713;
  background: rgba(246, 243, 234, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.demo-buy-success {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: #315c3a;
  border-radius: 50%;
  font-size: 20px;
}

.demo-buy-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.demo-buy-copy small,
.demo-buy-total small {
  color: #716e66;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-buy-copy strong {
  font-size: 14px;
}

.demo-buy-thumbs {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 34px;
}

.demo-buy-thumbs i,
.demo-buy-thumbs b {
  display: grid;
  width: 32px;
  height: 32px;
  margin-right: -7px;
  place-items: center;
  background: #a9967b;
  border: 2px solid #f6f3ea;
  border-radius: 50%;
}

.demo-buy-thumbs i:nth-child(2) {
  background: #695341;
}

.demo-buy-thumbs i:nth-child(3) {
  background: #7a7a55;
}

.demo-buy-thumbs b {
  color: #fff;
  background: #171713;
  font-size: 9px;
}

.demo-buy-total {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 19, 0.14);
}

.demo-buy-total strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.demo-buy-action {
  grid-column: 1 / -1;
  padding: 11px 14px;
  color: #fff;
  background: #171713;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-buy-action b {
  color: #c9f6b8;
  margin-left: 5px;
}

.demo-confetti {
  position: absolute;
  width: 7px;
  height: 16px;
  background: var(--process-accent);
  border-radius: 3px;
}

.demo-confetti--one {
  --confetti-rotate: 24deg;
  right: 13%;
  bottom: 44%;
  transform: rotate(var(--confetti-rotate));
}

.demo-confetti--two {
  --confetti-rotate: -32deg;
  right: 34%;
  bottom: 48%;
  background: #a6ad76;
  transform: rotate(var(--confetti-rotate));
}

.demo-confetti--three {
  --confetti-rotate: 58deg;
  right: 8%;
  bottom: 32%;
  background: #fff;
  transform: rotate(var(--confetti-rotate));
}

.demo-confetti--four {
  --confetti-rotate: 16deg;
  right: 39%;
  bottom: 36%;
  height: 8px;
  transform: rotate(var(--confetti-rotate));
}

.motion-enabled .demo-graphic--buy.is-active .demo-buy-card {
  animation: demo-buy-card-in 740ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--buy.is-active .demo-buy-success {
  animation: demo-success-pop 680ms 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .demo-graphic--buy.is-active .demo-confetti {
  animation: demo-confetti-out 900ms 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.motion-enabled .demo-graphic--buy.is-active .demo-confetti--two {
  animation-delay: 780ms;
}

.motion-enabled .demo-graphic--buy.is-active .demo-confetti--three {
  animation-delay: 840ms;
}

.motion-enabled .demo-graphic--buy.is-active .demo-confetti--four {
  animation-delay: 900ms;
}

/* Detail motion that rewards exploration */
.motion-enabled .benefit-grid article {
  background:
    linear-gradient(var(--motion-coral), var(--motion-coral)) 0 0 / 0 2px no-repeat;
  transition:
    background-size 700ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    opacity 750ms var(--motion-delay, 0ms) ease,
    transform 850ms var(--motion-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms var(--motion-delay, 0ms) ease;
}

.motion-enabled .benefit-grid article.is-visible {
  background-size: 100% 2px;
}

.motion-enabled .industry-list article b {
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    color 260ms ease;
}

.motion-enabled .industry-list article:hover b {
  color: var(--motion-coral);
  transform: translate(5px, -5px) rotate(8deg);
}

.motion-enabled .timeline {
  position: relative;
}

.motion-enabled .timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(var(--motion-coral), var(--motion-olive));
  transform: scaleY(var(--motion-timeline-progress, 0));
  transform-origin: top;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enabled .timeline.is-visible::before {
  --motion-timeline-progress: 1;
}

.motion-enabled .faq details[open] p {
  animation: motion-faq-open 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .faq summary span {
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    color 240ms ease;
}

.motion-enabled .faq summary:hover span {
  color: var(--ink);
  transform: rotate(90deg);
}

.motion-enabled .faq details[open] summary:hover span,
.motion-enabled .faq details[open] summary span {
  transform: rotate(45deg);
}

.motion-enabled .closing-copy em {
  display: inline-block;
  background: linear-gradient(90deg, var(--motion-coral), #ff9b79, var(--motion-coral));
  background-size: 200% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: motion-type-shine 5s linear infinite;
}

@keyframes demo-copy-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes demo-process-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes demo-capture-focus {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes demo-upload-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes demo-upload-fill {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }

  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@keyframes demo-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.76);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes demo-grid-in {
  from {
    opacity: 0;
    background-size: 92px 92px;
  }

  to {
    opacity: 1;
    background-size: 64px 64px;
  }
}

@keyframes demo-ai-scan {
  0% {
    top: 7%;
    opacity: 0;
  }

  12%,
  82% {
    opacity: 1;
  }

  100% {
    top: 90%;
    opacity: 0;
  }
}

@keyframes demo-match-line-in {
  from {
    opacity: 0;
    transform: rotate(var(--match-rotate)) scaleX(0);
  }

  to {
    opacity: 1;
    transform: rotate(var(--match-rotate)) scaleX(1);
  }
}

@keyframes demo-buy-card-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes demo-success-pop {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-18deg);
  }

  65% {
    opacity: 1;
    transform: scale(1.16) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes demo-confetti-out {
  from {
    opacity: 0;
    transform: translate(0, 18px) rotate(var(--confetti-rotate)) scale(0.45);
  }

  35% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate(-18px, -46px) rotate(160deg) scale(1);
  }
}

@keyframes motion-nav-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motion-tag-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes motion-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.46);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(255, 107, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 74, 0);
  }
}

@keyframes motion-faq-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motion-type-shine {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 980px) {
  .motion-enabled .motion-tilt,
  .motion-enabled .motion-tilt.is-visible {
    transform: translate3d(0, var(--motion-lift, 0), 0);
  }

  .hero::after {
    background: radial-gradient(
      430px circle at 78% 34%,
      rgba(255, 107, 74, 0.14),
      transparent 70%
    );
  }

  .demo-room {
    min-height: clamp(430px, 62vw, 650px);
  }

  .demo-upload-card,
  .demo-buy-card {
    width: min(390px, 68%);
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 15px;
  }

  .brand::before {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    flex-basis: 30px;
    border-radius: 9px;
  }

  .motion-scroll-progress {
    height: 2px;
  }

  .motion-enabled .motion-reveal {
    --motion-lift: 24px;
  }

  .demo-scenes .demo-scene {
    object-position: 58% center;
  }

  .demo-capture-frame {
    inset: 18px;
    border-radius: 14px;
  }

  .demo-capture-frame i {
    width: 25px;
    height: 25px;
  }

  .demo-upload-card,
  .demo-buy-card {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .demo-upload-hint {
    display: none;
  }

  .demo-ai-grid {
    inset: 16px;
    background-size: 48px 48px;
  }

  .demo-ai-chip {
    top: 28px;
    left: 28px;
  }

  .demo-ai-pin {
    padding: 7px 9px;
    font-size: 9px;
  }

  .demo-ai-pin--wall {
    top: 25%;
    left: 10%;
  }

  .demo-ai-pin--light {
    top: 17%;
    right: 7%;
  }

  .demo-ai-pin--zone {
    right: 9%;
    bottom: 30%;
  }

  .demo-ai-progress {
    right: 16px;
    bottom: 18px;
    left: 16px;
    grid-template-columns: 1fr auto;
  }

  .demo-match-stage {
    top: 18px;
    left: 18px;
  }

  .demo-match-selection {
    right: 16px;
    bottom: 58px;
    left: 16px;
    width: auto;
    padding: 12px;
    gap: 7px;
  }

  .demo-match-selection__head {
    gap: 8px;
  }

  .demo-match-selection__head > b {
    max-width: 92px;
    padding: 6px 8px;
    text-align: center;
  }

  .demo-match-product {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 8px;
    padding: 6px;
  }

  .demo-match-product img {
    width: 40px;
    height: 40px;
  }

  .demo-match-next {
    bottom: 16px;
    left: 16px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .demo-buy-card {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .demo-buy-success {
    width: 40px;
    height: 40px;
  }

  .demo-buy-copy strong {
    font-size: 12px;
  }

  .demo-buy-thumbs {
    display: none;
  }

  .demo-buy-total {
    padding-top: 10px;
  }

  .demo-buy-total strong {
    font-size: 18px;
  }

  .demo-panel .process span {
    min-height: 46px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 20px 30px;
  }

  footer .footer-caption,
  footer .footer-links {
    justify-self: start;
  }

  .footer-legal {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .footer-legal__identity,
  .footer-legal__contacts {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-shell {
    background: rgba(18, 18, 15, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .tag {
    background: rgba(246, 243, 234, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .try-dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero::after {
    mix-blend-mode: normal;
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-scroll-progress {
    display: none;
  }

  .hero::after {
    opacity: 0;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand::before,
  .motion-enabled .hero-image,
  .motion-enabled .closing-image,
  .motion-enabled .motion-hero-item,
  .motion-enabled .motion-reveal,
  .motion-enabled .motion-tilt,
  .motion-enabled .button,
  .motion-enabled .nav-cta a,
  .motion-enabled .demo-room img,
  .motion-enabled .tag,
  .motion-enabled .tag i,
  .motion-enabled .pulse,
  .motion-enabled .closing-copy em {
    opacity: 1;
    filter: none;
    animation: none;
    transform: none;
    transition: none;
  }
}
