Gradient background with flexible layout