.dt-home-hero,
.cab-auth-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.dt-home-grid { position: relative; z-index: 1; }
.dt-hero-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 79% 49%, #6f262b73, transparent 63%),
        radial-gradient(ellipse at 94% 19%, #32204b88, transparent 44%);
}
.dt-hero-scene::before {
    content: "";
    position: absolute;
    inset: 32% -12% -70% -12%;
    transform: perspective(440px) rotateX(55deg);
    transform-origin: center top;
    background-image:
        linear-gradient(#f87f7540 1px, transparent 1px),
        linear-gradient(90deg, #f87f7530 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse at 74% 36%, #000 4%, transparent 64%);
    animation: dt-grid-flow 18s linear infinite;
}
.dt-hero-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #111014 0%, #111014ee 20%, #11101486 44%, transparent 68%),
        linear-gradient(0deg, #111014 0%, transparent 20%, transparent 91%, #11101480);
}
.dt-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes dt-grid-flow { to { background-position: 0 58px, 58px 0; } }
.is-hero-idle .dt-hero-scene::before { animation-play-state: paused; }

.cab-auth-visual > .dt-hero-scene {
    width: auto;
    z-index: 0;
    background:
        radial-gradient(ellipse at 68% 70%, #76263285, transparent 70%),
        radial-gradient(ellipse at 89% 19%, #362556a0, transparent 48%);
}
.cab-auth-visual .dt-hero-scene::before {
    inset-block: 35% -65%;
    mask-image: radial-gradient(ellipse at 57% 43%, #000 8%, transparent 76%);
}
.cab-auth-visual .dt-hero-scene::after {
    background: linear-gradient(0deg, #111014c4, transparent 24%, transparent 84%, #1110146e);
}
.cab-auth-visual .cab-ecosystem-art { position: relative; z-index: 1; pointer-events: none; }
.dt-scene-katana {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: clamp(88px, 12vw, 194px);
    height: clamp(9px, 1.5vw, 19px);
    visibility: hidden;
    opacity: .73;
    filter: drop-shadow(0 0 5px #ed554a66);
}
.dt-scene-katana[style] { visibility: visible; }
.dt-scene-katana > span,
.dt-scene-katana::before,
.dt-scene-katana::after { position: absolute; content: ""; }
.dt-scene-katana::before {
    inset: 30% 0 24% 26%;
    clip-path: polygon(0 0, 89% 5%, 100% 29%, 97% 61%, 90% 87%, 0 100%);
    background: linear-gradient(180deg, #f8b8b2, #6a4549 17%, #242028 29%, #17141a 63%, #584047 85%, #df746c);
}
.dt-scene-katana::after {
    inset: 7% 72% 7% 24%;
    border-radius: 50%;
    background: linear-gradient(#ce9d90, #35282c 40%, #281c21 68%, #ef765f);
}
.dt-scene-katana > span {
    inset: 26% 74% 23% 0;
    border-radius: 3px 0 0 3px;
    background:
        repeating-linear-gradient(52deg, transparent 0 4px, #736568 5px 6px, transparent 7px 10px),
        linear-gradient(#716970, #1d171e 30% 80%, #a16061);
}

@media (max-width: 620px) {
    .dt-hero-scene {
        background:
            radial-gradient(ellipse at 50% 77%, #70242e80, transparent 57%),
            radial-gradient(ellipse at 86% 67%, #3b27537a, transparent 44%);
    }
    .dt-hero-scene::before {
        inset-block: 51% -50%;
        mask-image: radial-gradient(ellipse at 50% 44%, #000, transparent 72%);
    }
    .dt-hero-scene::after {
        background: linear-gradient(180deg, #111014f5 0%, #111014df 36%, #11101454 61%, transparent 76%, #111014 100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .dt-hero-scene::before { animation: none; }
    .dt-scene-katana { display: none; }
}
