Systems over Rings: Geometric Theory and Applications