:root {
    --text-width: 180px;
    --text-height: 140px;
    --text-y: 30px;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    position: relative;
    width: 300px;
    height: 600px;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    z-index: 1;
}

#model-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 3;
}

.text {
    position: absolute;
    top: var(--text-y);
    left: 50%;
    width: var(--text-width);
    height: var(--text-height);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-origin: center;
    z-index: 2;
    animation: textEntrance 1s ease-out forwards, pulse 2.5s ease-in-out infinite;
    animation-delay: 1.2s, 2.2s;
    opacity: 0;
    transform: translateX(-50%);
}

.cta {
    position: absolute;
    bottom: 50px;
    left: 51%;
    transform: translateX(-50%);
    width: 35%;
    max-width: 240px;
    z-index: 4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta.cta-visible {
    opacity: 1;
}

.cta:hover {
    transform: translateX(-50%) scale(1.05);
    filter: brightness(1.1);
}

.cta-sim-touch {
    transform: translateX(-50%) scale(1.12);
    filter: brightness(1.2) drop-shadow(0 0 12px #fff3);
    transition: transform 0.2s, filter 0.2s;
    z-index: 5;
}

@keyframes textEntrance {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(0) scale(1.10);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}