Today's Turkey is a democracy grappling with an authoritarian legacy, a market economy whose explosive growth in the past decade is the bedrock of newfound swagger and a Western ally with historical and cultural links to the Middle East that place it at the forefront of debate about the change sweeping the region.