The three infrastructure layers most SaaS products treat as afterthoughts — and why getting them right early prevents painful rewrites later.