.aln-system-graphic.aln-prd-handoff-graphic {
  overflow: visible;
  min-height: 360px;
  height: 100%;
}

.aln-product-visual-example:has(.aln-prd-handoff-graphic) {
  overflow: visible;
}

.aln-prd-handoff-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  height: 100%;
  padding: 20px;
  border-color: rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(100, 116, 139, 0.08), transparent 52%),
    #fbfcfd;
}

.aln-prd-handoff-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(72%, 320px);
  height: min(68%, 240px);
  border-radius: 3px;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.1), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: aln-prd-glow-breathe 4s ease-in-out infinite;
}

@keyframes aln-prd-glow-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.aln-prd-handoff-scene {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  perspective: 1100px;
}

.aln-prd-iso-stack {
  position: relative;
  width: 248px;
  height: 196px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-36deg) translate3d(10px, -4px, 0);
  transform-origin: center center;
}

.aln-prd-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
  backface-visibility: hidden;
  animation-duration: 4s;
  animation-timing-function: cubic-bezier(0.22, 0.85, 0.32, 1);
  animation-iteration-count: infinite;
}

.aln-prd-sheet-back {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.82);
  animation-name: aln-prd-sheet-fall-back;
  animation-delay: 0s;
}

.aln-prd-sheet-mid {
  opacity: 0.82;
  background: rgba(255, 255, 255, 0.9);
  animation-name: aln-prd-sheet-fall-mid;
  animation-delay: 0.14s;
}

.aln-prd-sheet-front {
  z-index: 2;
  animation-name: aln-prd-sheet-fall-front;
  animation-delay: 0.28s;
}

.aln-prd-sheet-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(100, 116, 139, 0.1);
  color: #5f6873;
  font-family: var(--aln-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.aln-prd-sheet-tag svg {
  flex: 0 0 auto;
}

.aln-prd-sheet-title {
  margin: 0;
  color: #111827;
  font-family: var(--aln-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.aln-prd-sheet-sub {
  margin: 0;
  color: #6b7280;
  font-family: var(--aln-font-mono);
  font-size: 9px;
  line-height: 1.35;
}

.aln-prd-sheet-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.aln-prd-sheet-line {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.28);
}

.aln-prd-sheet-line.short {
  width: 58%;
}

.aln-prd-sheet-line.medium {
  width: 78%;
}

.aln-prd-sheet-line.long {
  width: 92%;
}

.aln-prd-sheet-sections {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.aln-prd-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aln-prd-sheet-section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151;
  font-family: var(--aln-font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.aln-prd-sheet-section-label svg {
  flex: 0 0 auto;
  color: #5f6873;
}

.aln-prd-sheet-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #4b5563;
  font-family: var(--aln-font-mono);
  font-size: 8px;
  line-height: 1.35;
}

.aln-prd-sheet-item svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #5f6873;
}

.aln-prd-sheet-item-muted {
  color: #9ca3af;
}

.aln-prd-tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.aln-prd-tool-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: #374151;
  font-family: var(--aln-font-mono);
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.aln-prd-tool-chip img {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  object-fit: contain;
}

@keyframes aln-prd-sheet-fall-back {
  0% {
    transform: translate3d(-22px, -36px, -28px);
    opacity: 0;
  }
  10% {
    opacity: 0.62;
  }
  24% {
    transform: translate3d(-22px, 27px, -28px);
  }
  32%,
  100% {
    transform: translate3d(-22px, 24px, -28px);
    opacity: 0.62;
  }
}

@keyframes aln-prd-sheet-fall-mid {
  0% {
    transform: translate3d(-11px, -32px, -14px);
    opacity: 0;
  }
  10% {
    opacity: 0.82;
  }
  24% {
    transform: translate3d(-11px, 14px, -14px);
  }
  32%,
  100% {
    transform: translate3d(-11px, 12px, -14px);
    opacity: 0.82;
  }
}

@keyframes aln-prd-sheet-fall-front {
  0% {
    transform: translate3d(0, -40px, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  24% {
    transform: translate3d(0, 2px, 0);
  }
  32%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .aln-prd-iso-stack {
    width: 220px;
    height: 178px;
    transform: rotateX(54deg) rotateZ(-34deg) translate3d(8px, -2px, 0) scale(0.94);
  }
}
