Beyond the Black Box: A Cognitive Architecture for Explainable and Aligned AI