Apple's market value surpasses $3 trillion as shares hit record