From offense to defense, the San Francisco 49ers built a winner