/* =========================================================
   60FPS SYSTEM ARCHITECTURES FOCAL-BAND SCROLL ENGINE
   COLOR-CODED PER LAYER (01 SKY, 02 EMERALD, 03 INDIGO, 04 ROSE)
   ========================================================= */
.arch-step {
    position: relative;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.arch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s ease,
                box-shadow 0.45s ease,
                background-color 0.45s ease;
    position: relative;
    overflow: hidden;
}

.arch-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.arch-header-pane {
    background: #f8fafc;
    border-color: #f1f5f9;
    transition: background 0.45s ease, border-color 0.45s ease;
}

.arch-step-badge {
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-step[data-step="1"] .arch-step-badge { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.arch-step[data-step="2"] .arch-step-badge { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.arch-step[data-step="3"] .arch-step-badge { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.arch-step[data-step="4"] .arch-step-badge { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.arch-spine-node {
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-cap-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
}

.arch-cap-icon {
    background: #f1f5f9;
    color: #475569;
    transition: all 0.35s ease;
}

.arch-status-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.35s ease;
}

.arch-status-dot {
    background: #94a3b8;
    transition: all 0.35s ease;
}

.arch-step.is-active .arch-card {
    transform: translate3d(0, -4px, 0) scale(1.012);
}
.arch-step.is-active .arch-card-glow { opacity: 1; }
.arch-step.is-active .arch-title { color: #ffffff !important; }
.arch-step.is-active .arch-desc strong { color: #ffffff !important; }
.arch-step.is-active .arch-watermark { color: rgba(255, 255, 255, 0.16) !important; }

/* STEP 01: LUMINOUS SKY & OCEAN BLUE GRADIENT */
.arch-step[data-step="1"] .arch-card-glow {
    background: radial-gradient(circle at 18% 50%, rgba(56, 189, 248, 0.18), transparent 68%);
}
.arch-step[data-step="1"].is-active .arch-card {
    border-color: #38bdf8;
    box-shadow: 0 24px 52px -12px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.45);
}
.arch-step[data-step="1"].is-active .arch-header-pane {
    background: radial-gradient(circle at 85% 18%, rgba(186, 230, 253, 0.42) 0%, transparent 58%),
                linear-gradient(135deg, #0ea5e9 0%, #0284c7 52%, #0369a1 100%);
    border-color: rgba(125, 211, 252, 0.5);
}
.arch-step[data-step="1"].is-active .arch-step-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.arch-step[data-step="1"].is-active .arch-desc { color: #f0f9ff !important; }
.arch-step[data-step="1"].is-active .arch-spine-node {
    background: #0ea5e9;
    border-color: #bae6fd;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.2), 0 8px 20px rgba(2, 132, 199, 0.4);
}
.arch-step[data-step="1"].is-active .arch-cap-card {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.12);
}
.arch-step[data-step="1"].is-active .arch-cap-icon {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.arch-step[data-step="1"].is-active .arch-status-pill {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}
.arch-step[data-step="1"].is-active .arch-status-dot {
    background: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
}

/* STEP 02: LUMINOUS EMERALD & TEAL GRADIENT */
.arch-step[data-step="2"] .arch-card-glow {
    background: radial-gradient(circle at 18% 50%, rgba(52, 211, 153, 0.18), transparent 68%);
}
.arch-step[data-step="2"].is-active .arch-card {
    border-color: #34d399;
    box-shadow: 0 24px 52px -12px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(52, 211, 153, 0.45);
}
.arch-step[data-step="2"].is-active .arch-header-pane {
    background: radial-gradient(circle at 85% 18%, rgba(167, 243, 208, 0.42) 0%, transparent 58%),
                linear-gradient(135deg, #10b981 0%, #059669 52%, #047857 100%);
    border-color: rgba(110, 231, 183, 0.5);
}
.arch-step[data-step="2"].is-active .arch-step-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}
.arch-step[data-step="2"].is-active .arch-desc { color: #ecfdf5 !important; }
.arch-step[data-step="2"].is-active .arch-spine-node {
    background: #10b981;
    border-color: #a7f3d0;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2), 0 8px 20px rgba(5, 150, 105, 0.4);
}
.arch-step[data-step="2"].is-active .arch-cap-card {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.12);
}
.arch-step[data-step="2"].is-active .arch-cap-icon {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.arch-step[data-step="2"].is-active .arch-status-pill {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.arch-step[data-step="2"].is-active .arch-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* STEP 03: LUMINOUS INDIGO & VIOLET GRADIENT */
.arch-step[data-step="3"] .arch-card-glow {
    background: radial-gradient(circle at 18% 50%, rgba(129, 140, 248, 0.18), transparent 68%);
}
.arch-step[data-step="3"].is-active .arch-card {
    border-color: #818cf8;
    box-shadow: 0 24px 52px -12px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(129, 140, 248, 0.45);
}
.arch-step[data-step="3"].is-active .arch-header-pane {
    background: radial-gradient(circle at 85% 18%, rgba(221, 214, 254, 0.42) 0%, transparent 58%),
                linear-gradient(135deg, #6366f1 0%, #4f46e5 52%, #4338ca 100%);
    border-color: rgba(165, 180, 252, 0.5);
}
.arch-step[data-step="3"].is-active .arch-step-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.arch-step[data-step="3"].is-active .arch-desc { color: #eef2ff !important; }
.arch-step[data-step="3"].is-active .arch-spine-node {
    background: #6366f1;
    border-color: #c7d2fe;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2), 0 8px 20px rgba(79, 70, 229, 0.4);
}
.arch-step[data-step="3"].is-active .arch-cap-card {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.12);
}
.arch-step[data-step="3"].is-active .arch-cap-icon {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.arch-step[data-step="3"].is-active .arch-status-pill {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.arch-step[data-step="3"].is-active .arch-status-dot {
    background: #6366f1;
    box-shadow: 0 0 8px #6366f1;
}

/* STEP 04: LUMINOUS ROSE & CORAL CRIMSON GRADIENT */
.arch-step[data-step="4"] .arch-card-glow {
    background: radial-gradient(circle at 18% 50%, rgba(251, 113, 133, 0.18), transparent 68%);
}
.arch-step[data-step="4"].is-active .arch-card {
    border-color: #fb7185;
    box-shadow: 0 24px 52px -12px rgba(244, 63, 94, 0.25), 0 0 0 1px rgba(251, 113, 133, 0.45);
}
.arch-step[data-step="4"].is-active .arch-header-pane {
    background: radial-gradient(circle at 85% 18%, rgba(254, 205, 211, 0.42) 0%, transparent 58%),
                linear-gradient(135deg, #f43f5e 0%, #e11d48 52%, #be123c 100%);
    border-color: rgba(253, 164, 175, 0.5);
}
.arch-step[data-step="4"].is-active .arch-step-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}
.arch-step[data-step="4"].is-active .arch-desc { color: #fff1f2 !important; }
.arch-step[data-step="4"].is-active .arch-spine-node {
    background: #f43f5e;
    border-color: #fecdd3;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.2), 0 8px 20px rgba(225, 29, 72, 0.4);
}
.arch-step[data-step="4"].is-active .arch-cap-card {
    border-color: #fecdd3;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.12);
}
.arch-step[data-step="4"].is-active .arch-cap-icon {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.arch-step[data-step="4"].is-active .arch-status-pill {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.arch-step[data-step="4"].is-active .arch-status-dot {
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}

/* =========================================================            
   ORIGINAL 3D MIRROR PORTAL (PURE SYNTAX STREAMS & VOLUMETRIC CONE)
   Zero CSS variable calc() conflicts - explicit 3D trajectories
   ========================================================= */         
.portal-scene-wrapper {             
    position: relative;             
    perspective: 1200px;             
    transform-style: preserve-3d;         
}          

.mirror-3d-rig {             
    position: relative;             
    width: 172px;             
    height: 274px;             
    transform-style: preserve-3d;             
    transform: rotateY(32deg) rotateX(6deg) rotateZ(-2deg);         
}          

.mirror-front-face {             
    position: absolute;             
    inset: 0;             
    border-top: 15px solid #ffffff;             
    border-bottom: 15px solid #ffffff;             
    border-left: 18px solid #ffffff;             
    border-right: 12px solid #f1f5f9;             
    background: radial-gradient(circle at 55% 50%, rgba(14, 165, 233, 0.14) 0%, rgba(16, 185, 129, 0.10) 45%, rgba(15, 23, 42, 0.32) 100%);             
    box-shadow:                  
        -20px 20px 40px -5px rgba(15, 23, 42, 0.14),                 
        38px 0px 80px -5px rgba(14, 165, 233, 0.42),                 
        inset 0 0 30px rgba(56, 189, 248, 0.32);             
    transform: translateZ(18px);         
}          

.mirror-back-face {             
    position: absolute;             
    inset: 0;             
    border: 15px solid #dbeafe;             
    transform: translateZ(-18px);             
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.32);         
}          

.mirror-left-slab {             
    position: absolute;             
    top: 0; bottom: 0; left: 0;             
    width: 36px;             
    background: linear-gradient(90deg, #cbd5e1 0%, #ffffff 55%, #ffffff 100%);             
    transform-origin: left center;             
    transform: translateZ(-18px) rotateY(-90deg);             
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.85);         
}          

.mirror-inner-right-slab {             
    position: absolute;             
    top: 15px; bottom: 15px; right: 12px;             
    width: 36px;             
    background: linear-gradient(90deg, #94a3b8 0%, #f8fafc 100%);             
    transform-origin: right center;             
    transform: translateZ(18px) rotateY(-90deg);         
}          

.mirror-top-slab {             
    position: absolute;             
    top: 0; left: 0; right: 0;             
    height: 36px;             
    background: linear-gradient(180deg, #94a3b8 0%, #f1f5f9 100%);             
    transform-origin: top center;             
    transform: translateZ(-18px) rotateX(90deg);         
}
